Class BooksController

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.MessageSourceAware

    @Controller
    @SessionAttributes("book")
    public class BooksController
    extends de.digitalcollections.commons.springmvc.controller.AbstractController
    implements org.springframework.context.MessageSourceAware
    Controller for books management pages.
    • Constructor Summary

      Constructors 
      Constructor Description
      BooksController()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String edit​(long id, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)  
      java.lang.String list​(org.springframework.ui.Model model)  
      protected java.lang.String module()  
      void setMessageSource​(org.springframework.context.MessageSource messageSource)  
      java.lang.String view​(long id, 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

      • BooksController

        public BooksController()
    • Method Detail

      • setMessageSource

        public void setMessageSource​(org.springframework.context.MessageSource messageSource)
        Specified by:
        setMessageSource in interface org.springframework.context.MessageSourceAware
      • module

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

        @RequestMapping(value="/books/{id}/edit",
                        method=GET)
        public java.lang.String edit​(@PathVariable
                                     long id,
                                     org.springframework.ui.Model model,
                                     org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
      • list

        @RequestMapping(value="/books",
                        method=GET)
        public java.lang.String list​(org.springframework.ui.Model model)
      • view

        @RequestMapping(value="/books/{id}",
                        method=GET)
        public java.lang.String view​(@PathVariable
                                     long id,
                                     org.springframework.ui.Model model)