Class CollectionsController


  • @Controller
    public class CollectionsController
    extends de.digitalcollections.commons.springmvc.controller.AbstractController
    Controller for collection management pages.
    • Constructor Summary

      Constructors 
      Constructor Description
      CollectionsController​(LanguageSortingHelper languageSortingHelper, de.digitalcollections.cudami.admin.backend.api.repository.LocaleRepository localeRepository, de.digitalcollections.cudami.client.CudamiCollectionsClient cudamiCollectionsClient)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      de.digitalcollections.model.api.identifiable.entity.Collection create()  
      java.lang.String create​(org.springframework.ui.Model model)  
      java.lang.String edit​(java.util.UUID uuid, org.springframework.ui.Model model)  
      de.digitalcollections.model.api.identifiable.entity.Collection get​(java.util.UUID uuid)  
      java.lang.String list​(org.springframework.ui.Model model, org.springframework.data.domain.Pageable pageable)  
      protected java.lang.String module()  
      org.springframework.http.ResponseEntity save​(de.digitalcollections.model.api.identifiable.entity.Collection collection)  
      org.springframework.http.ResponseEntity update​(java.util.UUID uuid, de.digitalcollections.model.api.identifiable.entity.Collection collection)  
      java.lang.String view​(java.util.UUID uuid, org.springframework.ui.Model model)  
      • Methods inherited from class de.digitalcollections.commons.springmvc.controller.AbstractController

        verifyBinding
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CollectionsController

        @Autowired
        public CollectionsController​(LanguageSortingHelper languageSortingHelper,
                                     de.digitalcollections.cudami.admin.backend.api.repository.LocaleRepository localeRepository,
                                     de.digitalcollections.cudami.client.CudamiCollectionsClient cudamiCollectionsClient)
    • Method Detail

      • module

        @ModelAttribute("menu")
        protected java.lang.String module()
      • create

        @GetMapping("/collections/new")
        public java.lang.String create​(org.springframework.ui.Model model)
      • create

        @GetMapping("/api/collections/new")
        @ResponseBody
        public de.digitalcollections.model.api.identifiable.entity.Collection create()
      • edit

        @GetMapping("/collections/{uuid}/edit")
        public java.lang.String edit​(@PathVariable
                                     java.util.UUID uuid,
                                     org.springframework.ui.Model model)
                              throws de.digitalcollections.cudami.client.exceptions.HttpException
        Throws:
        de.digitalcollections.cudami.client.exceptions.HttpException
      • get

        @GetMapping("/api/collections/{uuid}")
        @ResponseBody
        public de.digitalcollections.model.api.identifiable.entity.Collection get​(@PathVariable
                                                                                  java.util.UUID uuid)
                                                                           throws de.digitalcollections.cudami.client.exceptions.HttpException
        Throws:
        de.digitalcollections.cudami.client.exceptions.HttpException
      • list

        @GetMapping("/collections")
        public java.lang.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)
                                                     throws de.digitalcollections.cudami.admin.business.api.service.exceptions.IdentifiableServiceException
        Throws:
        de.digitalcollections.cudami.admin.business.api.service.exceptions.IdentifiableServiceException
      • update

        @PutMapping("/api/collections/{uuid}")
        public org.springframework.http.ResponseEntity update​(@PathVariable
                                                              java.util.UUID uuid,
                                                              @RequestBody
                                                              de.digitalcollections.model.api.identifiable.entity.Collection collection)
                                                       throws de.digitalcollections.cudami.admin.business.api.service.exceptions.IdentifiableServiceException
        Throws:
        de.digitalcollections.cudami.admin.business.api.service.exceptions.IdentifiableServiceException
      • view

        @GetMapping("/collections/{uuid}")
        public java.lang.String view​(@PathVariable
                                     java.util.UUID uuid,
                                     org.springframework.ui.Model model)
                              throws de.digitalcollections.cudami.client.exceptions.HttpException
        Throws:
        de.digitalcollections.cudami.client.exceptions.HttpException