Class IdentifierTypeController

java.lang.Object
de.digitalcollections.commons.springmvc.controller.AbstractController
de.digitalcollections.cudami.admin.controller.AbstractPagingAndSortingController
de.digitalcollections.cudami.admin.controller.AbstractUniqueObjectController<de.digitalcollections.model.identifiable.IdentifierType>
de.digitalcollections.cudami.admin.controller.identifiable.IdentifierTypeController

@Controller @SessionAttributes("identifierType") public class IdentifierTypeController extends AbstractUniqueObjectController<de.digitalcollections.model.identifiable.IdentifierType>
Controller for identifier type management pages.
  • Constructor Details

    • IdentifierTypeController

      public IdentifierTypeController(CudamiClient client, LanguageService languageService, org.springframework.context.MessageSource messageSource)
  • Method Details

    • create

      @GetMapping("/identifiertypes/new") public String create(org.springframework.ui.Model model) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • edit

      @GetMapping("/identifiertypes/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/edit") public String edit(@PathVariable UUID uuid, org.springframework.ui.Model model) throws de.digitalcollections.model.exception.TechnicalException, de.digitalcollections.model.exception.ResourceNotFoundException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
      de.digitalcollections.model.exception.ResourceNotFoundException
    • list

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

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

      @PostMapping("/identifiertypes/new") public String save(@ModelAttribute @Valid @Valid de.digitalcollections.model.identifiable.IdentifierType identifierType, org.springframework.validation.BindingResult results, org.springframework.ui.Model model, org.springframework.web.bind.support.SessionStatus status, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
    • update

      @PostMapping("/identifiertypes/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/edit") public String update(@PathVariable UUID uuid, @ModelAttribute @Valid @Valid de.digitalcollections.model.identifiable.IdentifierType identifierType, org.springframework.validation.BindingResult results, org.springframework.ui.Model model, org.springframework.web.bind.support.SessionStatus status, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • view

      @GetMapping("/identifiertypes/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}") public String view(@PathVariable UUID uuid, org.springframework.ui.Model model) throws de.digitalcollections.model.exception.TechnicalException, de.digitalcollections.model.exception.ResourceNotFoundException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
      de.digitalcollections.model.exception.ResourceNotFoundException