Class CollectionController
java.lang.Object
de.digitalcollections.cudami.server.controller.AbstractPagingAndSortingController
de.digitalcollections.cudami.server.controller.AbstractUniqueObjectController<T>
de.digitalcollections.cudami.server.controller.identifiable.AbstractIdentifiableController<E>
de.digitalcollections.cudami.server.controller.AbstractEntityController<de.digitalcollections.model.identifiable.entity.Collection>
de.digitalcollections.cudami.server.controller.identifiable.entity.CollectionController
@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
ConstructorsConstructorDescriptionCollectionController(CollectionService collectionService, LocaleService localeService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntityaddDigitalObject(UUID collectionUuid, UUID digitalObjectUuid) org.springframework.http.ResponseEntityaddDigitalObjects(UUID collectionUuid, List<de.digitalcollections.model.identifiable.entity.digitalobject.DigitalObject> digitalObjects) org.springframework.http.ResponseEntityaddSubcollection(UUID uuid, UUID subcollectionUuid) org.springframework.http.ResponseEntityaddSubcollections(UUID uuid, List<de.digitalcollections.model.identifiable.entity.Collection> subcollections) longcount()org.springframework.http.ResponseEntityde.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>getBreadcrumbNavigation(UUID uuid, Locale pLocale) 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>de.digitalcollections.model.identifiable.entity.CollectionList<de.digitalcollections.model.identifiable.entity.Collection>getParents(UUID collectionUuid) protected EntityService<de.digitalcollections.model.identifiable.entity.Collection>org.springframework.http.ResponseEntityremoveDigitalObject(UUID collectionUuid, UUID digitalObjectUuid) org.springframework.http.ResponseEntityremoveSubcollection(UUID uuid, UUID subcollectionUuid) de.digitalcollections.model.identifiable.entity.Collectionsave(de.digitalcollections.model.identifiable.entity.Collection collection, org.springframework.validation.BindingResult errors) org.springframework.http.ResponseEntitysaveDigitalObjects(UUID collectionUuid, List<de.digitalcollections.model.identifiable.entity.digitalobject.DigitalObject> digitalObjects) de.digitalcollections.model.identifiable.entity.CollectionsaveWithParentCollection(UUID parentUuid, de.digitalcollections.model.identifiable.entity.Collection collection) de.digitalcollections.model.identifiable.entity.Collectionupdate(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, getLanguagesMethods inherited from class de.digitalcollections.cudami.server.controller.AbstractUniqueObjectController
buildExampleWithUuid, delete, find, getByUuid, getByUuidAndLocaleMethods inherited from class de.digitalcollections.cudami.server.controller.AbstractPagingAndSortingController
createPageRequest, getFieldType, mergeFilters
-
Constructor Details
-
CollectionController
-
-
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:
countin classAbstractUniqueObjectController<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:
deletein classAbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.Collection>- Throws:
ConflictExceptionServiceException
-
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
-
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:
getByIdentifierin classAbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.Collection>- Throws:
ServiceExceptionValidationException
-
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:
getByRefIdin classAbstractEntityController<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
- Specified by:
getServicein classAbstractEntityController<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:
savein classAbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.Collection>- Throws:
ServiceExceptionValidationException
-
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:
ServiceExceptionValidationException
-
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:
updatein classAbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.Collection>- Throws:
ServiceExceptionValidationException
-