Class CudamiLicensesClient

java.lang.Object
de.digitalcollections.client.BaseRestClient<T>
de.digitalcollections.cudami.client.CudamiRestClient<de.digitalcollections.model.legal.License>
de.digitalcollections.cudami.client.legal.CudamiLicensesClient

public class CudamiLicensesClient extends CudamiRestClient<de.digitalcollections.model.legal.License>
  • Constructor Details

    • CudamiLicensesClient

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

    • deleteByUrl

      public void deleteByUrl(String url) throws de.digitalcollections.model.exception.TechnicalException, MalformedURLException
      Parameters:
      url - (not validated) url string of license to be deleted
      Throws:
      MalformedURLException - thrown if given url is malformed
      de.digitalcollections.model.exception.TechnicalException - in case of connection problems
    • deleteByUrl

      public void deleteByUrl(URL url) throws de.digitalcollections.model.exception.TechnicalException
      Parameters:
      url - valid url of license to be deleted
      Throws:
      de.digitalcollections.model.exception.TechnicalException - in case of connection problems
    • getByUrl

      public de.digitalcollections.model.legal.License getByUrl(String url) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • getByUrl

      public de.digitalcollections.model.legal.License getByUrl(URL url) 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