Interface NodeService<N extends de.digitalcollections.model.identifiable.Identifiable>
- All Superinterfaces:
IdentifiableService<N>,UniqueObjectService<N>
- All Known Subinterfaces:
CollectionService,TopicService,WebpageService
- All Known Implementing Classes:
CollectionServiceImpl,TopicServiceImpl,WebpageServiceImpl
public interface NodeService<N extends de.digitalcollections.model.identifiable.Identifiable>
extends IdentifiableService<N>
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddChildren(N parent, List<N> children) 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(N node) Build and return the breadcrumb navigation for the given nodedefault de.digitalcollections.model.view.BreadcrumbNavigationgetBreadcrumbNavigation(N node, Locale locale, Locale fallbackLocale) Build and return the breadcrumb navigation for the given node and desired locale.getChildren(N node) getParents(N node) booleanremoveChild(N parent, N child) saveWithParent(N child, N parent) booleanupdateChildrenOrder(N parent, List<N> children) Methods inherited from interface de.digitalcollections.cudami.server.business.api.service.identifiable.IdentifiableService
addRelatedEntity, addRelatedFileresource, cleanupLabelFromUnwantedLocales, findByLanguageAndInitial, findRelatedEntities, findRelatedFileResources, getByExampleAndLocale, getByIdentifier, getLanguages, setRelatedEntities, setRelatedFileResources, validateMethods inherited from interface de.digitalcollections.cudami.server.business.api.service.UniqueObjectService
count, create, delete, delete, find, getAll, getByExample, getByExampleAndFiltering, getRandom, save, update
-
Method Details
-
addChild
- Throws:
ServiceException
-
addChildren
- Throws:
ServiceException
-
findChildren
de.digitalcollections.model.list.paging.PageResponse<N> findChildren(N parent, de.digitalcollections.model.list.paging.PageRequest pageRequest) throws ServiceException - Throws:
ServiceException
-
findRootNodes
de.digitalcollections.model.list.paging.PageResponse<N> findRootNodes(de.digitalcollections.model.list.paging.PageRequest pageRequest) throws ServiceException - Throws:
ServiceException
-
getChildren
- Throws:
ServiceException
-
getParent
- Throws:
ServiceException
-
getParents
- Throws:
ServiceException
-
getRootNodesLanguages
- Throws:
ServiceException
-
removeChild
- Throws:
ServiceException
-
saveWithParent
- Parameters:
child- newly created child node to be savedparent- parent node the new node is child of- Returns:
- saved child node
- Throws:
ServiceException- if saving fails
-
updateChildrenOrder
- Throws:
ServiceException
-