All Implemented Interfaces:
EntityService<de.digitalcollections.model.identifiable.entity.Topic>, TopicService, IdentifiableService<de.digitalcollections.model.identifiable.entity.Topic>, NodeService<de.digitalcollections.model.identifiable.entity.Topic>, UniqueObjectService<de.digitalcollections.model.identifiable.entity.Topic>

@Service public class TopicServiceImpl extends EntityServiceImpl<de.digitalcollections.model.identifiable.entity.Topic> implements TopicService
Service for Topic handling.
  • Constructor Details

  • Method Details

    • addChild

      public boolean addChild(de.digitalcollections.model.identifiable.entity.Topic parent, de.digitalcollections.model.identifiable.entity.Topic child) throws ServiceException
      Specified by:
      addChild in interface NodeService<de.digitalcollections.model.identifiable.entity.Topic>
      Throws:
      ServiceException
    • addChildren

      public boolean addChildren(de.digitalcollections.model.identifiable.entity.Topic parent, List<de.digitalcollections.model.identifiable.entity.Topic> children) throws ServiceException
      Specified by:
      addChildren in interface NodeService<de.digitalcollections.model.identifiable.entity.Topic>
      Throws:
      ServiceException
    • addEntities

      public boolean addEntities(de.digitalcollections.model.identifiable.entity.Topic topic, List<de.digitalcollections.model.identifiable.entity.Entity> entities) throws ServiceException
      Specified by:
      addEntities in interface TopicService
      Throws:
      ServiceException
    • addEntity

      public boolean addEntity(de.digitalcollections.model.identifiable.entity.Topic topic, de.digitalcollections.model.identifiable.entity.Entity entity) throws ServiceException
      Specified by:
      addEntity in interface TopicService
      Throws:
      ServiceException
    • addFileResource

      public boolean addFileResource(de.digitalcollections.model.identifiable.entity.Topic topic, de.digitalcollections.model.identifiable.resource.FileResource fileResource) throws ServiceException
      Specified by:
      addFileResource in interface TopicService
      Throws:
      ServiceException
    • addFileResources

      public boolean addFileResources(de.digitalcollections.model.identifiable.entity.Topic topic, List<de.digitalcollections.model.identifiable.resource.FileResource> fileResources) throws ServiceException
      Specified by:
      addFileResources in interface TopicService
      Throws:
      ServiceException
    • findChildren

      public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Topic> findChildren(de.digitalcollections.model.identifiable.entity.Topic topic, de.digitalcollections.model.list.paging.PageRequest pageRequest) throws ServiceException
      Specified by:
      findChildren in interface NodeService<de.digitalcollections.model.identifiable.entity.Topic>
      Throws:
      ServiceException
    • findEntities

      public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Entity> findEntities(de.digitalcollections.model.identifiable.entity.Topic topic, de.digitalcollections.model.list.paging.PageRequest pageRequest) throws ServiceException
      Specified by:
      findEntities in interface TopicService
      Throws:
      ServiceException
    • findFileResources

      public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.resource.FileResource> findFileResources(de.digitalcollections.model.identifiable.entity.Topic topic, de.digitalcollections.model.list.paging.PageRequest pageRequest) throws ServiceException
      Specified by:
      findFileResources in interface TopicService
      Throws:
      ServiceException
    • findRootNodes

      public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Topic> findRootNodes(de.digitalcollections.model.list.paging.PageRequest pageRequest) throws ServiceException
      Specified by:
      findRootNodes in interface NodeService<de.digitalcollections.model.identifiable.entity.Topic>
      Throws:
      ServiceException
    • getBreadcrumbNavigation

      public de.digitalcollections.model.view.BreadcrumbNavigation getBreadcrumbNavigation(de.digitalcollections.model.identifiable.entity.Topic topic) throws ServiceException
      Description copied from interface: NodeService
      Build and return the breadcrumb navigation for the given node
      Specified by:
      getBreadcrumbNavigation in interface NodeService<de.digitalcollections.model.identifiable.entity.Topic>
      Parameters:
      topic - the node.
      Returns:
      BreadcrumbNavigation with labels in all available languages
      Throws:
      ServiceException
    • getChildren

      public List<de.digitalcollections.model.identifiable.entity.Topic> getChildren(de.digitalcollections.model.identifiable.entity.Topic topic) throws ServiceException
      Specified by:
      getChildren in interface NodeService<de.digitalcollections.model.identifiable.entity.Topic>
      Throws:
      ServiceException
    • getFileResources

      public List<de.digitalcollections.model.identifiable.resource.FileResource> getFileResources(de.digitalcollections.model.identifiable.entity.Topic topic) throws ServiceException
      Specified by:
      getFileResources in interface TopicService
      Throws:
      ServiceException
    • getLanguagesOfEntities

      public List<Locale> getLanguagesOfEntities(de.digitalcollections.model.identifiable.entity.Topic topic) throws ServiceException
      Specified by:
      getLanguagesOfEntities in interface TopicService
      Throws:
      ServiceException
    • getLanguagesOfFileResources

      public List<Locale> getLanguagesOfFileResources(de.digitalcollections.model.identifiable.entity.Topic topic) throws ServiceException
      Specified by:
      getLanguagesOfFileResources in interface TopicService
      Throws:
      ServiceException
    • getParent

      public de.digitalcollections.model.identifiable.entity.Topic getParent(de.digitalcollections.model.identifiable.entity.Topic topic) throws ServiceException
      Specified by:
      getParent in interface NodeService<de.digitalcollections.model.identifiable.entity.Topic>
      Throws:
      ServiceException
    • getParents

      public List<de.digitalcollections.model.identifiable.entity.Topic> getParents(de.digitalcollections.model.identifiable.entity.Topic topic) throws ServiceException
      Specified by:
      getParents in interface NodeService<de.digitalcollections.model.identifiable.entity.Topic>
      Throws:
      ServiceException
    • getRootNodesLanguages

      public List<Locale> getRootNodesLanguages() throws ServiceException
      Specified by:
      getRootNodesLanguages in interface NodeService<de.digitalcollections.model.identifiable.entity.Topic>
      Throws:
      ServiceException
    • getTopicsOfEntity

      public List<de.digitalcollections.model.identifiable.entity.Topic> getTopicsOfEntity(de.digitalcollections.model.identifiable.entity.Entity entity) throws ServiceException
      Specified by:
      getTopicsOfEntity in interface TopicService
      Throws:
      ServiceException
    • getTopicsOfFileResource

      public List<de.digitalcollections.model.identifiable.entity.Topic> getTopicsOfFileResource(de.digitalcollections.model.identifiable.resource.FileResource fileResource) throws ServiceException
      Specified by:
      getTopicsOfFileResource in interface TopicService
      Throws:
      ServiceException
    • removeChild

      public boolean removeChild(de.digitalcollections.model.identifiable.entity.Topic parent, de.digitalcollections.model.identifiable.entity.Topic child) throws ServiceException
      Specified by:
      removeChild in interface NodeService<de.digitalcollections.model.identifiable.entity.Topic>
      Throws:
      ServiceException
    • removeEntity

      public boolean removeEntity(de.digitalcollections.model.identifiable.entity.Topic topic, de.digitalcollections.model.identifiable.entity.Entity entity) throws ServiceException
      Specified by:
      removeEntity in interface TopicService
      Throws:
      ServiceException
    • removeFileResource

      public boolean removeFileResource(de.digitalcollections.model.identifiable.entity.Topic topic, de.digitalcollections.model.identifiable.resource.FileResource fileResource) throws ServiceException
      Specified by:
      removeFileResource in interface TopicService
      Throws:
      ServiceException
    • saveWithParent

      public de.digitalcollections.model.identifiable.entity.Topic saveWithParent(de.digitalcollections.model.identifiable.entity.Topic child, de.digitalcollections.model.identifiable.entity.Topic parent) throws ServiceException
      Specified by:
      saveWithParent in interface NodeService<de.digitalcollections.model.identifiable.entity.Topic>
      Parameters:
      child - newly created child node to be saved
      parent - parent node the new node is child of
      Returns:
      saved child node
      Throws:
      ServiceException - if saving fails
    • setEntities

      public boolean setEntities(de.digitalcollections.model.identifiable.entity.Topic topic, List<de.digitalcollections.model.identifiable.entity.Entity> entities) throws ServiceException
      Specified by:
      setEntities in interface TopicService
      Throws:
      ServiceException
    • setFileResources

      public boolean setFileResources(de.digitalcollections.model.identifiable.entity.Topic topic, List<de.digitalcollections.model.identifiable.resource.FileResource> fileResources) throws ServiceException
      Specified by:
      setFileResources in interface TopicService
      Throws:
      ServiceException
    • updateChildrenOrder

      public boolean updateChildrenOrder(de.digitalcollections.model.identifiable.entity.Topic parent, List<de.digitalcollections.model.identifiable.entity.Topic> children) throws ServiceException
      Specified by:
      updateChildrenOrder in interface NodeService<de.digitalcollections.model.identifiable.entity.Topic>
      Throws:
      ServiceException