@RestController public class CollectionController extends AbstractEntityController<de.digitalcollections.model.identifiable.entity.Collection>
  • Field Summary

    Fields inherited from class de.digitalcollections.cudami.server.controller.AbstractUniqueObjectController

    LOGGER
  • Constructor Summary

    Constructors
    Constructor
    Description
    CollectionController(CollectionService collectionService, LocaleService localeService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity
    addDigitalObject(UUID collectionUuid, UUID digitalObjectUuid)
     
    org.springframework.http.ResponseEntity
    addDigitalObjects(UUID collectionUuid, List<de.digitalcollections.model.identifiable.entity.digitalobject.DigitalObject> digitalObjects)
     
    org.springframework.http.ResponseEntity
    addSubcollection(UUID uuid, UUID subcollectionUuid)
     
    org.springframework.http.ResponseEntity
    addSubcollections(UUID uuid, List<de.digitalcollections.model.identifiable.entity.Collection> subcollections)
     
    long
     
    org.springframework.http.ResponseEntity
    delete(UUID uuid)
     
    de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Collection>
    find(int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, de.digitalcollections.model.list.filtering.Filtering filtering, String active)
     
    de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.digitalobject.DigitalObject>
    findDigitalObjects(UUID collectionUuid, int pageNumber, int pageSize, List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, de.digitalcollections.model.list.filtering.Filtering filtering)
     
    List<de.digitalcollections.model.identifiable.entity.agent.CorporateBody>
    findRelatedCorporateBodies(UUID uuid, de.digitalcollections.model.list.filtering.FilterCriterion predicateFilter, List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, de.digitalcollections.model.list.filtering.Filtering filtering)
     
    de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Collection>
    findSubcollections(UUID collectionUuid, int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, de.digitalcollections.model.list.filtering.Filtering filtering, String active)
     
    de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Collection>
    findTopCollections(int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, de.digitalcollections.model.list.filtering.Filtering filtering, String active)
     
    org.springframework.http.ResponseEntity<de.digitalcollections.model.view.BreadcrumbNavigation>
     
    org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.Collection>
    getByIdentifier(javax.servlet.http.HttpServletRequest request)
     
    org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.Collection>
    getByRefId(long refId)
     
    org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.Collection>
    getByUuid(UUID uuid, Locale pLocale, String active)
     
    de.digitalcollections.model.identifiable.entity.Collection
     
    List<de.digitalcollections.model.identifiable.entity.Collection>
    getParents(UUID collectionUuid)
     
    protected EntityService<de.digitalcollections.model.identifiable.entity.Collection>
     
     
    org.springframework.http.ResponseEntity
    removeDigitalObject(UUID collectionUuid, UUID digitalObjectUuid)
     
    org.springframework.http.ResponseEntity
    removeSubcollection(UUID uuid, UUID subcollectionUuid)
     
    de.digitalcollections.model.identifiable.entity.Collection
    save(de.digitalcollections.model.identifiable.entity.Collection collection, org.springframework.validation.BindingResult errors)
     
    org.springframework.http.ResponseEntity
    saveDigitalObjects(UUID collectionUuid, List<de.digitalcollections.model.identifiable.entity.digitalobject.DigitalObject> digitalObjects)
     
    de.digitalcollections.model.identifiable.entity.Collection
    saveWithParentCollection(UUID parentUuid, de.digitalcollections.model.identifiable.entity.Collection collection)
     
    de.digitalcollections.model.identifiable.entity.Collection
    update(UUID uuid, de.digitalcollections.model.identifiable.entity.Collection collection, org.springframework.validation.BindingResult errors)
     

    Methods inherited from class de.digitalcollections.cudami.server.controller.identifiable.AbstractIdentifiableController

    extractNamespaceAndId, getLanguages

    Methods inherited from class de.digitalcollections.cudami.server.controller.AbstractUniqueObjectController

    buildExampleWithUuid, delete, find, getByUuid, getByUuidAndLocale

    Methods inherited from class de.digitalcollections.cudami.server.controller.AbstractPagingAndSortingController

    createPageRequest, getFieldType, mergeFilters

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • addDigitalObject

      @PostMapping(value={"/v6/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/digitalobjects/{digitalObjectUuid}","/v5/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/digitalobjects/{digitalObjectUuid}","/v3/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/digitalobjects/{digitalObjectUuid}","/latest/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/digitalobjects/{digitalObjectUuid}"}, produces="application/json") public org.springframework.http.ResponseEntity addDigitalObject(@PathVariable("uuid") UUID collectionUuid, @PathVariable("digitalObjectUuid") UUID digitalObjectUuid) throws ServiceException
      Throws:
      ServiceException
    • addDigitalObjects

      @PostMapping(value={"/v6/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/digitalobjects","/v5/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/digitalobjects","/v3/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/digitalobjects","/latest/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/digitalobjects"}, produces="application/json") public org.springframework.http.ResponseEntity addDigitalObjects(@PathVariable("uuid") UUID collectionUuid, @RequestBody List<de.digitalcollections.model.identifiable.entity.digitalobject.DigitalObject> digitalObjects) throws ServiceException
      Throws:
      ServiceException
    • addSubcollection

      @PostMapping(value={"/v6/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/subcollections/{subcollectionUuid}","/v5/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/subcollections/{subcollectionUuid}","/v3/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/subcollections/{subcollectionUuid}","/latest/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/subcollections/{subcollectionUuid}"}, produces="application/json") public org.springframework.http.ResponseEntity addSubcollection(@PathVariable("uuid") UUID uuid, @PathVariable("subcollectionUuid") UUID subcollectionUuid) throws ServiceException
      Throws:
      ServiceException
    • addSubcollections

      @PostMapping(value={"/v6/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/subcollections","/v5/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/subcollections","/v3/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/subcollections","/latest/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/subcollections"}, produces="application/json") public org.springframework.http.ResponseEntity addSubcollections(@PathVariable("uuid") UUID uuid, @RequestBody List<de.digitalcollections.model.identifiable.entity.Collection> subcollections) throws ServiceException
      Throws:
      ServiceException
    • count

      @GetMapping(value={"/v6/collections/count","/v5/collections/count","/v2/collections/count","/latest/collections/count"}, produces="application/json") public long count() throws ServiceException
      Overrides:
      count in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.Collection>
      Throws:
      ServiceException
    • delete

      @DeleteMapping(value="/v6/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}", produces="application/json") public org.springframework.http.ResponseEntity delete(@PathVariable("uuid") UUID uuid) throws ConflictException, ServiceException
      Overrides:
      delete in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.Collection>
      Throws:
      ConflictException
      ServiceException
    • find

      @GetMapping(value="/v6/collections", produces="application/json") public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Collection> find(@RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="25") int pageSize, @RequestParam(name="sortBy",required=false) List<de.digitalcollections.model.list.sorting.Order> sortBy, @RequestParam(name="filter",required=false) List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, @RequestParam(name="filtering",required=false) de.digitalcollections.model.list.filtering.Filtering filtering, @RequestParam(name="active",required=false) String active) throws ServiceException
      Throws:
      ServiceException
    • findDigitalObjects

      @GetMapping(value="/v6/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/digitalobjects", produces="application/json") public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.digitalobject.DigitalObject> findDigitalObjects(@PathVariable("uuid") UUID collectionUuid, @RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="25") int pageSize, @RequestParam(name="filter",required=false) List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, @RequestParam(name="filtering",required=false) de.digitalcollections.model.list.filtering.Filtering filtering) throws ServiceException
      Throws:
      ServiceException
    • findRelatedCorporateBodies

      @GetMapping(value={"/v6/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/related/corporatebodies","/v5/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/related/corporatebodies","/v3/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/related/corporatebodies","/latest/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/related/corporatebodies"}, produces="application/json") public List<de.digitalcollections.model.identifiable.entity.agent.CorporateBody> findRelatedCorporateBodies(@PathVariable("uuid") UUID uuid, @RequestParam(name="predicate",required=false) de.digitalcollections.model.list.filtering.FilterCriterion predicateFilter, @RequestParam(name="filter",required=false) List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, @RequestParam(name="filtering",required=false) de.digitalcollections.model.list.filtering.Filtering filtering) throws ServiceException
      Throws:
      ServiceException
    • findSubcollections

      @GetMapping(value="/v6/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/subcollections", produces="application/json") public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Collection> findSubcollections(@PathVariable("uuid") UUID collectionUuid, @RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="25") int pageSize, @RequestParam(name="sortBy",required=false) List<de.digitalcollections.model.list.sorting.Order> sortBy, @RequestParam(name="filter",required=false) List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, @RequestParam(name="filtering",required=false) de.digitalcollections.model.list.filtering.Filtering filtering, @RequestParam(name="active",required=false) String active) throws ServiceException
      Throws:
      ServiceException
    • findTopCollections

      @GetMapping(value="/v6/collections/top", produces="application/json") public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Collection> findTopCollections(@RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="25") int pageSize, @RequestParam(name="sortBy",required=false) List<de.digitalcollections.model.list.sorting.Order> sortBy, @RequestParam(name="filter",required=false) List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, @RequestParam(name="filtering",required=false) de.digitalcollections.model.list.filtering.Filtering filtering, @RequestParam(name="active",required=false) String active) throws ServiceException
      Throws:
      ServiceException
    • getBreadcrumbNavigation

      @GetMapping(value={"/v6/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/breadcrumb","/v5/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/breadcrumb","/v3/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/breadcrumb","/latest/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/breadcrumb"}, produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.view.BreadcrumbNavigation> getBreadcrumbNavigation(@PathVariable("uuid") UUID uuid, @RequestParam(name="pLocale",required=false) Locale pLocale) throws ServiceException
      Throws:
      ServiceException
    • getByIdentifier

      @GetMapping(value={"/v6/collections/identifier/**","/v5/collections/identifier/**","/v2/collections/identifier/**","/latest/collections/identifier/**"}, produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.Collection> getByIdentifier(javax.servlet.http.HttpServletRequest request) throws ServiceException, ValidationException
      Overrides:
      getByIdentifier in class AbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.Collection>
      Throws:
      ServiceException
      ValidationException
    • getByRefId

      @GetMapping(value={"/v6/collections/{refId:[0-9]+}","/v5/collections/{refId:[0-9]+}","/latest/collections/{refId:[0-9]+}"}, produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.Collection> getByRefId(@PathVariable long refId) throws ServiceException
      Overrides:
      getByRefId in class AbstractEntityController<de.digitalcollections.model.identifiable.entity.Collection>
      Throws:
      ServiceException
    • getByUuid

      @GetMapping(value={"/v6/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}","/v5/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}","/v2/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}","/latest/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}"}, produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.Collection> getByUuid(@PathVariable("uuid") UUID uuid, @RequestParam(name="pLocale",required=false) Locale pLocale, @RequestParam(name="active",required=false) String active) throws ServiceException
      Throws:
      ServiceException
    • getParent

      @GetMapping(value={"/v6/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/parent","/v5/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/parent","/v3/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/parent","/latest/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/parent"}, produces="application/json") public de.digitalcollections.model.identifiable.entity.Collection getParent(@PathVariable UUID uuid) throws ServiceException
      Throws:
      ServiceException
    • getParents

      @GetMapping(value={"/v6/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/parents","/v5/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/parents","/v3/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/parents","/latest/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/parents"}, produces="application/json") public List<de.digitalcollections.model.identifiable.entity.Collection> getParents(@PathVariable("uuid") UUID collectionUuid) throws ServiceException
      Throws:
      ServiceException
    • getService

      protected EntityService<de.digitalcollections.model.identifiable.entity.Collection> getService()
      Specified by:
      getService in class AbstractEntityController<de.digitalcollections.model.identifiable.entity.Collection>
    • getTopCollectionsLanguages

      @GetMapping(value={"/v6/collections/top/languages","/v5/collections/top/languages","/v2/collections/top/languages","/latest/collections/top/languages"}, produces="application/json") public List<Locale> getTopCollectionsLanguages() throws ServiceException
      Throws:
      ServiceException
    • removeDigitalObject

      @DeleteMapping(value={"/v6/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/digitalobjects/{digitalObjectUuid}","/v5/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/digitalobjects/{digitalObjectUuid}","/v3/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/digitalobjects/{digitalObjectUuid}","/latest/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/digitalobjects/{digitalObjectUuid}"}, produces="application/json") public org.springframework.http.ResponseEntity removeDigitalObject(@PathVariable("uuid") UUID collectionUuid, @PathVariable("digitalObjectUuid") UUID digitalObjectUuid) throws ServiceException
      Throws:
      ServiceException
    • removeSubcollection

      @DeleteMapping(value={"/v6/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/subcollections/{subcollectionUuid}","/v5/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/subcollections/{subcollectionUuid}","/v3/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/subcollections/{subcollectionUuid}","/latest/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/subcollections/{subcollectionUuid}"}, produces="application/json") public org.springframework.http.ResponseEntity removeSubcollection(@PathVariable("uuid") UUID uuid, @PathVariable("subcollectionUuid") UUID subcollectionUuid) throws ServiceException
      Throws:
      ServiceException
    • save

      @PostMapping(value={"/v6/collections","/v5/collections","/v2/collections","/latest/collections"}, produces="application/json") public de.digitalcollections.model.identifiable.entity.Collection save(@RequestBody de.digitalcollections.model.identifiable.entity.Collection collection, org.springframework.validation.BindingResult errors) throws ServiceException, ValidationException
      Overrides:
      save in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.Collection>
      Throws:
      ServiceException
      ValidationException
    • saveDigitalObjects

      @PutMapping(value={"/v6/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/digitalobjects","/v5/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/digitalobjects","/v3/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/digitalobjects","/latest/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/digitalobjects"}, produces="application/json") public org.springframework.http.ResponseEntity saveDigitalObjects(@PathVariable("uuid") UUID collectionUuid, @RequestBody List<de.digitalcollections.model.identifiable.entity.digitalobject.DigitalObject> digitalObjects) throws ServiceException
      Throws:
      ServiceException
    • saveWithParentCollection

      @PostMapping(value={"/v6/collections/{parentUuid}/collection","/v5/collections/{parentUuid}/collection","/v2/collections/{parentUuid}/collection","/latest/collections/{parentUuid}/collection"}, produces="application/json") public de.digitalcollections.model.identifiable.entity.Collection saveWithParentCollection(@PathVariable UUID parentUuid, @RequestBody de.digitalcollections.model.identifiable.entity.Collection collection) throws ServiceException, ValidationException
      Throws:
      ServiceException
      ValidationException
    • update

      @PutMapping(value={"/v6/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}","/v5/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}","/v2/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}","/latest/collections/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}"}, produces="application/json") public de.digitalcollections.model.identifiable.entity.Collection update(@PathVariable UUID uuid, @RequestBody de.digitalcollections.model.identifiable.entity.Collection collection, org.springframework.validation.BindingResult errors) throws ServiceException, ValidationException
      Overrides:
      update in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.Collection>
      Throws:
      ServiceException
      ValidationException