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 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.identifiable.entity.CollectiongetParent(de.digitalcollections.model.api.identifiable.entity.Collection node)de.digitalcollections.model.api.identifiable.entity.CollectiongetParent(UUID nodeUuid)de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.entity.Collection>getTopCollections(de.digitalcollections.model.api.paging.PageRequest pageRequest)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, 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, 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
-
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
-
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>
-
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>
-
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
-
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
-
-