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>
-
Field Summary
Fields inherited from class de.digitalcollections.cudami.client.CudamiRestClient
API_VERSION_PREFIXFields inherited from class de.digitalcollections.client.BaseRestClient
baseEndpoint, http, mapper, reader, serverUri, targetType -
Constructor Summary
ConstructorsConstructorDescriptionCudamiIdentifiablesClient(HttpClient http, String serverUrl, com.fasterxml.jackson.databind.ObjectMapper mapper) CudamiIdentifiablesClient(HttpClient http, String serverUrl, Class<I> identifiableClass, com.fasterxml.jackson.databind.ObjectMapper mapper, String baseEndpoint) -
Method Summary
Modifier and TypeMethodDescriptionde.digitalcollections.model.list.paging.PageResponse<I>findByLanguageAndInitial(int pageNumber, int pageSize, String sortField, String sortDirection, String nullHandling, String language, String initial) de.digitalcollections.model.list.paging.PageResponse<I>findByLanguageAndInitial(de.digitalcollections.model.list.paging.PageRequest pageRequest, String language, String initial) getByIdentifier(String namespace, String id) Retrieves an Identifiable by its namespace and idRetrieves an Identifiable by its namespace and id and appends additional parameters to the requestgetByUuidAndLocale(UUID uuid, String locale) getByUuidAndLocale(UUID uuid, Locale locale) de.digitalcollections.model.identifiable.alias.LocalizedUrlAliasesgetLocalizedUrlAliases(UUID uuid) Methods inherited from class de.digitalcollections.cudami.client.CudamiRestClient
count, deleteByUuid, find, getByUuid, save, updateMethods 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, getFilterParamsAsString, getFindParamsAsString, getSortParams
-
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.TechnicalExceptionRetrieves 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 wayid- the id. Must be in plain text, not encoded in any wayadditionalParameters- 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 wayid- 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
- 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
-