Class CollectionsController
- java.lang.Object
-
- de.digitalcollections.commons.springmvc.controller.AbstractController
-
- de.digitalcollections.cudami.admin.controller.identifiable.entity.CollectionsController
-
@Controller public class CollectionsController extends de.digitalcollections.commons.springmvc.controller.AbstractControllerController for collection management pages.
-
-
Constructor Summary
Constructors Constructor Description CollectionsController(LanguageSortingHelper languageSortingHelper, LocaleRepository localeRepository, CudamiCollectionsClient cudamiCollectionsClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.digitalcollections.model.api.identifiable.entity.Collectioncreate()Stringcreate(org.springframework.ui.Model model, String parentType, String parentUuid)Stringedit(UUID uuid, org.springframework.ui.Model model)de.digitalcollections.model.api.identifiable.entity.Collectionget(UUID uuid)Stringlist(org.springframework.ui.Model model, org.springframework.data.domain.Pageable pageable)protected Stringmodule()org.springframework.http.ResponseEntitysave(de.digitalcollections.model.api.identifiable.entity.Collection collection, String parentType, UUID parentUuid)org.springframework.http.ResponseEntityupdate(UUID uuid, de.digitalcollections.model.api.identifiable.entity.Collection collection)Stringview(UUID uuid, org.springframework.ui.Model model)
-
-
-
Constructor Detail
-
CollectionsController
@Autowired public CollectionsController(LanguageSortingHelper languageSortingHelper, LocaleRepository localeRepository, CudamiCollectionsClient cudamiCollectionsClient)
-
-
Method Detail
-
module
@ModelAttribute("menu") protected String module()
-
create
@GetMapping("/collections/new") public String create(org.springframework.ui.Model model, @RequestParam(name="parentType",required=false) String parentType, @RequestParam(name="parentUuid",required=false) String parentUuid)
-
create
@GetMapping("/api/collections/new") @ResponseBody public de.digitalcollections.model.api.identifiable.entity.Collection create()
-
edit
@GetMapping("/collections/{uuid}/edit") public String edit(@PathVariable UUID uuid, org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-
get
@GetMapping("/api/collections/{uuid}") @ResponseBody public de.digitalcollections.model.api.identifiable.entity.Collection get(@PathVariable UUID uuid) throws HttpException- Throws:
HttpException
-
list
@GetMapping("/collections") public String list(org.springframework.ui.Model model, @PageableDefault(sort="label",size=25) org.springframework.data.domain.Pageable pageable)
-
save
@PostMapping("/api/collections/new") public org.springframework.http.ResponseEntity save(@RequestBody de.digitalcollections.model.api.identifiable.entity.Collection collection, @RequestParam(name="parentType",required=false) String parentType, @RequestParam(name="parentUuid",required=false) UUID parentUuid) throws IdentifiableServiceException- Throws:
IdentifiableServiceException
-
update
@PutMapping("/api/collections/{uuid}") public org.springframework.http.ResponseEntity update(@PathVariable UUID uuid, @RequestBody de.digitalcollections.model.api.identifiable.entity.Collection collection) throws IdentifiableServiceException- Throws:
IdentifiableServiceException
-
view
@GetMapping("/collections/{uuid}") public String view(@PathVariable UUID uuid, org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-
-