Interface CRUDService<T>
-
- Type Parameters:
T
- Object type to manipulate
- All Known Subinterfaces:
ACLService
,ComponentClassService<T>
,ComponentService<T>
,DelegationService
,DocumentClassService
,DocumentService
,FileService
,FolderClassService
,FolderService
,ScopeService
,StoredSearchService
,TagCategoryService
,TagclassService
,TaskClassService
,TaskService
,VirtualFolderClassService
,VirtualFolderService
,WorkflowService
public interface CRUDService<T>
CRUD service allowing to execute: Create, Read, Update and Delete actions in a bulk way. All methods are multi-occurrences to allow mass executions.- Author:
- Christopher Laszcuzk
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<T>
create(java.util.List<T> objects)
Creates a list of objectsvoid
delete(java.util.List<com.flower.docs.domain.common.Id> ids)
Deletes a list of objectsjava.util.List<T>
get(java.util.List<com.flower.docs.domain.common.Id> ids)
Gets a list of objectsjava.util.List<T>
update(java.util.List<T> objects)
Updates a list of objects
-
-
-
Method Detail
-
create
java.util.List<T> create(java.util.List<T> objects) throws com.flower.docs.domain.exception.FunctionalException, com.flower.docs.domain.exception.TechnicalException
Creates a list of objects- Parameters:
objects
- The objects to create- Returns:
- The created objects
- Throws:
com.flower.docs.domain.exception.FunctionalException
- If a functional error occurredcom.flower.docs.domain.exception.TechnicalException
- If a technical error occurred
-
get
java.util.List<T> get(java.util.List<com.flower.docs.domain.common.Id> ids) throws com.flower.docs.domain.exception.FunctionalException, com.flower.docs.domain.exception.TechnicalException
Gets a list of objects- Parameters:
ids
- The unique identifiers of requested objects- Returns:
- The requested objects
- Throws:
com.flower.docs.domain.exception.FunctionalException
- If a functional error occurredcom.flower.docs.domain.exception.TechnicalException
- If a technical error occurred
-
update
java.util.List<T> update(java.util.List<T> objects) throws com.flower.docs.domain.exception.FunctionalException, com.flower.docs.domain.exception.TechnicalException
Updates a list of objects- Parameters:
objects
- The objects to update- Returns:
- The updated objects
- Throws:
com.flower.docs.domain.exception.FunctionalException
- If a functional error occurredcom.flower.docs.domain.exception.TechnicalException
- If a technical error occurred
-
delete
void delete(java.util.List<com.flower.docs.domain.common.Id> ids) throws com.flower.docs.domain.exception.FunctionalException, com.flower.docs.domain.exception.TechnicalException
Deletes a list of objects- Parameters:
ids
- The unique identifiers of objects to delete- Throws:
com.flower.docs.domain.exception.FunctionalException
- If a functional error occurredcom.flower.docs.domain.exception.TechnicalException
- If a technical error occurred
-
-