Class CudamiCollectionsClient


  • public class CudamiCollectionsClient
    extends CudamiBaseClient<de.digitalcollections.model.impl.identifiable.entity.CollectionImpl>
    • 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.api.identifiable.entity.DigitalObject> digitalObjects)
                                  throws HttpException
        Throws:
        HttpException
      • addSubcollections

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

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

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

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

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

        public de.digitalcollections.model.api.identifiable.entity.Collection findOneByIdentifier​(String namespace,
                                                                                                  String id)
                                                                                           throws HttpException
        Throws:
        HttpException
      • findTopCollections

        public de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.impl.identifiable.entity.CollectionImpl> findTopCollections​(de.digitalcollections.model.api.paging.PageRequest pageRequest)
                                                                                                                                                    throws HttpException
        Throws:
        HttpException
      • getActiveSubcollections

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

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

        public de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.entity.DigitalObject> getDigitalObjects​(UUID collectionUuid,
                                                                                                                                                        de.digitalcollections.model.api.paging.PageRequest pageRequest)
                                                                                                                                                 throws HttpException
        Throws:
        HttpException
      • getParent

        public de.digitalcollections.model.api.identifiable.entity.Collection getParent​(UUID uuid)
                                                                                 throws HttpException
        Throws:
        HttpException
      • getSubcollections

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

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

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

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

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