Class DigitalObjectsController


  • @Controller
    public class DigitalObjectsController
    extends de.digitalcollections.commons.springmvc.controller.AbstractController
    Controller for digital objects management pages.
    • Method Detail

      • find

        @GetMapping({"/api/digitalobjects","/api/digitalobjects/search"})
        @ResponseBody
        public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.DigitalObject> find​(@RequestParam(name="pageNumber",required=false,defaultValue="0")
                                                                                                                                        int pageNumber,
                                                                                                                                        @RequestParam(name="pageSize",required=false,defaultValue="25")
                                                                                                                                        int pageSize,
                                                                                                                                        @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
      • getAssociatedCollections

        @GetMapping(value="/api/digitalobjects/{uuid}/collections",
                    produces="application/json")
        @ResponseBody
        public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Collection> getAssociatedCollections​(@PathVariable
                                                                                                                                                         UUID uuid,
                                                                                                                                                         @RequestParam(name="pageNumber",required=false,defaultValue="0")
                                                                                                                                                         int pageNumber,
                                                                                                                                                         @RequestParam(name="pageSize",required=false,defaultValue="25")
                                                                                                                                                         int pageSize,
                                                                                                                                                         @RequestParam(name="searchTerm",required=false)
                                                                                                                                                         String searchTerm)
                                                                                                                                                  throws de.digitalcollections.model.exception.TechnicalException
        Throws:
        de.digitalcollections.model.exception.TechnicalException
      • getAssociatedProjects

        @GetMapping(value="/api/digitalobjects/{uuid}/projects",
                    produces="application/json")
        @ResponseBody
        public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Project> getAssociatedProjects​(@PathVariable
                                                                                                                                                   UUID uuid,
                                                                                                                                                   @RequestParam(name="pageNumber",required=false,defaultValue="0")
                                                                                                                                                   int pageNumber,
                                                                                                                                                   @RequestParam(name="pageSize",required=false,defaultValue="25")
                                                                                                                                                   int pageSize,
                                                                                                                                                   @RequestParam(name="searchTerm",required=false)
                                                                                                                                                   String searchTerm)
                                                                                                                                            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 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 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 getByUuid​(@PathVariable
                                                                                       UUID uuid)
                                                                                throws de.digitalcollections.model.exception.TechnicalException
        Throws:
        de.digitalcollections.model.exception.TechnicalException
      • getContainedDigitalObjects

        @GetMapping("/api/digitalobjects/{uuid}/digitalobjects")
        @ResponseBody
        public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.DigitalObject> getContainedDigitalObjects​(@PathVariable
                                                                                                                                                              UUID uuid,
                                                                                                                                                              @RequestParam(name="pageNumber",required=false,defaultValue="0")
                                                                                                                                                              int pageNumber,
                                                                                                                                                              @RequestParam(name="pageSize",required=false,defaultValue="25")
                                                                                                                                                              int pageSize,
                                                                                                                                                              @RequestParam(name="searchTerm",required=false)
                                                                                                                                                              String searchTerm)
                                                                                                                                                       throws de.digitalcollections.model.exception.TechnicalException
        Throws:
        de.digitalcollections.model.exception.TechnicalException
      • list

        @GetMapping("/digitalobjects")
        public String list​(org.springframework.ui.Model model)
                    throws de.digitalcollections.model.exception.TechnicalException
        Throws:
        de.digitalcollections.model.exception.TechnicalException
      • module

        @ModelAttribute("menu")
        protected String module()
      • view

        @GetMapping("/digitalobjects/{uuid}")
        public String view​(@PathVariable
                           UUID uuid,
                           org.springframework.ui.Model model)
                    throws de.digitalcollections.model.exception.TechnicalException,
                           de.digitalcollections.model.exception.ResourceNotFoundException
        Throws:
        de.digitalcollections.model.exception.TechnicalException
        de.digitalcollections.model.exception.ResourceNotFoundException