Interface NodeRepository<N extends de.digitalcollections.model.api.identifiable.Node>

All Superinterfaces:
IdentifiableRepository<N>
All Known Subinterfaces:
CollectionRepository, SubtopicRepository, WebpageRepository

public interface NodeRepository<N extends de.digitalcollections.model.api.identifiable.Node>
extends IdentifiableRepository<N>
  • Method Details

    • addChild

      default boolean addChild​(N parent, N child)
    • addChildren

      default boolean addChildren​(N parent, java.util.List<N> children)
    • addChildren

      boolean addChildren​(java.util.UUID parentUuid, java.util.List<N> children)
    • getBreadcrumbNavigation

      de.digitalcollections.model.api.view.BreadcrumbNavigation getBreadcrumbNavigation​(java.util.UUID nodeUuid)
      Parameters:
      nodeUuid - the uuid of the current node
      Returns:
      the breadcrumb navigation
    • getChildren

      default java.util.List<N> getChildren​(N node)
    • getChildren

      java.util.List<N> getChildren​(java.util.UUID nodeUuid)
    • getChildren

      de.digitalcollections.model.api.paging.PageResponse<N> getChildren​(java.util.UUID nodeUuid, de.digitalcollections.model.api.paging.PageRequest pageRequest)
    • getParent

      N getParent​(java.util.UUID nodeUuid)
    • getParents

      java.util.List<N> getParents​(java.util.UUID uuid)
    • getRootNodes

      de.digitalcollections.model.api.paging.PageResponse<N> getRootNodes​(de.digitalcollections.model.api.paging.PageRequest pageRequest)
    • getRootNodesLanguages

      java.util.List<java.util.Locale> getRootNodesLanguages()
    • removeChild

      default boolean removeChild​(N parent, N child)
    • removeChild

      boolean removeChild​(java.util.UUID parentUuid, java.util.UUID childUuid)
    • saveWithParent

      N saveWithParent​(N child, java.util.UUID parentUUID)
      Parameters:
      child - newly created child node to be saved
      parentUUID - parent node the new node is child of
      Returns:
      saved child node
    • updateChildrenOrder

      boolean updateChildrenOrder​(java.util.UUID parentUuid, java.util.List<N> children)