Class FileResourcesMetadataController
- java.lang.Object
-
- de.digitalcollections.commons.springmvc.controller.AbstractController
-
- de.digitalcollections.cudami.admin.controller.identifiable.resource.FileResourcesMetadataController
-
@Controller public class FileResourcesMetadataController extends de.digitalcollections.commons.springmvc.controller.AbstractControllerController for resource management pages.
-
-
Constructor Summary
Constructors Constructor Description FileResourcesMetadataController(LanguageSortingHelper languageSortingHelper, CudamiClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.digitalcollections.model.identifiable.resource.FileResourcecreate()Stringcreate(org.springframework.ui.Model model)Stringedit(UUID uuid, Locale activeLanguage, org.springframework.ui.Model model)de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.resource.FileResource>findAll(int pageNumber, int pageSize, String searchTerm)de.digitalcollections.model.identifiable.resource.FileResourceget(UUID uuid)Stringlist(org.springframework.ui.Model model)protected Stringmodule()org.springframework.http.ResponseEntitysave(de.digitalcollections.model.identifiable.resource.FileResource fileResource)de.digitalcollections.model.paging.SearchPageResponse<de.digitalcollections.model.identifiable.resource.FileResource>searchFileResourcesByType(String type, int pageNumber, int pageSize, String sortField, de.digitalcollections.model.paging.Direction sortDirection, String searchTerm)org.springframework.http.ResponseEntityupdate(UUID uuid, de.digitalcollections.model.identifiable.resource.FileResource fileResource)Stringview(UUID uuid, org.springframework.ui.Model model)
-
-
-
Constructor Detail
-
FileResourcesMetadataController
public FileResourcesMetadataController(LanguageSortingHelper languageSortingHelper, CudamiClient client)
-
-
Method Detail
-
module
@ModelAttribute("menu") protected String module()
-
create
@GetMapping("/fileresources/new") public String create(org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-
create
@GetMapping("/api/fileresources/new") @ResponseBody public de.digitalcollections.model.identifiable.resource.FileResource create()
-
edit
@GetMapping("/fileresources/{uuid}/edit") public String edit(@PathVariable UUID uuid, @RequestParam(name="activeLanguage",required=false) Locale activeLanguage, org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-
findAll
@GetMapping("/api/fileresources") @ResponseBody public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.resource.FileResource> 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
-
get
@GetMapping("/api/fileresources/{uuid}") @ResponseBody public de.digitalcollections.model.identifiable.resource.FileResource get(@PathVariable UUID uuid) throws HttpException- Throws:
HttpException
-
list
@GetMapping("/fileresources") public String list(org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-
save
@PostMapping("/api/fileresources") public org.springframework.http.ResponseEntity save(@RequestBody de.digitalcollections.model.identifiable.resource.FileResource fileResource)
-
searchFileResourcesByType
@GetMapping("/api/fileresources/type/{type}") @ResponseBody public de.digitalcollections.model.paging.SearchPageResponse<de.digitalcollections.model.identifiable.resource.FileResource> searchFileResourcesByType(@PathVariable String type, @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
-
update
@PutMapping("/api/fileresources/{uuid}") public org.springframework.http.ResponseEntity update(@PathVariable UUID uuid, @RequestBody de.digitalcollections.model.identifiable.resource.FileResource fileResource)
-
view
@GetMapping("/fileresources/{uuid}") public String view(@PathVariable UUID uuid, org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-
-