Interface NodeRepository<N extends de.digitalcollections.model.identifiable.Identifiable>
-
- All Superinterfaces:
IdentifiableRepository<N>
- All Known Subinterfaces:
CollectionRepository,TopicRepository,WebpageRepository
public interface NodeRepository<N extends de.digitalcollections.model.identifiable.Identifiable> extends IdentifiableRepository<N>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanaddChild(UUID parentUuid, UUID childUuid)default booleanaddChild(N parent, N child)booleanaddChildren(UUID parentUuid, List<UUID> childrenUUIDs)default booleanaddChildren(N parent, List<N> children)de.digitalcollections.model.list.paging.PageResponse<N>findChildren(UUID nodeUuid, de.digitalcollections.model.list.paging.PageRequest pageRequest)de.digitalcollections.model.list.paging.PageResponse<N>findRootNodes(de.digitalcollections.model.list.paging.PageRequest pageRequest)de.digitalcollections.model.view.BreadcrumbNavigationgetBreadcrumbNavigation(UUID nodeUuid)List<N>getChildren(UUID nodeUuid)default List<N>getChildren(N node)NgetParent(UUID nodeUuid)List<N>getParents(UUID uuid)List<Locale>getRootNodesLanguages()booleanremoveChild(UUID parentUuid, UUID childUuid)default booleanremoveChild(N parent, N child)NsaveWithParent(UUID childUuid, UUID parentUUID)booleanupdateChildrenOrder(UUID parentUuid, List<N> children)-
Methods inherited from interface de.digitalcollections.cudami.server.backend.api.repository.identifiable.IdentifiableRepository
addRelatedEntity, addRelatedEntity, addRelatedFileresource, addRelatedFileresource, count, delete, delete, find, find, findByLanguageAndInitial, getAllFull, getAllReduced, getByIdentifier, getByIdentifier, getByUuid, getByUuidAndFiltering, getLanguages, getRelatedEntities, getRelatedEntities, getRelatedFileResources, getRelatedFileResources, save, save, setRelatedEntities, setRelatedEntities, setRelatedFileResources, setRelatedFileResources, update, update
-
-
-
-
Method Detail
-
getBreadcrumbNavigation
de.digitalcollections.model.view.BreadcrumbNavigation getBreadcrumbNavigation(UUID nodeUuid)
- Parameters:
nodeUuid- the uuid of the current node- Returns:
- the breadcrumb navigation
-
findChildren
de.digitalcollections.model.list.paging.PageResponse<N> findChildren(UUID nodeUuid, de.digitalcollections.model.list.paging.PageRequest pageRequest)
-
findRootNodes
de.digitalcollections.model.list.paging.PageResponse<N> findRootNodes(de.digitalcollections.model.list.paging.PageRequest pageRequest)
-
saveWithParent
N saveWithParent(UUID childUuid, UUID parentUUID)
- Parameters:
childUuid- newly created child nodeparentUUID- parent node the new node is child of- Returns:
- saved child node
-
-