Class CollectionServiceImpl
- java.lang.Object
-
- de.digitalcollections.cudami.server.business.impl.service.identifiable.IdentifiableServiceImpl<E>
-
- de.digitalcollections.cudami.server.business.impl.service.identifiable.entity.EntityServiceImpl<de.digitalcollections.model.api.identifiable.entity.Collection>
-
- de.digitalcollections.cudami.server.business.impl.service.identifiable.entity.CollectionServiceImpl
-
- All Implemented Interfaces:
CollectionService,EntityService<de.digitalcollections.model.api.identifiable.entity.Collection>,IdentifiableService<de.digitalcollections.model.api.identifiable.entity.Collection>,NodeService<de.digitalcollections.model.api.identifiable.entity.Collection>
@Service public class CollectionServiceImpl extends EntityServiceImpl<de.digitalcollections.model.api.identifiable.entity.Collection> implements CollectionService
-
-
Field Summary
-
Fields inherited from class de.digitalcollections.cudami.server.business.impl.service.identifiable.IdentifiableServiceImpl
repository
-
-
Constructor Summary
Constructors Constructor Description CollectionServiceImpl(CollectionRepository repository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddChild(de.digitalcollections.model.api.identifiable.entity.Collection parent, de.digitalcollections.model.api.identifiable.entity.Collection child)booleanaddChildren(de.digitalcollections.model.api.identifiable.entity.Collection parent, List<de.digitalcollections.model.api.identifiable.entity.Collection> children)booleanaddDigitalObject(de.digitalcollections.model.api.identifiable.entity.Collection collection, de.digitalcollections.model.api.identifiable.entity.DigitalObject digitalObject)booleanaddDigitalObjects(de.digitalcollections.model.api.identifiable.entity.Collection collection, List<de.digitalcollections.model.api.identifiable.entity.DigitalObject> digitalObjects)de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.entity.Collection>findActive(de.digitalcollections.model.api.paging.PageRequest pageRequest)de.digitalcollections.model.api.identifiable.entity.CollectiongetActive(UUID uuid)de.digitalcollections.model.api.identifiable.entity.CollectiongetActive(UUID uuid, Locale pLocale)List<de.digitalcollections.model.api.identifiable.entity.Collection>getActiveChildren(UUID uuid)de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.entity.Collection>getActiveChildren(UUID uuid, de.digitalcollections.model.api.paging.PageRequest pageRequest)de.digitalcollections.model.api.view.BreadcrumbNavigationgetBreadcrumbNavigation(UUID nodeUuid)Build and return the breadcrumb navigation for the given node UUIDList<de.digitalcollections.model.api.identifiable.entity.Collection>getChildren(de.digitalcollections.model.api.identifiable.entity.Collection collection)List<de.digitalcollections.model.api.identifiable.entity.Collection>getChildren(UUID uuid)de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.entity.Collection>getChildren(UUID uuid, de.digitalcollections.model.api.paging.PageRequest pageRequest)de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.entity.DigitalObject>getDigitalObjects(de.digitalcollections.model.api.identifiable.entity.Collection collection, de.digitalcollections.model.api.paging.PageRequest pageRequest)de.digitalcollections.model.api.identifiable.entity.CollectiongetParent(de.digitalcollections.model.api.identifiable.entity.Collection node)de.digitalcollections.model.api.identifiable.entity.CollectiongetParent(UUID nodeUuid)List<de.digitalcollections.model.api.identifiable.entity.Collection>getParents(UUID uuid)de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.entity.Collection>getTopCollections(de.digitalcollections.model.api.paging.PageRequest pageRequest)booleanremoveChild(de.digitalcollections.model.api.identifiable.entity.Collection parent, de.digitalcollections.model.api.identifiable.entity.Collection child)booleanremoveDigitalObject(de.digitalcollections.model.api.identifiable.entity.Collection collection, de.digitalcollections.model.api.identifiable.entity.DigitalObject digitalObject)booleanremoveDigitalObjectFromAllCollections(de.digitalcollections.model.api.identifiable.entity.DigitalObject digitalObject)Removes a digitalObject from all collections, to which it was connected to.booleansaveDigitalObjects(de.digitalcollections.model.api.identifiable.entity.Collection collection, List<de.digitalcollections.model.api.identifiable.entity.DigitalObject> digitalObjects)de.digitalcollections.model.api.identifiable.entity.CollectionsaveWithParentCollection(de.digitalcollections.model.api.identifiable.entity.Collection collection, UUID parentUuid)-
Methods inherited from class de.digitalcollections.cudami.server.business.impl.service.identifiable.entity.EntityServiceImpl
addRelatedFileresource, addRelatedFileresource, addRelation, addRelation, filteringForActive, getByRefId, getRelatedFileResources, getRelatedFileResources, getRelations, getRelations, saveRelatedFileResources, saveRelatedFileResources, saveRelations
-
Methods inherited from class de.digitalcollections.cudami.server.business.impl.service.identifiable.IdentifiableServiceImpl
count, find, find, find, get, get, get, getByIdentifier, reduceMultilanguageFieldsToGivenLocale, save, update
-
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.EntityService
addRelatedFileresource, addRelatedFileresource, addRelation, addRelation, getByRefId, getRelatedFileResources, getRelatedFileResources, getRelations, getRelations, saveRelatedFileResources, saveRelatedFileResources, saveRelations
-
Methods inherited from interface de.digitalcollections.cudami.server.business.api.service.identifiable.IdentifiableService
cleanupLabelFromUnwantedLocales, count, find, find, find, get, get, get, getByIdentifier, save, update
-
Methods inherited from interface de.digitalcollections.cudami.server.business.api.service.identifiable.NodeService
getBreadcrumbNavigation
-
-
-
-
Constructor Detail
-
CollectionServiceImpl
@Autowired public CollectionServiceImpl(CollectionRepository repository)
-
-
Method Detail
-
addChild
public boolean addChild(de.digitalcollections.model.api.identifiable.entity.Collection parent, de.digitalcollections.model.api.identifiable.entity.Collection child)- Specified by:
addChildin interfaceCollectionService
-
addChildren
public boolean addChildren(de.digitalcollections.model.api.identifiable.entity.Collection parent, List<de.digitalcollections.model.api.identifiable.entity.Collection> children)- Specified by:
addChildrenin interfaceCollectionService
-
addDigitalObject
public boolean addDigitalObject(de.digitalcollections.model.api.identifiable.entity.Collection collection, de.digitalcollections.model.api.identifiable.entity.DigitalObject digitalObject)- Specified by:
addDigitalObjectin interfaceCollectionService
-
addDigitalObjects
public boolean addDigitalObjects(de.digitalcollections.model.api.identifiable.entity.Collection collection, List<de.digitalcollections.model.api.identifiable.entity.DigitalObject> digitalObjects)- Specified by:
addDigitalObjectsin interfaceCollectionService
-
findActive
public de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.entity.Collection> findActive(de.digitalcollections.model.api.paging.PageRequest pageRequest)
- Specified by:
findActivein interfaceCollectionService
-
getActive
public de.digitalcollections.model.api.identifiable.entity.Collection getActive(UUID uuid)
- Specified by:
getActivein interfaceCollectionService
-
getActive
public de.digitalcollections.model.api.identifiable.entity.Collection getActive(UUID uuid, Locale pLocale)
- Specified by:
getActivein interfaceCollectionService
-
getActiveChildren
public List<de.digitalcollections.model.api.identifiable.entity.Collection> getActiveChildren(UUID uuid)
- Specified by:
getActiveChildrenin interfaceCollectionService
-
getActiveChildren
public de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.entity.Collection> getActiveChildren(UUID uuid, de.digitalcollections.model.api.paging.PageRequest pageRequest)
- Specified by:
getActiveChildrenin interfaceCollectionService
-
getBreadcrumbNavigation
public de.digitalcollections.model.api.view.BreadcrumbNavigation getBreadcrumbNavigation(UUID nodeUuid)
Description copied from interface:NodeServiceBuild and return the breadcrumb navigation for the given node UUID- Specified by:
getBreadcrumbNavigationin interfaceNodeService<de.digitalcollections.model.api.identifiable.entity.Collection>- Parameters:
nodeUuid- the uuid of the node.- Returns:
- BreadcrumbNavigation with labels in all available languages
-
getChildren
public List<de.digitalcollections.model.api.identifiable.entity.Collection> getChildren(de.digitalcollections.model.api.identifiable.entity.Collection collection)
- Specified by:
getChildrenin interfaceNodeService<de.digitalcollections.model.api.identifiable.entity.Collection>
-
getChildren
public List<de.digitalcollections.model.api.identifiable.entity.Collection> getChildren(UUID uuid)
- Specified by:
getChildrenin interfaceNodeService<de.digitalcollections.model.api.identifiable.entity.Collection>
-
getChildren
public de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.entity.Collection> getChildren(UUID uuid, de.digitalcollections.model.api.paging.PageRequest pageRequest)
- Specified by:
getChildrenin interfaceNodeService<de.digitalcollections.model.api.identifiable.entity.Collection>
-
getDigitalObjects
public de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.entity.DigitalObject> getDigitalObjects(de.digitalcollections.model.api.identifiable.entity.Collection collection, de.digitalcollections.model.api.paging.PageRequest pageRequest)- Specified by:
getDigitalObjectsin interfaceCollectionService
-
getParent
public de.digitalcollections.model.api.identifiable.entity.Collection getParent(de.digitalcollections.model.api.identifiable.entity.Collection node)
- Specified by:
getParentin interfaceNodeService<de.digitalcollections.model.api.identifiable.entity.Collection>
-
getParent
public de.digitalcollections.model.api.identifiable.entity.Collection getParent(UUID nodeUuid)
- Specified by:
getParentin interfaceNodeService<de.digitalcollections.model.api.identifiable.entity.Collection>
-
getParents
public List<de.digitalcollections.model.api.identifiable.entity.Collection> getParents(UUID uuid)
- Specified by:
getParentsin interfaceCollectionService
-
getTopCollections
public de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.entity.Collection> getTopCollections(de.digitalcollections.model.api.paging.PageRequest pageRequest)
- Specified by:
getTopCollectionsin interfaceCollectionService
-
removeChild
public boolean removeChild(de.digitalcollections.model.api.identifiable.entity.Collection parent, de.digitalcollections.model.api.identifiable.entity.Collection child)- Specified by:
removeChildin interfaceCollectionService
-
removeDigitalObject
public boolean removeDigitalObject(de.digitalcollections.model.api.identifiable.entity.Collection collection, de.digitalcollections.model.api.identifiable.entity.DigitalObject digitalObject)- Specified by:
removeDigitalObjectin interfaceCollectionService
-
removeDigitalObjectFromAllCollections
public boolean removeDigitalObjectFromAllCollections(de.digitalcollections.model.api.identifiable.entity.DigitalObject digitalObject)
Description copied from interface:CollectionServiceRemoves a digitalObject from all collections, to which it was connected to.- Specified by:
removeDigitalObjectFromAllCollectionsin interfaceCollectionService- Parameters:
digitalObject- the digital object- Returns:
- boolean value for success
-
saveDigitalObjects
public boolean saveDigitalObjects(de.digitalcollections.model.api.identifiable.entity.Collection collection, List<de.digitalcollections.model.api.identifiable.entity.DigitalObject> digitalObjects)- Specified by:
saveDigitalObjectsin interfaceCollectionService
-
saveWithParentCollection
public de.digitalcollections.model.api.identifiable.entity.Collection saveWithParentCollection(de.digitalcollections.model.api.identifiable.entity.Collection collection, UUID parentUuid) throws IdentifiableServiceException- Specified by:
saveWithParentCollectionin interfaceCollectionService- Throws:
IdentifiableServiceException
-
-