Class EntityRelationsServiceImpl
java.lang.Object
de.digitalcollections.cudami.server.business.impl.service.identifiable.entity.EntityRelationsServiceImpl
- All Implemented Interfaces:
EntityRelationsService
@Service public class EntityRelationsServiceImpl extends java.lang.Object implements EntityRelationsService
-
Constructor Summary
Constructors Constructor Description EntityRelationsServiceImpl(EntityRelationsRepository repository) -
Method Summary
Modifier and Type Method Description de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.entity.EntityRelation>find(de.digitalcollections.model.api.paging.PageRequest pageRequest)Get paged, sorted, filtered relationsjava.util.List<de.digitalcollections.model.api.identifiable.entity.EntityRelation>saveEntityRelations(java.util.List<de.digitalcollections.model.api.identifiable.entity.EntityRelation> entityRelations)Save (means create or update) a list of entity relations.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
EntityRelationsServiceImpl
-
-
Method Details
-
find
public de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.entity.EntityRelation> find(de.digitalcollections.model.api.paging.PageRequest pageRequest)Description copied from interface:EntityRelationsServiceGet paged, sorted, filtered relations- Specified by:
findin interfaceEntityRelationsService- Parameters:
pageRequest- request param container for paging, sorting, filtering- Returns:
- result as paged response
-
saveEntityRelations
public java.util.List<de.digitalcollections.model.api.identifiable.entity.EntityRelation> saveEntityRelations(java.util.List<de.digitalcollections.model.api.identifiable.entity.EntityRelation> entityRelations)Description copied from interface:EntityRelationsServiceSave (means create or update) a list of entity relations. This method is idempotent.- Specified by:
saveEntityRelationsin interfaceEntityRelationsService- Parameters:
entityRelations- a list of entity relations to persist- Returns:
- the persisted list of entity relations
-