Class CudamiCollectionsClient


  • public class CudamiCollectionsClient
    extends CudamiBaseClient<de.digitalcollections.model.identifiable.entity.Collection>
    • Constructor Detail

      • CudamiCollectionsClient

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

      • addDigitalObjects

        public boolean addDigitalObjects​(UUID collectionUuid,
                                         List<de.digitalcollections.model.identifiable.entity.DigitalObject> digitalObjects)
                                  throws HttpException
        Throws:
        HttpException
      • addSubcollections

        public boolean addSubcollections​(UUID collectionUuid,
                                         List<de.digitalcollections.model.identifiable.entity.Collection> subcollections)
                                  throws HttpException
        Throws:
        HttpException
      • create

        public de.digitalcollections.model.identifiable.entity.Collection create()
      • find

        public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Collection> find​(de.digitalcollections.model.paging.PageRequest pageRequest)
                                                                                                                         throws HttpException
        Throws:
        HttpException
      • find

        public de.digitalcollections.model.paging.SearchPageResponse<de.digitalcollections.model.identifiable.entity.Collection> find​(de.digitalcollections.model.paging.SearchPageRequest searchPageRequest)
                                                                                                                               throws HttpException
        Throws:
        HttpException
      • findActive

        public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Collection> findActive​(de.digitalcollections.model.paging.PageRequest pageRequest)
                                                                                                                               throws HttpException
        Throws:
        HttpException
      • findActive

        public de.digitalcollections.model.paging.SearchPageResponse<de.digitalcollections.model.identifiable.entity.Collection> findActive​(de.digitalcollections.model.paging.SearchPageRequest searchPageRequest)
                                                                                                                                     throws HttpException
        Throws:
        HttpException
      • findActiveSubcollections

        public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Collection> findActiveSubcollections​(UUID uuid,
                                                                                                                                                    de.digitalcollections.model.paging.SearchPageRequest searchPageRequest)
                                                                                                                                             throws HttpException
        Throws:
        HttpException
      • findOneByRefId

        public de.digitalcollections.model.identifiable.entity.Collection findOneByRefId​(long refId)
                                                                                  throws HttpException
        Throws:
        HttpException
      • findSubcollections

        public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Collection> findSubcollections​(UUID uuid,
                                                                                                                                              de.digitalcollections.model.paging.SearchPageRequest searchPageRequest)
                                                                                                                                       throws HttpException
        Throws:
        HttpException
      • findTopCollections

        @Deprecated(since="5.0",
                    forRemoval=true)
        public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Collection> findTopCollections​(de.digitalcollections.model.paging.PageRequest pageRequest)
                                                                                                                                       throws HttpException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Throws:
        HttpException
      • findTopCollections

        public de.digitalcollections.model.paging.SearchPageResponse<de.digitalcollections.model.identifiable.entity.Collection> findTopCollections​(de.digitalcollections.model.paging.SearchPageRequest searchPageRequest)
                                                                                                                                             throws HttpException
        Throws:
        HttpException
      • getActiveSubcollections

        public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Collection> getActiveSubcollections​(UUID uuid,
                                                                                                                                                   de.digitalcollections.model.paging.PageRequest pageRequest)
                                                                                                                                            throws HttpException
        Throws:
        HttpException
      • getBreadcrumbNavigation

        public de.digitalcollections.model.view.BreadcrumbNavigation getBreadcrumbNavigation​(UUID uuid)
                                                                                      throws HttpException
        Throws:
        HttpException
      • getDigitalObjects

        @Deprecated(since="5.0",
                    forRemoval=true)
        public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.DigitalObject> getDigitalObjects​(UUID collectionUuid,
                                                                                                                                                de.digitalcollections.model.paging.PageRequest pageRequest)
                                                                                                                                         throws HttpException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Throws:
        HttpException
      • getDigitalObjects

        public de.digitalcollections.model.paging.SearchPageResponse<de.digitalcollections.model.identifiable.entity.DigitalObject> getDigitalObjects​(UUID collectionUuid,
                                                                                                                                                      de.digitalcollections.model.paging.SearchPageRequest searchPageRequest)
                                                                                                                                               throws HttpException
        Throws:
        HttpException
      • getSubcollections

        public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Collection> getSubcollections​(UUID uuid,
                                                                                                                                             de.digitalcollections.model.paging.PageRequest pageRequest)
                                                                                                                                      throws HttpException
        Throws:
        HttpException
      • getRelatedCorporateBodies

        public List<de.digitalcollections.model.identifiable.entity.agent.CorporateBody> getRelatedCorporateBodies​(UUID uuid,
                                                                                                                   de.digitalcollections.model.filter.Filtering filtering)
                                                                                                            throws HttpException
        Throws:
        HttpException
      • save

        public de.digitalcollections.model.identifiable.entity.Collection save​(de.digitalcollections.model.identifiable.entity.Collection collection)
                                                                        throws HttpException
        Throws:
        HttpException
      • saveDigitalObjects

        public boolean saveDigitalObjects​(UUID collectionUuid,
                                          List<de.digitalcollections.model.identifiable.entity.DigitalObject> digitalObjects)
                                   throws HttpException
        Throws:
        HttpException
      • saveWithParentCollection

        public de.digitalcollections.model.identifiable.entity.Collection saveWithParentCollection​(de.digitalcollections.model.identifiable.entity.Collection collection,
                                                                                                   UUID parentCollectionUuid)
                                                                                            throws HttpException
        Throws:
        HttpException
      • update

        public de.digitalcollections.model.identifiable.entity.Collection update​(UUID uuid,
                                                                                 de.digitalcollections.model.identifiable.entity.Collection collection)
                                                                          throws HttpException
        Throws:
        HttpException