Class DigitalObjectsAPIController

java.lang.Object
de.digitalcollections.commons.springmvc.controller.AbstractController

@RestController public class DigitalObjectsAPIController extends AbstractEntitiesController<de.digitalcollections.model.identifiable.entity.digitalobject.DigitalObject,CudamiDigitalObjectsClient>
Controller for all public "DigitalObjects" endpoints (API).
  • Constructor Details

  • Method Details

    • find

      @GetMapping("/api/digitalobjects/search") @ResponseBody public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.digitalobject.DigitalObject> find(@RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="5") int pageSize, @RequestParam(name="searchField",required=false) String searchField, @RequestParam(name="searchTerm",required=false) String searchTerm, @RequestParam(name="sortBy",required=false) List<de.digitalcollections.model.list.sorting.Order> sortBy) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • find

      @GetMapping("/api/digitalobjects") @ResponseBody public BTResponse<de.digitalcollections.model.identifiable.entity.digitalobject.DigitalObject> find(@RequestParam(name="offset",required=false,defaultValue="0") int offset, @RequestParam(name="limit",required=false,defaultValue="10") int limit, @RequestParam(name="search",required=false) String searchTerm, @RequestParam(name="sort",required=false,defaultValue="label") String sortProperty, @RequestParam(name="order",required=false,defaultValue="asc") String sortOrder, @RequestParam(name="dataLanguage",required=false) String dataLanguage) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • findAssociatedCollections

      @GetMapping(value="/api/digitalobjects/{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}$}/collections", produces="application/json") @ResponseBody public BTResponse<de.digitalcollections.model.identifiable.entity.Collection> findAssociatedCollections(@PathVariable UUID uuid, @RequestParam(name="offset",required=false,defaultValue="0") int offset, @RequestParam(name="limit",required=false,defaultValue="10") int limit, @RequestParam(name="search",required=false) String searchTerm, @RequestParam(name="sort",required=false,defaultValue="label") String sortProperty, @RequestParam(name="order",required=false,defaultValue="asc") String sortOrder, @RequestParam(name="dataLanguage",required=false) String dataLanguage) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • findAssociatedProjects

      @GetMapping(value="/api/digitalobjects/{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}$}/projects", produces="application/json") @ResponseBody public BTResponse<de.digitalcollections.model.identifiable.entity.Project> findAssociatedProjects(@PathVariable UUID uuid, @RequestParam(name="offset",required=false,defaultValue="0") int offset, @RequestParam(name="limit",required=false,defaultValue="10") int limit, @RequestParam(name="search",required=false) String searchTerm, @RequestParam(name="sort",required=false,defaultValue="label") String sortProperty, @RequestParam(name="order",required=false,defaultValue="asc") String sortOrder, @RequestParam(name="dataLanguage",required=false) String dataLanguage) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • findContainedDigitalObjects

      @GetMapping("/api/digitalobjects/{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") @ResponseBody public BTResponse<de.digitalcollections.model.identifiable.entity.digitalobject.DigitalObject> findContainedDigitalObjects(@PathVariable UUID uuid, @RequestParam(name="offset",required=false,defaultValue="0") int offset, @RequestParam(name="limit",required=false,defaultValue="10") int limit, @RequestParam(name="search",required=false) String searchTerm, @RequestParam(name="sort",required=false,defaultValue="label") String sortProperty, @RequestParam(name="order",required=false,defaultValue="asc") String sortOrder, @RequestParam(name="dataLanguage",required=false) String dataLanguage) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • getByIdentifier

      @GetMapping("/api/digitalobjects/identifier/{namespace}:{id}") @ResponseBody public de.digitalcollections.model.identifiable.entity.digitalobject.DigitalObject getByIdentifier(@PathVariable String namespace, @PathVariable String id) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • getByRefId

      @GetMapping("/api/digitalobjects/{refId:[0-9]+}") @ResponseBody public de.digitalcollections.model.identifiable.entity.digitalobject.DigitalObject getByRefId(@PathVariable long refId) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • getByUuid

      @GetMapping("/api/digitalobjects/{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}$}") @ResponseBody public de.digitalcollections.model.identifiable.entity.digitalobject.DigitalObject getByUuid(@PathVariable UUID uuid) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException