Class CudamiEntitiesClient

java.lang.Object
de.digitalcollections.cudami.client.CudamiBaseClient<de.digitalcollections.model.impl.identifiable.entity.EntityImpl>
de.digitalcollections.cudami.client.CudamiEntitiesClient

public class CudamiEntitiesClient
extends CudamiBaseClient<de.digitalcollections.model.impl.identifiable.entity.EntityImpl>
  • Constructor Details

    • CudamiEntitiesClient

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

    • addRelatedFileresource

      public void addRelatedFileresource​(java.util.UUID uuid, java.util.UUID fileResourceUuid) throws HttpException
      Throws:
      HttpException
    • addRelation

      public void addRelation​(java.util.UUID subjectEntityUuid, java.lang.String predicate, java.util.UUID objectEntityUuid) throws HttpException
      Throws:
      HttpException
    • count

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

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

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

      public de.digitalcollections.model.api.paging.SearchPageResponse<de.digitalcollections.model.impl.identifiable.entity.EntityImpl> find​(de.digitalcollections.model.api.paging.SearchPageRequest searchPageRequest) throws HttpException
      Throws:
      HttpException
    • find

      public java.util.List<de.digitalcollections.model.impl.identifiable.entity.EntityImpl> find​(java.lang.String searchTerm, int maxResults) throws HttpException
      Throws:
      HttpException
    • findOne

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

      public de.digitalcollections.model.api.identifiable.entity.Entity findOne​(java.util.UUID uuid, java.util.Locale locale) throws HttpException
      Throws:
      HttpException
    • findOne

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

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

      public de.digitalcollections.model.api.identifiable.entity.Entity findOneByRefId​(long refId) throws HttpException
      Throws:
      HttpException
    • findRandomEntities

      public java.util.List findRandomEntities​(int count) throws HttpException
      Throws:
      HttpException
    • getRelatedFileResources

      public java.util.List getRelatedFileResources​(java.util.UUID uuid) throws HttpException
      Throws:
      HttpException
    • getRelations

      public java.util.List<de.digitalcollections.model.api.identifiable.entity.relation.EntityRelation> getRelations​(java.util.UUID subjectEntityUuid) throws HttpException
      Throws:
      HttpException
    • save

      public de.digitalcollections.model.api.identifiable.entity.Entity save​(de.digitalcollections.model.api.identifiable.entity.Entity entity) throws HttpException
      Throws:
      HttpException
    • saveRelatedFileResources

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

      public java.util.List<de.digitalcollections.model.api.identifiable.entity.relation.EntityRelation> saveRelationsForSubject​(java.util.List relations) throws HttpException
      Throws:
      HttpException
    • update

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