Class EntityRelationServiceImpl
- java.lang.Object
-
- de.digitalcollections.cudami.server.business.impl.service.identifiable.entity.relation.EntityRelationServiceImpl
-
- All Implemented Interfaces:
EntityRelationService
@Service public class EntityRelationServiceImpl extends Object implements EntityRelationService
-
-
Constructor Summary
Constructors Constructor Description EntityRelationServiceImpl(EntityRelationRepository repository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRelation(UUID subjectEntityUuid, String predicate, UUID objectEntityUuid)voiddeleteBySubject(UUID subjectEntityUuid)de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.relation.EntityRelation>find(de.digitalcollections.model.paging.PageRequest pageRequest)Get paged, sorted, filtered relationsList<de.digitalcollections.model.identifiable.entity.relation.EntityRelation>getBySubject(UUID subjectEntityUuid)List<de.digitalcollections.model.identifiable.entity.relation.EntityRelation>save(List<de.digitalcollections.model.identifiable.entity.relation.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
-
Methods inherited from interface de.digitalcollections.cudami.server.business.api.service.identifiable.entity.relation.EntityRelationService
addRelation, deleteBySubject, getBySubject
-
-
-
-
Constructor Detail
-
EntityRelationServiceImpl
@Autowired public EntityRelationServiceImpl(EntityRelationRepository repository)
-
-
Method Detail
-
addRelation
public void addRelation(UUID subjectEntityUuid, String predicate, UUID objectEntityUuid)
- Specified by:
addRelationin interfaceEntityRelationService
-
deleteBySubject
public void deleteBySubject(UUID subjectEntityUuid)
- Specified by:
deleteBySubjectin interfaceEntityRelationService
-
find
public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.relation.EntityRelation> find(de.digitalcollections.model.paging.PageRequest pageRequest)
Description copied from interface:EntityRelationServiceGet paged, sorted, filtered relations- Specified by:
findin interfaceEntityRelationService- Parameters:
pageRequest- request param container for paging, sorting, filtering- Returns:
- result as paged response
-
getBySubject
public List<de.digitalcollections.model.identifiable.entity.relation.EntityRelation> getBySubject(UUID subjectEntityUuid)
- Specified by:
getBySubjectin interfaceEntityRelationService
-
save
public List<de.digitalcollections.model.identifiable.entity.relation.EntityRelation> save(List<de.digitalcollections.model.identifiable.entity.relation.EntityRelation> entityRelations)
Description copied from interface:EntityRelationServiceSave (means create or update) a list of entity relations. This method is idempotent.- Specified by:
savein interfaceEntityRelationService- Parameters:
entityRelations- a list of entity relations to persist- Returns:
- the persisted list of entity relations
-
-