Class ProjectsController


  • @Controller
    public class ProjectsController
    extends de.digitalcollections.commons.springmvc.controller.AbstractController
    Controller for project management pages.
    • Method Detail

      • module

        @ModelAttribute("menu")
        protected String module()
      • create

        @GetMapping("/api/projects/new")
        @ResponseBody
        public de.digitalcollections.model.api.identifiable.entity.Project create()
      • get

        @GetMapping("/api/projects/{uuid}")
        @ResponseBody
        public de.digitalcollections.model.api.identifiable.entity.Project get​(@PathVariable
                                                                               UUID uuid)
                                                                        throws HttpException
        Throws:
        HttpException
      • list

        @GetMapping("/projects")
        public String list​(org.springframework.ui.Model model,
                           @PageableDefault(sort="lastModified",direction=DESC,size=25)
                           org.springframework.data.domain.Pageable pageable)
                    throws HttpException
        Throws:
        HttpException
      • removeDigitalObjectFromProject

        @GetMapping("/projects/{projectUuid}/digitalobjects/{digitalobjectUuid}/remove")
        public String removeDigitalObjectFromProject​(@PathVariable
                                                     UUID projectUuid,
                                                     @PathVariable
                                                     UUID digitalobjectUuid)
                                              throws HttpException
        Throws:
        HttpException
      • save

        @PostMapping("/api/projects/new")
        public org.springframework.http.ResponseEntity save​(@RequestBody
                                                            de.digitalcollections.model.api.identifiable.entity.Project project)
      • update

        @PutMapping("/api/projects/{uuid}")
        public org.springframework.http.ResponseEntity update​(@PathVariable
                                                              UUID uuid,
                                                              @RequestBody
                                                              de.digitalcollections.model.api.identifiable.entity.Project project)
      • view

        @GetMapping("/projects/{uuid}")
        public String view​(@PathVariable
                           UUID uuid,
                           @PageableDefault(size=25)
                           org.springframework.data.domain.Pageable pageable,
                           org.springframework.ui.Model model)
                    throws HttpException
        Throws:
        HttpException