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(CudamiClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.digitalcollections.model.api.identifiable.entity.DigitalObjectfindOneByIdentifier(String namespace, String id)Stringlist(org.springframework.ui.Model model, org.springframework.data.domain.Pageable pageable)protected Stringmodule()de.digitalcollections.model.api.paging.SearchPageResponse<de.digitalcollections.model.impl.identifiable.entity.DigitalObjectImpl>search(int pageNumber, int pageSize, String sortField, de.digitalcollections.model.api.paging.enums.Direction sortDirection, String searchTerm)Stringview(UUID uuid, org.springframework.ui.Model model)
-
-
-
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(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) String sortField, @RequestParam(name="sortDirection",required=false) de.digitalcollections.model.api.paging.enums.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
-
-