Class CudamiEntitiesClient<E extends de.digitalcollections.model.identifiable.entity.Entity>

Direct Known Subclasses:
CudamiAgentsClient, CudamiArticlesClient, CudamiCanyonsClient, CudamiCavesClient, CudamiCollectionsClient, CudamiContinentsClient, CudamiCorporateBodiesClient, CudamiCountriesClient, CudamiCreeksClient, CudamiDigitalObjectsClient, CudamiEventsClient, CudamiGeoLocationsClient, CudamiHeadwordEntriesClient, CudamiHumanSettlementsClient, CudamiItemsClient, CudamiLakesClient, CudamiManifestationsClient, CudamiMountainsClient, CudamiOceansClient, CudamiPersonsClient, CudamiProjectsClient, CudamiRiversClient, CudamiSeasClient, CudamiStillWatersClient, CudamiTopicsClient, CudamiValleysClient, CudamiWebsitesClient, CudamiWorksClient

public class CudamiEntitiesClient<E extends de.digitalcollections.model.identifiable.entity.Entity> extends CudamiIdentifiablesClient<E>
  • Constructor Details

    • CudamiEntitiesClient

      public CudamiEntitiesClient(HttpClient http, String serverUrl, Class<E> entityClass, com.fasterxml.jackson.databind.ObjectMapper mapper, String baseEndpoint)
    • CudamiEntitiesClient

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

    • addRelatedFileresource

      public void addRelatedFileresource(UUID uuid, UUID fileResourceUuid) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • addRelation

      public void addRelation(UUID subjectEntityUuid, String predicate, UUID objectEntityUuid) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • addRelationsForSubject

      public List<de.digitalcollections.model.identifiable.entity.relation.EntityRelation> addRelationsForSubject(List relations) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • getByRefId

      public E getByRefId(long refId) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • getRandomEntities

      public List getRandomEntities(int count) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • getRelatedFileResources

      @Deprecated(forRemoval=true) public List<de.digitalcollections.model.identifiable.resource.FileResource> getRelatedFileResources(UUID uuid) throws de.digitalcollections.model.exception.TechnicalException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • getRelatedFileResources

      public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.resource.FileResource> getRelatedFileResources(UUID uuid, de.digitalcollections.model.list.paging.PageRequest pageRequest) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • getRelations

      @Deprecated(forRemoval=true) public List<de.digitalcollections.model.identifiable.entity.relation.EntityRelation> getRelations(UUID subjectEntityUuid) throws de.digitalcollections.model.exception.TechnicalException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • getRelations

      public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.relation.EntityRelation> getRelations(UUID subjectEntityUuid, de.digitalcollections.model.list.paging.PageRequest pageRequest) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • setRelatedFileResources

      public List<de.digitalcollections.model.identifiable.resource.FileResource> setRelatedFileResources(UUID uuid, List fileResources) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException