Interface PocService
- All Known Implementing Classes:
PocServiceImpl
,ValidatedPocServiceImpl
public interface PocService
-
Method Summary
Modifier and TypeMethodDescription@NotNull PersonPocDTO
createPOC
(@NotNull @Valid PersonPocDTO personDTO) Creates a new point of contact for a person.long
long
@NotNull org.springframework.data.domain.Page
<PersonPocDTO> findPOCsMatchingAll
(@NotNull PersonPocDTO probe, @NotNull org.springframework.data.domain.Pageable pageable) @NotNull Optional
<PersonPocDTO> positiveOrZero
(@jakarta.validation.constraints.PositiveOrZero int value) Used to trigger an internal validation error.void
updatePOC
(@NotNull String id, @NotNull PersonPocDTO personDTO)
-
Method Details
-
createPOC
@NotNull @Validated(CreatePlusDefault.class) @NotNull PersonPocDTO createPOC(@NotNull @Valid @Named("person") @NotNull @Valid PersonPocDTO personDTO) Creates a new point of contact for a person.- Parameters:
personDTO
- person contact info- Returns:
- personDTO created, with ID
-
getPOC
@NotNull @NotNull Optional<PersonPocDTO> getPOC(@NotNull @Pattern(regexp="[0-9]+",message="must be a valid number") @Named("id") @NotNull @Pattern(regexp="[0-9]+",message="must be a valid number") String id) -
updatePOC
void updatePOC(@NotNull @Named("id") @NotNull String id, @NotNull @Named("person") @NotNull PersonPocDTO personDTO) -
deletePOC
-
deleteAllPOCs
long deleteAllPOCs() -
findPOCsMatchingAll
@NotNull @NotNull org.springframework.data.domain.Page<PersonPocDTO> findPOCsMatchingAll(@NotNull @Named("probe") @NotNull PersonPocDTO probe, @NotNull @Named("pageable") @NotNull org.springframework.data.domain.Pageable pageable) -
positiveOrZero
PersonPocDTO positiveOrZero(@PositiveOrZero @jakarta.validation.constraints.PositiveOrZero int value) Used to trigger an internal validation error.
-