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>
-
-
Field Summary
-
Fields inherited from class de.digitalcollections.cudami.client.CudamiRestClient
API_VERSION_PREFIX
-
Fields inherited from class de.digitalcollections.client.BaseRestClient
baseEndpoint, http, mapper, reader, serverUri, targetType
-
-
Constructor Summary
Constructors Constructor Description CudamiLicensesClient(HttpClient http, String serverUrl, com.fasterxml.jackson.databind.ObjectMapper mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteByUrl(String url)voiddeleteByUrl(URL url)de.digitalcollections.model.legal.LicensegetByUrl(String url)de.digitalcollections.model.legal.LicensegetByUrl(URL url)-
Methods inherited from class de.digitalcollections.cudami.client.CudamiRestClient
count, deleteByUuid, find, getAll, getByUuid, save, update
-
Methods inherited from class de.digitalcollections.client.BaseRestClient
create, createFullUri, doDeleteRequestForString, doGetRequestForObject, doGetRequestForObject, doGetRequestForObjectList, doGetRequestForObjectList, doGetRequestForObjectList, doGetRequestForPagedObjectList, doGetRequestForPagedObjectList, doGetRequestForString, doPatchRequestForString, doPatchRequestForString, doPostRequestForObject, doPostRequestForObject, doPostRequestForObject, doPostRequestForObject, doPostRequestForObjectList, doPostRequestForObjectList, doPostRequestForString, doPostRequestForString, doPutRequestForObject, doPutRequestForObject, doPutRequestForObjectList, doPutRequestForString, getBaseEndpoint
-
-
-
-
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 malformedde.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
-
-