Class DigitalObjectsController


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

      • DigitalObjectsController

        @Autowired
        public DigitalObjectsController​(CudamiClient client)
    • Method Detail

      • module

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

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

        @GetMapping("/digitalobjects")
        public String list​(org.springframework.ui.Model model,
                           @PageableDefault(sort="lastModified",direction=DESC,size=25)
                           org.springframework.data.domain.Pageable pageable)
                    throws HttpException
        Throws:
        HttpException
      • search

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