Class CudamiIdentifiablesClient<I extends de.digitalcollections.model.identifiable.Identifiable>

    • Constructor Detail

      • 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 Detail

      • filterCriterionToUrlParam

        protected String filterCriterionToUrlParam​(de.digitalcollections.model.list.filtering.FilterCriterion filterCriterion)
        Overrides:
        filterCriterionToUrlParam in class BaseRestClient<I extends de.digitalcollections.model.identifiable.Identifiable>
      • find

        public List<I> find​(String searchTerm,
                            int maxResults)
                     throws de.digitalcollections.model.exception.TechnicalException
        Throws:
        de.digitalcollections.model.exception.TechnicalException
      • 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)
                          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 way
        id - 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

        public List<Locale> getLanguages()
                                  throws de.digitalcollections.model.exception.TechnicalException
        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