@RestController public class ItemController extends AbstractEntityController<de.digitalcollections.model.identifiable.entity.item.Item>
  • Constructor Details

  • Method Details

    • addDigitalObject

      @PostMapping(value={"/v6/items/{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}","/v2/items/{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/items/{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, @PathVariable UUID digitalObjectUuid) throws ValidationException, ConflictException, ServiceException
      Throws:
      ValidationException
      ConflictException
      ServiceException
    • count

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

      @DeleteMapping(value="/v6/items/{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.item.Item>
      Throws:
      ConflictException
      ServiceException
    • find

      @GetMapping(value="/v6/items", produces="application/json") public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.item.Item> find(@RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="5") 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) throws ServiceException
      Overrides:
      find in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.item.Item>
      Throws:
      ServiceException
    • findDigitalObjects

      @GetMapping(value="/v6/items/{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, @RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="5") int pageSize, @RequestParam(name="sortBy",required=false) List<de.digitalcollections.model.list.sorting.Order> sortBy) throws ServiceException
      Throws:
      ServiceException
    • getByIdentifier

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

      @GetMapping(value={"/v6/items/identifier","/v5/items/identifier","/v2/items/identifier","/latest/items/identifier"}, produces="application/json") public org.springframework.http.ResponseEntity<Void> getByIdentifier(@RequestParam(name="namespace",required=true) String namespace, @RequestParam(name="id",required=true) String id, javax.servlet.http.HttpServletRequest request) throws ServiceException
      Throws:
      ServiceException
    • getByUuid

      @GetMapping(value="/v6/items/{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.item.Item> getByUuid(@PathVariable("uuid") UUID uuid, @RequestParam(name="pLocale",required=false) Locale pLocale) throws ServiceException
      Throws:
      ServiceException
    • getLanguages

      @GetMapping(value="/v6/items/languages", produces="application/json") public List<Locale> getLanguages() throws ServiceException
      Overrides:
      getLanguages in class AbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.item.Item>
      Throws:
      ServiceException
    • getLanguagesOfDigitalObjects

      @GetMapping(value="/v6/items/{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/languages", produces="application/json") public List<Locale> getLanguagesOfDigitalObjects(@PathVariable UUID uuid) throws ServiceException
      Throws:
      ServiceException
    • getService

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

      @GetMapping(value={"/v6/items/{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}$}/works","/v2/items/{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}$}/works","/latest/items/{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}$}/works"}, produces="application/json") public Set<de.digitalcollections.model.identifiable.entity.work.Work> getWorks(@PathVariable UUID uuid) throws ServiceException
      Throws:
      ServiceException
    • removeParentItem

      @DeleteMapping(value="/v6/items/{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/{parentItemUuid:^[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 removeParentItem(@PathVariable("uuid") UUID uuid, @PathVariable("parentItemUuid") UUID parentItemUuid) throws ServiceException
      Throws:
      ServiceException
    • removeAllChildrenOfParentItem

      @DeleteMapping(value="/v6/items/{parentItemUuid:^[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}$}/children/all", produces="application/json") public org.springframework.http.ResponseEntity removeAllChildrenOfParentItem(@PathVariable("parentItemUuid") UUID parentItemUuid) throws ServiceException
      Throws:
      ServiceException
    • save

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

      @PutMapping(value={"/v6/items/{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/items/{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/items/{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/items/{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.item.Item update(@PathVariable("uuid") UUID uuid, @RequestBody de.digitalcollections.model.identifiable.entity.item.Item item, org.springframework.validation.BindingResult errors) throws ServiceException, ValidationException
      Overrides:
      update in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.item.Item>
      Throws:
      ServiceException
      ValidationException