Class DigitalObjectsController
- java.lang.Object
-
- de.digitalcollections.commons.springmvc.controller.AbstractController
-
- de.digitalcollections.cudami.admin.controller.identifiable.entity.DigitalObjectsController
-
@Controller public class DigitalObjectsController extends de.digitalcollections.commons.springmvc.controller.AbstractControllerController for digital objects management pages.
-
-
Constructor Summary
Constructors Constructor Description DigitalObjectsController(LanguageSortingHelper languageSortingHelper, CudamiClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.DigitalObject>findAll(int pageNumber, int pageSize, String searchTerm)de.digitalcollections.model.identifiable.entity.DigitalObjectfindOneByIdentifier(String namespace, String id)de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Collection>getAssociatedCollections(UUID uuid, int pageNumber, int pageSize)de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Project>getAssociatedProjects(UUID uuid, int pageNumber, int pageSize)Stringlist(org.springframework.ui.Model model)protected Stringmodule()de.digitalcollections.model.paging.SearchPageResponse<de.digitalcollections.model.identifiable.entity.DigitalObject>search(int pageNumber, int pageSize, String sortField, de.digitalcollections.model.paging.Direction sortDirection, String searchTerm)Stringview(UUID uuid, org.springframework.ui.Model model)
-
-
-
Constructor Detail
-
DigitalObjectsController
public DigitalObjectsController(LanguageSortingHelper languageSortingHelper, CudamiClient client)
-
-
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
-
list
@GetMapping("/digitalobjects") public String list(org.springframework.ui.Model model) 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
-
view
@GetMapping("/digitalobjects/{uuid}") public String view(@PathVariable UUID uuid, org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-
-