Interface NodeRepository<N extends de.digitalcollections.model.identifiable.Identifiable>
- All Superinterfaces:
IdentifiableRepository<N>,PagingSortingFilteringRepository<N>,UniqueObjectRepository<N>
- All Known Subinterfaces:
CollectionRepository,TopicRepository,WebpageRepository
public interface NodeRepository<N extends de.digitalcollections.model.identifiable.Identifiable>
extends IdentifiableRepository<N>
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault booleanbooleanaddChildren(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) default de.digitalcollections.model.list.paging.PageResponse<N>findChildren(N parent, 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) default de.digitalcollections.model.view.BreadcrumbNavigationgetBreadcrumbNavigation(N node) getChildren(UUID nodeUuid) getChildren(N node) default NgetParents(UUID uuid) getParents(N node) booleanremoveChild(UUID parentUuid, UUID childUuid) default booleanremoveChild(N parent, N child) saveParentRelation(UUID childUuid, UUID parentUuid) default NsaveParentRelation(N child, N parent) booleanupdateChildrenOrder(UUID parentUuid, List<UUID> children) default booleanupdateChildrenOrder(N parent, List<N> children) Methods inherited from interface de.digitalcollections.cudami.server.backend.api.repository.identifiable.IdentifiableRepository
addRelatedEntity, addRelatedEntity, addRelatedFileresource, addRelatedFileresource, findByLanguageAndInitial, findRelatedEntities, findRelatedEntities, findRelatedFileResources, findRelatedFileResources, getByIdentifiables, getByIdentifier, getByIdentifier, getLanguages, setRelatedEntities, setRelatedEntities, setRelatedFileResources, setRelatedFileResourcesMethods inherited from interface de.digitalcollections.cudami.server.backend.api.repository.PagingSortingFilteringRepository
findMethods inherited from interface de.digitalcollections.cudami.server.backend.api.repository.UniqueObjectRepository
count, create, delete, delete, deleteByUuid, deleteByUuids, getByExample, getByExampleAndFiltering, getByExamples, getByExamplesAndFiltering, getByUuid, getByUuidAndFiltering, getByUuids, getByUuidsAndFiltering, getRandom, save, save, saveOrUpdate, update, update
-
Method Details
-
addChild
- Throws:
RepositoryException
-
addChild
- Throws:
RepositoryException
-
addChildren
- Throws:
RepositoryException
-
addChildren
- Throws:
RepositoryException
-
findChildren
default de.digitalcollections.model.list.paging.PageResponse<N> findChildren(N parent, de.digitalcollections.model.list.paging.PageRequest pageRequest) throws RepositoryException - Throws:
RepositoryException
-
findChildren
de.digitalcollections.model.list.paging.PageResponse<N> findChildren(UUID nodeUuid, de.digitalcollections.model.list.paging.PageRequest pageRequest) throws RepositoryException - Throws:
RepositoryException
-
findRootNodes
de.digitalcollections.model.list.paging.PageResponse<N> findRootNodes(de.digitalcollections.model.list.paging.PageRequest pageRequest) throws RepositoryException - Throws:
RepositoryException
-
getChildren
- Throws:
RepositoryException
-
getChildren
- Throws:
RepositoryException
-
getParent
- Throws:
RepositoryException
-
getParent
- Throws:
RepositoryException
-
getParents
- Throws:
RepositoryException
-
getParents
- Throws:
RepositoryException
-
getRootNodesLanguages
- Throws:
RepositoryException
-
removeChild
- Throws:
RepositoryException
-
removeChild
- Throws:
RepositoryException
-
saveParentRelation
- Throws:
RepositoryException
-
saveParentRelation
- Parameters:
childUuid- UUID of (newly created) child nodeparentUuid- parent node the new node is child of- Returns:
- saved child node
- Throws:
RepositoryException- if saving fails
-
updateChildrenOrder
- Throws:
RepositoryException
-
updateChildrenOrder
- Throws:
RepositoryException
-