Class IdentifierTypeController


  • @Controller
    public class IdentifierTypeController
    extends de.digitalcollections.commons.springmvc.controller.AbstractController
    Controller for identifier type management pages.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String create()  
      de.digitalcollections.model.identifiable.IdentifierType createModel()  
      String edit​(UUID uuid, org.springframework.ui.Model model)  
      de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.IdentifierType> find​(int pageNumber, int pageSize, String searchTerm, List<de.digitalcollections.model.list.sorting.Order> sortBy)  
      de.digitalcollections.model.identifiable.IdentifierType getByUuid​(UUID uuid)  
      String list()  
      protected String module()  
      org.springframework.http.ResponseEntity save​(de.digitalcollections.model.identifiable.IdentifierType identifierType)  
      org.springframework.http.ResponseEntity update​(UUID uuid, de.digitalcollections.model.identifiable.IdentifierType identifierType)  
      • Methods inherited from class de.digitalcollections.commons.springmvc.controller.AbstractController

        verifyBinding
    • Constructor Detail

      • IdentifierTypeController

        public IdentifierTypeController​(CudamiClient client)
    • Method Detail

      • module

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

        @GetMapping("/identifiertypes/new")
        public String create()
      • createModel

        @GetMapping("/api/identifiertypes/new")
        @ResponseBody
        public de.digitalcollections.model.identifiable.IdentifierType createModel()
                                                                            throws de.digitalcollections.model.exception.TechnicalException
        Throws:
        de.digitalcollections.model.exception.TechnicalException
      • edit

        @GetMapping("/identifiertypes/{uuid}/edit")
        public String edit​(@PathVariable
                           UUID uuid,
                           org.springframework.ui.Model model)
                    throws de.digitalcollections.model.exception.TechnicalException
        Throws:
        de.digitalcollections.model.exception.TechnicalException
      • find

        @GetMapping("/api/identifiertypes")
        @ResponseBody
        public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.IdentifierType> find​(@RequestParam(name="pageNumber",required=false,defaultValue="0")
                                                                                                                                  int pageNumber,
                                                                                                                                  @RequestParam(name="pageSize",required=false,defaultValue="25")
                                                                                                                                  int pageSize,
                                                                                                                                  @RequestParam(name="searchTerm",required=false)
                                                                                                                                  String searchTerm,
                                                                                                                                  @RequestParam(name="sortBy",required=false)
                                                                                                                                  List<de.digitalcollections.model.list.sorting.Order> sortBy)
                                                                                                                           throws de.digitalcollections.model.exception.TechnicalException
        Throws:
        de.digitalcollections.model.exception.TechnicalException
      • getByUuid

        @GetMapping("/api/identifiertypes/{uuid}")
        @ResponseBody
        public de.digitalcollections.model.identifiable.IdentifierType getByUuid​(@PathVariable
                                                                                 UUID uuid)
                                                                          throws de.digitalcollections.model.exception.TechnicalException
        Throws:
        de.digitalcollections.model.exception.TechnicalException
      • list

        @GetMapping("/identifiertypes")
        public String list()
      • save

        @PostMapping("/api/identifiertypes")
        public org.springframework.http.ResponseEntity save​(@RequestBody
                                                            de.digitalcollections.model.identifiable.IdentifierType identifierType)
      • update

        @PutMapping("/api/identifiertypes/{uuid}")
        public org.springframework.http.ResponseEntity update​(@PathVariable
                                                              UUID uuid,
                                                              @RequestBody
                                                              de.digitalcollections.model.identifiable.IdentifierType identifierType)