java.lang.Object
de.digitalcollections.cudami.client.CudamiBaseClient<de.digitalcollections.model.identifiable.entity.Topic>
de.digitalcollections.cudami.client.identifiable.entity.CudamiTopicsClient

public class CudamiTopicsClient
extends CudamiBaseClient<de.digitalcollections.model.identifiable.entity.Topic>
  • Constructor Details

    • CudamiTopicsClient

      public CudamiTopicsClient​(java.net.http.HttpClient http, java.lang.String serverUrl, com.fasterxml.jackson.databind.ObjectMapper mapper)
  • Method Details

    • count

      public long count() throws HttpException
      Throws:
      HttpException
    • create

      public de.digitalcollections.model.identifiable.entity.Topic create()
    • find

      public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Topic> find​(de.digitalcollections.model.paging.PageRequest pageRequest) throws HttpException
      Throws:
      HttpException
    • find

      public de.digitalcollections.model.paging.SearchPageResponse<de.digitalcollections.model.identifiable.entity.Topic> find​(de.digitalcollections.model.paging.SearchPageRequest pageRequest) throws HttpException
      Throws:
      HttpException
    • findOne

      public de.digitalcollections.model.identifiable.entity.Topic findOne​(java.util.UUID uuid) throws HttpException
      Throws:
      HttpException
    • findOne

      public de.digitalcollections.model.identifiable.entity.Topic findOne​(java.util.UUID uuid, java.lang.String locale) throws HttpException
      Throws:
      HttpException
    • findOneByIdentifier

      public de.digitalcollections.model.identifiable.entity.Topic findOneByIdentifier​(java.lang.String namespace, java.lang.String id) throws HttpException
      Throws:
      HttpException
    • findOneByRefId

      public de.digitalcollections.model.identifiable.entity.Topic findOneByRefId​(long refId) throws HttpException
      Throws:
      HttpException
    • findSubtopics

      public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Topic> findSubtopics​(java.util.UUID uuid, de.digitalcollections.model.paging.SearchPageRequest searchPageRequest) throws HttpException
      Throws:
      HttpException
    • findTopCollections

      public de.digitalcollections.model.paging.SearchPageResponse<de.digitalcollections.model.identifiable.entity.Topic> findTopCollections​(de.digitalcollections.model.paging.SearchPageRequest searchPageRequest) throws HttpException
      Throws:
      HttpException
    • findTopTopics

      public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Topic> findTopTopics​(de.digitalcollections.model.paging.PageRequest pageRequest) throws HttpException
      Throws:
      HttpException
    • getAllEntities

      public java.util.List<de.digitalcollections.model.identifiable.entity.Entity> getAllEntities​(java.util.UUID uuid) throws HttpException
      Throws:
      HttpException
    • getBreadcrumbNavigation

      public de.digitalcollections.model.view.BreadcrumbNavigation getBreadcrumbNavigation​(java.util.UUID uuid) throws HttpException
      Throws:
      HttpException
    • getChildren

      public java.util.List<de.digitalcollections.model.identifiable.entity.Topic> getChildren​(java.util.UUID uuid) throws HttpException
      Throws:
      HttpException
    • getChildren

      public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Topic> getChildren​(java.util.UUID uuid, de.digitalcollections.model.paging.PageRequest pageRequest) throws HttpException
      Throws:
      HttpException
    • getEntities

      public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Entity> getEntities​(java.util.UUID uuid, de.digitalcollections.model.paging.PageRequest pageRequest) throws HttpException
      Throws:
      HttpException
    • getFileResources

      public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.resource.FileResource> getFileResources​(java.util.UUID uuid, de.digitalcollections.model.paging.PageRequest pageRequest) throws HttpException
      Throws:
      HttpException
    • getLanguagesOfEntities

      public java.util.List<java.util.Locale> getLanguagesOfEntities​(java.util.UUID topicUuid) throws HttpException
      Throws:
      HttpException
    • getLanguagesOfFileResources

      public java.util.List<java.util.Locale> getLanguagesOfFileResources​(java.util.UUID topicUuid) throws HttpException
      Throws:
      HttpException
    • getParent

      public de.digitalcollections.model.identifiable.entity.Topic getParent​(java.util.UUID uuid) throws HttpException
      Throws:
      HttpException
    • getRelatedFileResources

      public java.util.List<de.digitalcollections.model.identifiable.resource.FileResource> getRelatedFileResources​(java.util.UUID uuid) throws HttpException
      Throws:
      HttpException
    • getSubtopics

      @Deprecated public java.util.List<de.digitalcollections.model.identifiable.entity.Topic> getSubtopics​(java.util.UUID uuid) throws HttpException
      Deprecated.
      use getChildren(uuid)
      Parameters:
      uuid -
      Returns:
      Throws:
      HttpException
    • getTopTopicsLanguages

      public java.util.List<java.util.Locale> getTopTopicsLanguages() throws HttpException
      Throws:
      HttpException
    • getTopicsOfEntity

      public java.util.List<de.digitalcollections.model.identifiable.entity.Topic> getTopicsOfEntity​(java.util.UUID uuid) throws HttpException
      Throws:
      HttpException
    • getTopicsOfFileResource

      public java.util.List<de.digitalcollections.model.identifiable.entity.Topic> getTopicsOfFileResource​(java.util.UUID uuid) throws HttpException
      Throws:
      HttpException
    • removeChild

      public boolean removeChild​(java.util.UUID parentUuid, java.util.UUID childUuid) throws HttpException
      Throws:
      HttpException
    • save

      public de.digitalcollections.model.identifiable.entity.Topic save​(de.digitalcollections.model.identifiable.entity.Topic topic) throws HttpException
      Throws:
      HttpException
    • saveEntities

      public java.util.List<de.digitalcollections.model.identifiable.entity.Entity> saveEntities​(java.util.UUID uuid, java.util.List entities) throws HttpException
      Throws:
      HttpException
    • saveFileResources

      public java.util.List<de.digitalcollections.model.identifiable.resource.FileResource> saveFileResources​(java.util.UUID uuid, java.util.List fileResources) throws HttpException
      Throws:
      HttpException
    • saveWithParentTopic

      public de.digitalcollections.model.identifiable.entity.Topic saveWithParentTopic​(de.digitalcollections.model.identifiable.entity.Topic subtopic, java.util.UUID parentTopicUuid) throws HttpException
      Throws:
      HttpException
    • update

      public de.digitalcollections.model.identifiable.entity.Topic update​(java.util.UUID uuid, de.digitalcollections.model.identifiable.entity.Topic topic) throws HttpException
      Throws:
      HttpException