Package org.cyclos.services
Interface CRUDWithConfirmationPasswordService<DTO extends EntityDTO,D extends EntityData<DTO>,DP>
-
- All Superinterfaces:
CRUDService<DTO,D,DP>,Service
- All Known Subinterfaces:
ContactInfoService,ContactInfoServiceLocal,ImportService,ImportServiceLocal,OperatorService,OperatorServiceLocal,PhoneService,PhoneServiceLocal,RecordService,RecordServiceLocal,UserAddressService,UserAddressServiceLocal,UserService,UserServiceLocal
public interface CRUDWithConfirmationPasswordService<DTO extends EntityDTO,D extends EntityData<DTO>,DP> extends CRUDService<DTO,D,DP>
A special CRUD service that requires confirmation password for actions like saving and removing
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CredentialInputDTOgetConfirmationPasswordInputForRemove(@NotNull Long id)Returns theCredentialInputDTOfor the confirmation password that would be required if removing the entity with the given idvoidremoveAllWithConfirmationPassword(@NotNull Collection<Long> ids, String confirmationPassword)Removes the entities associated with the given identifiers, checking the confirmation password first (if enabled)voidremoveWithConfirmationPassword(@NotNull Long id, String confirmationPassword)Removes an entity, checking the confirmation password first (if enabled)LongsaveWithConfirmationPassword(DTO object, String confirmationPassword)Saves the given object, returning the generated identifier, checking the confirmation password first (if enabled)-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
-
-
-
Method Detail
-
getConfirmationPasswordInputForRemove
CredentialInputDTO getConfirmationPasswordInputForRemove(@NotNull @NotNull Long id) throws FrameworkException
Returns theCredentialInputDTOfor the confirmation password that would be required if removing the entity with the given id- Throws:
FrameworkException
-
removeAllWithConfirmationPassword
void removeAllWithConfirmationPassword(@NotNull @NotNull Collection<Long> ids, String confirmationPassword) throws FrameworkExceptionRemoves the entities associated with the given identifiers, checking the confirmation password first (if enabled)- Throws:
FrameworkException- See Also:
CRUDService.removeAll(Collection)
-
removeWithConfirmationPassword
void removeWithConfirmationPassword(@NotNull @NotNull Long id, String confirmationPassword) throws FrameworkExceptionRemoves an entity, checking the confirmation password first (if enabled)- Throws:
FrameworkException- See Also:
CRUDService.remove(Long)
-
saveWithConfirmationPassword
Long saveWithConfirmationPassword(@NotNull DTO object, String confirmationPassword) throws FrameworkException
Saves the given object, returning the generated identifier, checking the confirmation password first (if enabled)- Throws:
FrameworkException- See Also:
CRUDService.save(EntityDTO)
-
-