Method Summary
All Methods Instance Methods Abstract Methods Default Methods
Modifier and Type
Method
Description
default boolean
addChild (N parent,
N child)
boolean
addChildren (java.util.UUID parentUuid,
java.util.List<N > collections)
default boolean
addChildren (N parent,
java.util.List<N > children)
de.digitalcollections.model.api.view.BreadcrumbNavigation
getBreadcrumbNavigation (java.util.UUID nodeUuid)
Build and return the breadcrumb navigation for the given node UUID
default de.digitalcollections.model.api.view.BreadcrumbNavigation
getBreadcrumbNavigation (java.util.UUID nodeUuid,
java.util.Locale locale,
java.util.Locale fallbackLocale)
Build and return the breadcrumb navigation for the given webpage UUID and desired locale.
java.util.List<N >
getChildren (java.util.UUID nodeUuid)
de.digitalcollections.model.api.paging.PageResponse<N >
getChildren (java.util.UUID uuid,
de.digitalcollections.model.api.paging.PageRequest pageRequest)
default java.util.List<N >
getChildren (N node)
N
getParent (java.util.UUID nodeUuid)
default N
getParent (N node)
java.util.List<N >
getParents (java.util.UUID uuid)
de.digitalcollections.model.api.paging.PageResponse<N >
getRootNodes (de.digitalcollections.model.api.paging.PageRequest pageRequest)
java.util.List<java.util.Locale>
getRootNodesLanguages ()
boolean
removeChild (java.util.UUID parentUuid,
java.util.UUID childUuid)
default boolean
removeChild (N parent,
N child)
N
saveWithParent (N child,
java.util.UUID parentUuid)
boolean
updateChildrenOrder (java.util.UUID parentUuid,
java.util.List<N > children)
Methods inherited from interface de.digitalcollections.cudami.server.business.api.service.identifiable.IdentifiableService
cleanupLabelFromUnwantedLocales , count , delete , delete , find , find , find , findAllFull , findAllReduced , findByLanguageAndInitial , get , get , get , getByIdentifier , save , update
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 > collections)
getBreadcrumbNavigation
de.digitalcollections.model.api.view.BreadcrumbNavigation getBreadcrumbNavigation (java.util.UUID nodeUuid)
Build and return the breadcrumb navigation for the given node UUID
Parameters:
nodeUuid - the uuid of the node.
Returns:
BreadcrumbNavigation with labels in all available languages
getBreadcrumbNavigation
default de.digitalcollections.model.api.view.BreadcrumbNavigation getBreadcrumbNavigation (java.util.UUID nodeUuid,
java.util.Locale locale,
java.util.Locale fallbackLocale)
Build and return the breadcrumb navigation for the given webpage UUID and desired locale. If no
label for that locale exists, use the label for the fallbackLocale, and if even this fails, use
the first locale.
Parameters:
nodeUuid - the uuid of the webpage
locale - the desired locale for the navigation item labels
fallbackLocale - the fallback locale for the navigation item labels
Returns:
Breadcrumb navigation with labels in the desired language (if possible)
getChildren
default java.util.List<N > getChildren (
N node)
getChildren
java.util.List<N > getChildren (
java.util.UUID nodeUuid)
getParent
default N getParent (
N node)
getParent
N getParent (
java.util.UUID nodeUuid)
getParents
java.util.List<N > getParents (
java.util.UUID uuid)
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
Parameters:
child - newly created child node to be saved
parentUuid - parent node the new node is child of
Returns:
saved child node
Throws:
IdentifiableServiceException - if saving fails
updateChildrenOrder
boolean updateChildrenOrder (
java.util.UUID parentUuid,
java.util.List<N > children)