Class CollectionsController


  • @Controller
    public class CollectionsController
    extends de.digitalcollections.commons.springmvc.controller.AbstractController
    Controller for collection management pages.
    • 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()
      • 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