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.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Topic> findChildren​(UUID uuid,
                                                                                                                                        de.digitalcollections.model.list.paging.PageRequest pageRequest)
        Specified by:
        findChildren in interface NodeRepository<de.digitalcollections.model.identifiable.entity.Topic>
      • findEntities

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

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

        public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Topic> findRootNodes​(de.digitalcollections.model.list.paging.PageRequest pageRequest)
        Specified by:
        findRootNodes in interface NodeRepository<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>
      • getByIdentifier

        public de.digitalcollections.model.identifiable.entity.Topic getByIdentifier​(de.digitalcollections.model.identifiable.Identifier identifier)
        Specified by:
        getByIdentifier in interface IdentifiableRepository<de.digitalcollections.model.identifiable.entity.Topic>
        Overrides:
        getByIdentifier in class IdentifiableRepositoryImpl<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>
      • getEntities

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

        public List<de.digitalcollections.model.identifiable.resource.FileResource> getFileResources​(UUID topicUuid)
        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>
      • 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>
      • 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>
      • setEntities

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

        public List<de.digitalcollections.model.identifiable.resource.FileResource> setFileResources​(UUID topicUuid,
                                                                                                     List<de.digitalcollections.model.identifiable.resource.FileResource> fileResources)
        Specified by:
        setFileResources in interface TopicRepository
      • 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>