Class FileResourcesMetadataController


  • @Controller
    public class FileResourcesMetadataController
    extends de.digitalcollections.commons.springmvc.controller.AbstractController
    Controller for resource management pages.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      de.digitalcollections.model.api.identifiable.resource.FileResource create()  
      String create​(org.springframework.ui.Model model)  
      String edit​(UUID uuid, org.springframework.ui.Model model)  
      de.digitalcollections.model.api.identifiable.resource.FileResource get​(UUID uuid)  
      String list​(org.springframework.ui.Model model, org.springframework.data.domain.Pageable pageable)  
      protected String module()  
      org.springframework.http.ResponseEntity save​(de.digitalcollections.model.api.identifiable.resource.FileResource fileResource)  
      de.digitalcollections.model.api.paging.SearchPageResponse<de.digitalcollections.model.api.identifiable.resource.FileResource> searchImages​(int pageNumber, int pageSize, String sortField, de.digitalcollections.model.api.paging.enums.Direction sortDirection, String searchTerm)  
      org.springframework.http.ResponseEntity update​(UUID uuid, de.digitalcollections.model.api.identifiable.resource.FileResource fileResource)  
      String view​(UUID uuid, org.springframework.ui.Model model)  
      • Methods inherited from class de.digitalcollections.commons.springmvc.controller.AbstractController

        verifyBinding
    • Method Detail

      • module

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

        @GetMapping("/fileresources/new")
        public String create​(org.springframework.ui.Model model)
      • create

        @GetMapping("/api/fileresources/new")
        @ResponseBody
        public de.digitalcollections.model.api.identifiable.resource.FileResource create()
      • edit

        @GetMapping("/fileresources/{uuid}/edit")
        public String edit​(@PathVariable
                           UUID uuid,
                           org.springframework.ui.Model model)
      • get

        @GetMapping("/api/fileresources/{uuid}")
        @ResponseBody
        public de.digitalcollections.model.api.identifiable.resource.FileResource get​(@PathVariable
                                                                                      UUID uuid)
      • list

        @GetMapping("/fileresources")
        public String list​(org.springframework.ui.Model model,
                           @PageableDefault(sort="label",size=25)
                           org.springframework.data.domain.Pageable pageable)
      • searchImages

        @GetMapping("/api/fileresources/images")
        @ResponseBody
        public de.digitalcollections.model.api.paging.SearchPageResponse<de.digitalcollections.model.api.identifiable.resource.FileResource> searchImages​(@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)
      • update

        @PutMapping("/api/fileresources/{uuid}")
        public org.springframework.http.ResponseEntity update​(@PathVariable
                                                              UUID uuid,
                                                              @RequestBody
                                                              de.digitalcollections.model.api.identifiable.resource.FileResource fileResource)
                                                       throws IdentifiableServiceException
        Throws:
        IdentifiableServiceException
      • view

        @GetMapping("/fileresources/{uuid}")
        public String view​(@PathVariable
                           UUID uuid,
                           org.springframework.ui.Model model)