Class PocServiceImpl
java.lang.Object
info.ejava.examples.db.validation.contacts.svc.PocServiceImpl
- All Implemented Interfaces:
PocService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ContactsRepository
private final InternalComponent
private final ContactsMapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePOC
(PersonPocDTO personDTO) Creates a new point of contact for a person.long
long
org.springframework.data.domain.Page
<PersonPocDTO> findPOCsMatchingAll
(PersonPocDTO probe, org.springframework.data.domain.Pageable pageable) positiveOrZero
(int value) Used to trigger an internal validation error.void
updatePOC
(String id, PersonPocDTO personDTO)
-
Field Details
-
contactsRepository
-
mapper
-
internalComponent
-
-
Constructor Details
-
PocServiceImpl
public PocServiceImpl()
-
-
Method Details
-
createPOC
Description copied from interface:PocService
Creates a new point of contact for a person.- Specified by:
createPOC
in interfacePocService
- Parameters:
personDTO
- person contact info- Returns:
- personDTO created, with ID
-
getPOC
- Specified by:
getPOC
in interfacePocService
-
updatePOC
- Specified by:
updatePOC
in interfacePocService
-
deletePOC
- Specified by:
deletePOC
in interfacePocService
-
deleteAllPOCs
public long deleteAllPOCs()- Specified by:
deleteAllPOCs
in interfacePocService
-
findPOCsMatchingAll
public org.springframework.data.domain.Page<PersonPocDTO> findPOCsMatchingAll(PersonPocDTO probe, org.springframework.data.domain.Pageable pageable) - Specified by:
findPOCsMatchingAll
in interfacePocService
-
positiveOrZero
Description copied from interface:PocService
Used to trigger an internal validation error.- Specified by:
positiveOrZero
in interfacePocService
-