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.AbstractController
Controller for digital objects management pages.
-
Constructor Summary
Constructors Constructor Description DigitalObjectsController(LanguageSortingHelper languageSortingHelper, CudamiClient client) -
Method Summary
Modifier and Type Method Description de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.DigitalObject>findAll(int pageNumber, int pageSize, java.lang.String searchTerm)de.digitalcollections.model.identifiable.entity.DigitalObjectfindOneByIdentifier(java.lang.String namespace, java.lang.String id)de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Collection>getAssociatedCollections(java.util.UUID uuid, int pageNumber, int pageSize)de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Project>getAssociatedProjects(java.util.UUID uuid, int pageNumber, int pageSize)java.lang.Stringlist(org.springframework.ui.Model model)protected java.lang.Stringmodule()de.digitalcollections.model.paging.SearchPageResponse<de.digitalcollections.model.identifiable.entity.DigitalObject>search(int pageNumber, int pageSize, java.lang.String sortField, de.digitalcollections.model.paging.Direction sortDirection, java.lang.String searchTerm)java.lang.Stringview(java.util.UUID uuid, org.springframework.ui.Model model)
-
Constructor Details
-
Method Details
-
module
@ModelAttribute("menu") protected java.lang.String module() -
findOneByIdentifier
@GetMapping("/api/digitalobjects/identifier/{namespace}:{id}") @ResponseBody public de.digitalcollections.model.identifiable.entity.DigitalObject findOneByIdentifier(@PathVariable java.lang.String namespace, @PathVariable java.lang.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 java.util.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 java.util.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 java.lang.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) java.lang.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) java.lang.String sortField, @RequestParam(name="sortDirection",required=false) de.digitalcollections.model.paging.Direction sortDirection, @RequestParam(name="searchTerm",required=false) java.lang.String searchTerm) throws HttpException- Throws:
HttpException
-
view
@GetMapping("/digitalobjects/{uuid}") public java.lang.String view(@PathVariable java.util.UUID uuid, org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-