Interface NodeService<N extends de.digitalcollections.model.api.identifiable.Node>
-
- All Superinterfaces:
IdentifiableService<N>
- All Known Subinterfaces:
CollectionService,SubtopicService,WebpageService<E>
- All Known Implementing Classes:
CollectionServiceImpl,SubtopicServiceImpl,WebpageServiceImpl
public interface NodeService<N extends de.digitalcollections.model.api.identifiable.Node> extends IdentifiableService<N>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description de.digitalcollections.model.api.view.BreadcrumbNavigationgetBreadcrumbNavigation(UUID nodeUuid)Build and return the breadcrumb navigation for the given node UUIDdefault de.digitalcollections.model.api.view.BreadcrumbNavigationgetBreadcrumbNavigation(UUID nodeUuid, Locale locale, Locale fallbackLocale)Build and return the breadcrumb navigation for the given webpage UUID and desired locale.List<N>getChildren(UUID nodeUuid)de.digitalcollections.model.api.paging.PageResponse<N>getChildren(UUID uuid, de.digitalcollections.model.api.paging.PageRequest pageRequest)List<N>getChildren(N node)NgetParent(UUID nodeUuid)NgetParent(N node)-
Methods inherited from interface de.digitalcollections.cudami.server.business.api.service.identifiable.IdentifiableService
cleanupLabelFromUnwantedLocales, count, find, find, find, get, get, get, getByIdentifier, save, update
-
-
-
-
Method Detail
-
getChildren
de.digitalcollections.model.api.paging.PageResponse<N> getChildren(UUID uuid, de.digitalcollections.model.api.paging.PageRequest pageRequest)
-
getBreadcrumbNavigation
de.digitalcollections.model.api.view.BreadcrumbNavigation getBreadcrumbNavigation(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(UUID nodeUuid, Locale locale, 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 webpagelocale- the desired locale for the navigation item labelsfallbackLocale- the fallback locale for the navigation item labels- Returns:
- Breadcrumb navigation with labels in the desired language (if possible)
-
-