All Implemented Interfaces:
EntityPartRepository<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>, SubtopicRepository, IdentifiableRepository<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>, NodeRepository<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>

@Repository
public class SubtopicRepositoryImpl
extends EntityPartRepositoryImpl<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>
implements SubtopicRepository
  • Field Details

  • Constructor Details

  • Method Details

    • getSqlInsertFields

      public static java.lang.String getSqlInsertFields()
    • getSqlInsertValues

      public static java.lang.String getSqlInsertValues()
    • getSqlSelectAllFields

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

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

      public static java.lang.String getSqlUpdateFieldValues()
    • addChildren

      public boolean addChildren​(java.util.UUID parentUuid, java.util.List<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic> collections)
      Specified by:
      addChildren in interface NodeRepository<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>
    • deleteFromParentSubtopic

      public java.lang.Integer deleteFromParentSubtopic​(java.util.UUID subtopicUuid, java.util.UUID parentSubtopicUuid)
      Specified by:
      deleteFromParentSubtopic in interface SubtopicRepository
    • deleteFromParentTopic

      public java.lang.Integer deleteFromParentTopic​(java.util.UUID subtopicUuid, java.util.UUID topicUuid)
      Specified by:
      deleteFromParentTopic in interface SubtopicRepository
    • findOne

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

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

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

      public java.util.List<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic> getChildren​(java.util.UUID uuid)
      Specified by:
      getChildren in interface NodeRepository<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>
    • getChildren

      public de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic> getChildren​(java.util.UUID uuid, de.digitalcollections.model.api.paging.PageRequest pageRequest)
      Specified by:
      getChildren in interface NodeRepository<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>
    • getEntities

      public java.util.List<de.digitalcollections.model.api.identifiable.entity.Entity> getEntities​(java.util.UUID subtopicUuid)
      Specified by:
      getEntities in interface SubtopicRepository
    • getFileResources

      public java.util.List<de.digitalcollections.model.api.identifiable.resource.FileResource> getFileResources​(java.util.UUID subtopicUuid)
      Specified by:
      getFileResources in interface SubtopicRepository
    • getParent

      public de.digitalcollections.model.api.identifiable.entity.parts.Subtopic getParent​(java.util.UUID uuid)
      Specified by:
      getParent in interface NodeRepository<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>
    • getParents

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

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

      public java.util.List<java.util.Locale> getRootNodesLanguages()
      Specified by:
      getRootNodesLanguages in interface NodeRepository<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>
    • getSubtopicsOfEntity

      public java.util.List<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic> getSubtopicsOfEntity​(java.util.UUID entityUuid)
      Specified by:
      getSubtopicsOfEntity in interface SubtopicRepository
    • getSubtopicsOfFileResource

      public java.util.List<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic> getSubtopicsOfFileResource​(java.util.UUID fileResourceUuid)
      Specified by:
      getSubtopicsOfFileResource in interface SubtopicRepository
    • getTopic

      public de.digitalcollections.model.api.identifiable.entity.Topic getTopic​(java.util.UUID rootSubtopicUuid)
      Specified by:
      getTopic in interface SubtopicRepository
    • removeChild

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

      public de.digitalcollections.model.api.identifiable.entity.parts.Subtopic save​(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic)
      Specified by:
      save in interface IdentifiableRepository<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>
    • saveEntities

      public java.util.List<de.digitalcollections.model.api.identifiable.entity.Entity> saveEntities​(java.util.UUID subtopicUuid, java.util.List<de.digitalcollections.model.api.identifiable.entity.Entity> entities)
      Specified by:
      saveEntities in interface SubtopicRepository
    • saveFileResources

      public java.util.List<de.digitalcollections.model.api.identifiable.resource.FileResource> saveFileResources​(java.util.UUID subtopicUuid, java.util.List<de.digitalcollections.model.api.identifiable.resource.FileResource> fileResources)
      Specified by:
      saveFileResources in interface SubtopicRepository
    • saveWithParent

      public de.digitalcollections.model.api.identifiable.entity.parts.Subtopic saveWithParent​(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, java.util.UUID parentSubtopicUuid)
      Specified by:
      saveWithParent in interface NodeRepository<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>
    • saveWithParentTopic

      public de.digitalcollections.model.api.identifiable.entity.parts.Subtopic saveWithParentTopic​(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, java.util.UUID parentTopicUuid)
      Specified by:
      saveWithParentTopic in interface SubtopicRepository
    • update

      public de.digitalcollections.model.api.identifiable.entity.parts.Subtopic update​(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic)
      Specified by:
      update in interface IdentifiableRepository<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>
    • updateChildrenOrder

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