Interface EntityToEntityRelationService
- All Known Implementing Classes:
EntityToEntityRelationServiceImpl
public interface EntityToEntityRelationService
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddRelation(de.digitalcollections.model.identifiable.entity.relation.EntityRelation relation) voiddeleteByObject(de.digitalcollections.model.identifiable.entity.Entity objectEntity) voiddeleteBySubject(de.digitalcollections.model.identifiable.entity.Entity subjectEntity) de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.relation.EntityRelation>find(de.digitalcollections.model.list.paging.PageRequest pageRequest) Get paged, sorted, filtered relationsde.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.relation.EntityRelation>findBySubject(de.digitalcollections.model.identifiable.entity.Entity subjectEntity, de.digitalcollections.model.list.paging.PageRequest pageRequest) voidSave (means create or update) a list of entity relations.voidsetEntityRelations(de.digitalcollections.model.identifiable.entity.Entity objectEntity, List<de.digitalcollections.model.identifiable.entity.relation.EntityRelation> relations, boolean deleteExisting)
-
Method Details
-
addRelation
void addRelation(de.digitalcollections.model.identifiable.entity.relation.EntityRelation relation) throws ServiceException - Throws:
ServiceException
-
deleteByObject
void deleteByObject(de.digitalcollections.model.identifiable.entity.Entity objectEntity) throws ServiceException - Throws:
ServiceException
-
deleteBySubject
void deleteBySubject(de.digitalcollections.model.identifiable.entity.Entity subjectEntity) throws ServiceException - Throws:
ServiceException
-
find
de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.relation.EntityRelation> find(de.digitalcollections.model.list.paging.PageRequest pageRequest) throws ServiceException Get paged, sorted, filtered relations- Parameters:
pageRequest- request param container for paging, sorting, filtering- Returns:
- result as paged response
- Throws:
ServiceException
-
findBySubject
de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.relation.EntityRelation> findBySubject(de.digitalcollections.model.identifiable.entity.Entity subjectEntity, de.digitalcollections.model.list.paging.PageRequest pageRequest) throws ServiceException - Throws:
ServiceException
-
save
void save(List<de.digitalcollections.model.identifiable.entity.relation.EntityRelation> entityRelations) throws ServiceException Save (means create or update) a list of entity relations. This method is idempotent.- Parameters:
entityRelations- a list of entity relations to persist- Throws:
ServiceException
-
setEntityRelations
void setEntityRelations(de.digitalcollections.model.identifiable.entity.Entity objectEntity, List<de.digitalcollections.model.identifiable.entity.relation.EntityRelation> relations, boolean deleteExisting) throws ServiceException - Throws:
ServiceException
-