Interface PocService

All Known Implementing Classes:
PocServiceImpl, ValidatedPocServiceImpl

public interface PocService
  • 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

      long deletePOC(@NotNull @Named("id") @NotNull String id)
    • 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.