java.lang.Object
de.digitalcollections.client.BaseRestClient<T>
de.digitalcollections.cudami.client.CudamiRestClient<I>
de.digitalcollections.cudami.client.identifiable.CudamiIdentifiablesClient<de.digitalcollections.model.identifiable.semantic.Subject>
de.digitalcollections.cudami.client.identifiable.entity.semantic.CudamiSubjectsClient

public class CudamiSubjectsClient extends CudamiIdentifiablesClient<de.digitalcollections.model.identifiable.semantic.Subject>
  • Constructor Details

    • CudamiSubjectsClient

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

    • getByTypeAndIdentifier

      public de.digitalcollections.model.identifiable.semantic.Subject getByTypeAndIdentifier(String type, String namespace, String id) throws de.digitalcollections.model.exception.TechnicalException
      Retrieves a subject by its type, namespace and id
      Parameters:
      type - the type. Must be plain text, not encoded in any wav
      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 Subject or null
      Throws:
      de.digitalcollections.model.exception.TechnicalException - in case of an error
    • getLanguages

      public List<Locale> getLanguages() throws de.digitalcollections.model.exception.TechnicalException
      Overrides:
      getLanguages in class CudamiIdentifiablesClient<de.digitalcollections.model.identifiable.semantic.Subject>
      Throws:
      de.digitalcollections.model.exception.TechnicalException