Class CudamiIdentifiablesClient<I extends de.digitalcollections.model.identifiable.Identifiable>

java.lang.Object
de.digitalcollections.client.BaseRestClient<T>
de.digitalcollections.cudami.client.CudamiRestClient<I>
de.digitalcollections.cudami.client.identifiable.CudamiIdentifiablesClient<I>
Direct Known Subclasses:
CudamiEntitiesClient, CudamiFamilyNamesClient, CudamiFileResourcesMetadataClient, CudamiGivenNamesClient, CudamiImageFileResourcesClient, CudamiLinkedDataFileResourcesClient, CudamiSubjectsClient, CudamiWebpagesClient

public class CudamiIdentifiablesClient<I extends de.digitalcollections.model.identifiable.Identifiable> extends CudamiRestClient<I>
  • Constructor Details

    • CudamiIdentifiablesClient

      public CudamiIdentifiablesClient(HttpClient http, String serverUrl, Class<I> identifiableClass, com.fasterxml.jackson.databind.ObjectMapper mapper, String baseEndpoint)
    • CudamiIdentifiablesClient

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

    • findByLanguageAndInitial

      public de.digitalcollections.model.list.paging.PageResponse<I> findByLanguageAndInitial(de.digitalcollections.model.list.paging.PageRequest pageRequest, String language, String initial) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • findByLanguageAndInitial

      public de.digitalcollections.model.list.paging.PageResponse<I> findByLanguageAndInitial(int pageNumber, int pageSize, String sortField, String sortDirection, String nullHandling, String language, String initial) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • getByIdentifier

      public I getByIdentifier(String namespace, String id, Map<String,String> additionalParameters) throws de.digitalcollections.model.exception.TechnicalException
      Retrieves an Identifiable by its namespace and id and appends additional parameters to the request
      Parameters:
      namespace - the namespace. Must be plain text, not encoded in any way
      id - the id. Must be in plain text, not encoded in any way
      additionalParameters - a map<String,String> of additional parameters
      Returns:
      the Identifiable or null
      Throws:
      de.digitalcollections.model.exception.TechnicalException - in case of an error
    • getByIdentifier

      public I getByIdentifier(String namespace, String id) throws de.digitalcollections.model.exception.TechnicalException
      Retrieves an Identifiable by its namespace and id
      Parameters:
      namespace - the namespace. Must be plain text, not encoded in any way
      id - the id. Must be in plain text, not encoded in any way
      Returns:
      the Identifiable or null
      Throws:
      de.digitalcollections.model.exception.TechnicalException - in case of an error
    • getByUuidAndLocale

      public I getByUuidAndLocale(UUID uuid, Locale locale) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • getByUuidAndLocale

      public I getByUuidAndLocale(UUID uuid, String locale) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • getLanguages

      public List<Locale> getLanguages() throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • getLocalizedUrlAliases

      public de.digitalcollections.model.identifiable.alias.LocalizedUrlAliases getLocalizedUrlAliases(UUID uuid) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException