Class CudamiLicensesClient


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

      • CudamiLicensesClient

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

      • 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