Class TopicRepositoryImpl

    • Method Detail

      • getSqlInsertFields

        public static String getSqlInsertFields()
      • getSqlInsertValues

        public static String getSqlInsertValues()
      • getSqlSelectAllFields

        public static String getSqlSelectAllFields​(String tableAlias,
                                                   String mappingPrefix)
      • getSqlSelectReducedFields

        public static String getSqlSelectReducedFields​(String tableAlias,
                                                       String mappingPrefix)
      • getSqlUpdateFieldValues

        public static String getSqlUpdateFieldValues()
      • addChildren

        public boolean addChildren​(UUID parentUuid,
                                   List<UUID> childrenUuids)
        Specified by:
        addChildren in interface NodeRepository<de.digitalcollections.model.identifiable.entity.Topic>
      • findChildren

        public de.digitalcollections.model.paging.SearchPageResponse<de.digitalcollections.model.identifiable.entity.Topic> findChildren​(UUID uuid,
                                                                                                                                         de.digitalcollections.model.paging.SearchPageRequest searchPageRequest)
        Specified by:
        findChildren in interface NodeRepository<de.digitalcollections.model.identifiable.entity.Topic>
      • findOne

        public de.digitalcollections.model.identifiable.entity.Topic findOne​(UUID uuid,
                                                                             de.digitalcollections.model.filter.Filtering filtering)
        Specified by:
        findOne in interface IdentifiableRepository<de.digitalcollections.model.identifiable.entity.Topic>
        Overrides:
        findOne in class IdentifiableRepositoryImpl<de.digitalcollections.model.identifiable.entity.Topic>
      • findOne

        public de.digitalcollections.model.identifiable.entity.Topic findOne​(de.digitalcollections.model.identifiable.Identifier identifier)
        Specified by:
        findOne in interface IdentifiableRepository<de.digitalcollections.model.identifiable.entity.Topic>
        Overrides:
        findOne in class IdentifiableRepositoryImpl<de.digitalcollections.model.identifiable.entity.Topic>
      • getBreadcrumbNavigation

        public de.digitalcollections.model.view.BreadcrumbNavigation getBreadcrumbNavigation​(UUID nodeUuid)
        Specified by:
        getBreadcrumbNavigation in interface NodeRepository<de.digitalcollections.model.identifiable.entity.Topic>
      • getChildren

        public List<de.digitalcollections.model.identifiable.entity.Topic> getChildren​(UUID uuid)
        Specified by:
        getChildren in interface NodeRepository<de.digitalcollections.model.identifiable.entity.Topic>
      • getChildren

        public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Topic> getChildren​(UUID nodeUuid,
                                                                                                                                  de.digitalcollections.model.paging.PageRequest pageRequest)
        Specified by:
        getChildren in interface NodeRepository<de.digitalcollections.model.identifiable.entity.Topic>
      • getEntities

        public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Entity> getEntities​(UUID topicUuid,
                                                                                                                                   de.digitalcollections.model.paging.PageRequest pageRequest)
        Specified by:
        getEntities in interface TopicRepository
      • getFileResources

        public List<de.digitalcollections.model.identifiable.resource.FileResource> getFileResources​(UUID topicUuid)
        Specified by:
        getFileResources in interface TopicRepository
      • getFileResources

        public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.resource.FileResource> getFileResources​(UUID topicUuid,
                                                                                                                                                de.digitalcollections.model.paging.PageRequest pageRequest)
        Specified by:
        getFileResources in interface TopicRepository
      • getParent

        public de.digitalcollections.model.identifiable.entity.Topic getParent​(UUID nodeUuid)
        Specified by:
        getParent in interface NodeRepository<de.digitalcollections.model.identifiable.entity.Topic>
      • getParents

        public List<de.digitalcollections.model.identifiable.entity.Topic> getParents​(UUID uuid)
        Specified by:
        getParents in interface NodeRepository<de.digitalcollections.model.identifiable.entity.Topic>
      • getRootNodes

        public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Topic> getRootNodes​(de.digitalcollections.model.paging.PageRequest pageRequest)
        Specified by:
        getRootNodes in interface NodeRepository<de.digitalcollections.model.identifiable.entity.Topic>
      • findRootNodes

        public de.digitalcollections.model.paging.SearchPageResponse<de.digitalcollections.model.identifiable.entity.Topic> findRootNodes​(de.digitalcollections.model.paging.SearchPageRequest searchPageRequest)
        Specified by:
        findRootNodes in interface NodeRepository<de.digitalcollections.model.identifiable.entity.Topic>
      • removeChild

        public boolean removeChild​(UUID parentUuid,
                                   UUID childUuid)
        Specified by:
        removeChild in interface NodeRepository<de.digitalcollections.model.identifiable.entity.Topic>
      • save

        public de.digitalcollections.model.identifiable.entity.Topic save​(de.digitalcollections.model.identifiable.entity.Topic topic)
        Specified by:
        save in interface IdentifiableRepository<de.digitalcollections.model.identifiable.entity.Topic>
      • saveEntities

        public List<de.digitalcollections.model.identifiable.entity.Entity> saveEntities​(UUID topicUuid,
                                                                                         List<de.digitalcollections.model.identifiable.entity.Entity> entities)
        Specified by:
        saveEntities in interface TopicRepository
      • saveFileResources

        public List<de.digitalcollections.model.identifiable.resource.FileResource> saveFileResources​(UUID topicUuid,
                                                                                                      List<de.digitalcollections.model.identifiable.resource.FileResource> fileResources)
        Specified by:
        saveFileResources in interface TopicRepository
      • saveWithParent

        public de.digitalcollections.model.identifiable.entity.Topic saveWithParent​(UUID childUuid,
                                                                                    UUID parentUuid)
        Specified by:
        saveWithParent in interface NodeRepository<de.digitalcollections.model.identifiable.entity.Topic>
      • update

        public de.digitalcollections.model.identifiable.entity.Topic update​(de.digitalcollections.model.identifiable.entity.Topic topic)
        Specified by:
        update in interface IdentifiableRepository<de.digitalcollections.model.identifiable.entity.Topic>
      • updateChildrenOrder

        public boolean updateChildrenOrder​(UUID parentUuid,
                                           List<de.digitalcollections.model.identifiable.entity.Topic> children)
        Specified by:
        updateChildrenOrder in interface NodeRepository<de.digitalcollections.model.identifiable.entity.Topic>