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