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.paging.SearchPageResponse<N>findChildren(UUID uuid, de.digitalcollections.model.paging.SearchPageRequest searchPageRequest)de.digitalcollections.model.paging.SearchPageResponse<N>findRootNodes(de.digitalcollections.model.paging.SearchPageRequest searchPageRequest)de.digitalcollections.model.view.BreadcrumbNavigationgetBreadcrumbNavigation(UUID nodeUuid)List<N>getChildren(UUID nodeUuid)de.digitalcollections.model.paging.PageResponse<N>getChildren(UUID nodeUuid, de.digitalcollections.model.paging.PageRequest pageRequest)default List<N>getChildren(N node)NgetParent(UUID nodeUuid)List<N>getParents(UUID uuid)de.digitalcollections.model.paging.PageResponse<N>getRootNodes(de.digitalcollections.model.paging.PageRequest pageRequest)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, find, findAllFull, findAllReduced, findByLanguageAndInitial, findOne, findOne, findOne, findOneByIdentifier, getLanguages, getRelatedEntities, getRelatedEntities, getRelatedFileResources, getRelatedFileResources, save, save, saveRelatedEntities, saveRelatedEntities, saveRelatedFileResources, saveRelatedFileResources, 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
-
getChildren
de.digitalcollections.model.paging.PageResponse<N> getChildren(UUID nodeUuid, de.digitalcollections.model.paging.PageRequest pageRequest)
-
findChildren
de.digitalcollections.model.paging.SearchPageResponse<N> findChildren(UUID uuid, de.digitalcollections.model.paging.SearchPageRequest searchPageRequest)
-
getRootNodes
de.digitalcollections.model.paging.PageResponse<N> getRootNodes(de.digitalcollections.model.paging.PageRequest pageRequest)
-
findRootNodes
de.digitalcollections.model.paging.SearchPageResponse<N> findRootNodes(de.digitalcollections.model.paging.SearchPageRequest searchPageRequest)
-
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
-
-