Class DigitalObjectsController


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

      • module

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

        @GetMapping("/api/digitalobjects/identifier/{namespace}:{id}")
        @ResponseBody
        public de.digitalcollections.model.identifiable.entity.DigitalObject findOneByIdentifier​(@PathVariable
                                                                                                 String namespace,
                                                                                                 @PathVariable
                                                                                                 String id)
                                                                                          throws HttpException
        Throws:
        HttpException
      • getAssociatedCollections

        @GetMapping(value="/api/digitalobjects/{uuid}/collections",
                    produces="application/json")
        @ResponseBody
        public de.digitalcollections.model.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)
                                                                                                                                             throws HttpException
        Throws:
        HttpException
      • getAssociatedProjects

        @GetMapping(value="/api/digitalobjects/{uuid}/projects",
                    produces="application/json")
        @ResponseBody
        public de.digitalcollections.model.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)
                                                                                                                                       throws HttpException
        Throws:
        HttpException
      • findAll

        @GetMapping("/api/digitalobjects")
        @ResponseBody
        public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.DigitalObject> findAll​(@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 HttpException
        Throws:
        HttpException
      • search

        @GetMapping("/api/digitalobjects/search")
        @ResponseBody
        public de.digitalcollections.model.paging.SearchPageResponse<de.digitalcollections.model.identifiable.entity.DigitalObject> search​(@RequestParam(name="pageNumber",required=false,defaultValue="0")
                                                                                                                                           int pageNumber,
                                                                                                                                           @RequestParam(name="pageSize",required=false,defaultValue="5")
                                                                                                                                           int pageSize,
                                                                                                                                           @RequestParam(name="sortField",required=false)
                                                                                                                                           String sortField,
                                                                                                                                           @RequestParam(name="sortDirection",required=false)
                                                                                                                                           de.digitalcollections.model.paging.Direction sortDirection,
                                                                                                                                           @RequestParam(name="searchTerm",required=false)
                                                                                                                                           String searchTerm)
                                                                                                                                    throws HttpException
        Throws:
        HttpException