Class ProjectsController
- java.lang.Object
-
- de.digitalcollections.commons.springmvc.controller.AbstractController
-
- de.digitalcollections.cudami.admin.controller.identifiable.entity.ProjectsController
-
@Controller public class ProjectsController extends de.digitalcollections.commons.springmvc.controller.AbstractControllerController for project management pages.
-
-
Constructor Summary
Constructors Constructor Description ProjectsController(LanguageSortingHelper languageSortingHelper, LocaleRepository localeRepository, CudamiProjectsClient cudamiProjectsClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.digitalcollections.model.api.identifiable.entity.Projectcreate()Stringcreate(org.springframework.ui.Model model)Stringedit(UUID uuid, org.springframework.ui.Model model)de.digitalcollections.model.api.identifiable.entity.Projectget(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.Project project)org.springframework.http.ResponseEntityupdate(UUID uuid, de.digitalcollections.model.api.identifiable.entity.Project project)Stringview(UUID uuid, org.springframework.ui.Model model)
-
-
-
Constructor Detail
-
ProjectsController
@Autowired public ProjectsController(LanguageSortingHelper languageSortingHelper, LocaleRepository localeRepository, CudamiProjectsClient cudamiProjectsClient)
-
-
Method Detail
-
module
@ModelAttribute("menu") protected String module()
-
create
@GetMapping("/projects/new") public String create(org.springframework.ui.Model model)
-
create
@GetMapping("/api/projects/new") @ResponseBody public de.digitalcollections.model.api.identifiable.entity.Project create()
-
edit
@GetMapping("/projects/{uuid}/edit") public String edit(@PathVariable UUID uuid, org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-
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="label",size=25) org.springframework.data.domain.Pageable pageable)
-
save
@PostMapping("/api/projects/new") public org.springframework.http.ResponseEntity save(@RequestBody de.digitalcollections.model.api.identifiable.entity.Project project) throws IdentifiableServiceException- Throws:
IdentifiableServiceException
-
update
@PutMapping("/api/projects/{uuid}") public org.springframework.http.ResponseEntity update(@PathVariable UUID uuid, @RequestBody de.digitalcollections.model.api.identifiable.entity.Project project) throws IdentifiableServiceException- Throws:
IdentifiableServiceException
-
view
@GetMapping("/projects/{uuid}") public String view(@PathVariable UUID uuid, org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-
-