@Controller public class TopicsController extends AbstractEntitiesController<de.digitalcollections.model.identifiable.entity.Topic,CudamiTopicsClient>
Controller for topics management pages.
  • Constructor Details

  • Method Details

    • create

      @GetMapping("/topics/new") public String create(org.springframework.ui.Model model, @RequestParam(name="parentType",required=false) String parentType, @RequestParam(name="parentUuid",required=false) UUID parentUuid) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • edit

      @GetMapping("/topics/{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, @RequestParam(name="activeLanguage",required=false) Locale activeLanguage, org.springframework.ui.Model model) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • list

      @GetMapping("/topics") public String list(org.springframework.ui.Model model) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • module

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

      @GetMapping("/topics/{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, @RequestParam(name="dataLanguage",required=false) String targetDataLanguage, 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
    • viewByRefId

      @GetMapping("/topics/{refId:[0-9]+}") public String viewByRefId(@PathVariable long refId, @RequestParam(name="dataLanguage",required=false) String targetDataLanguage, 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