@Controller @RequestMapping(value="/customer/{customerId}") @SessionAttributes(value="editCustomer") public class CustomerEditController extends Object
修飾子とタイプ | フィールドと説明 |
---|---|
private CustomerService |
customerService |
コンストラクタと説明 |
---|
CustomerEditController() |
修飾子とタイプ | メソッドと説明 |
---|---|
String |
edit(Customer customer,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes,
org.springframework.web.bind.support.SessionStatus sessionStatus) |
String |
handleException() |
String |
handleException(org.springframework.web.HttpSessionRequiredException e) |
String |
redirectToEntryForm(int customerId,
org.springframework.ui.Model model) |
String |
revise() |
String |
showEdited(Customer customer,
org.springframework.web.bind.support.SessionStatus sessionStatus) |
String |
showEntryForm(Customer customer) |
String |
showReview(Customer customer) |
String |
verify(Customer customer,
org.springframework.validation.Errors errors) |
@Autowired private CustomerService customerService
@RequestMapping(value="/edit", method=GET) public String redirectToEntryForm(@PathVariable int customerId, org.springframework.ui.Model model) throws DataNotFoundException
@RequestMapping(value="/enter", method=GET) public String showEntryForm(@ModelAttribute(value="editCustomer") Customer customer)
@RequestMapping(value="/enter", params="_event_proceed", method=POST) public String verify(@ModelAttribute(value="editCustomer") Customer customer, org.springframework.validation.Errors errors)
@RequestMapping(value="/review", method=GET) public String showReview(@ModelAttribute(value="editCustomer") Customer customer)
@RequestMapping(value="/review", params="_event_revise", method=POST) public String revise()
@RequestMapping(value="/review", params="_event_confirmed", method=POST) public String edit(@ModelAttribute(value="editCustomer") Customer customer, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, org.springframework.web.bind.support.SessionStatus sessionStatus) throws DataNotFoundException
@RequestMapping(value="/edited", method=GET) public String showEdited(@ModelAttribute(value="editCustomer") Customer customer, org.springframework.web.bind.support.SessionStatus sessionStatus)
@ExceptionHandler public String handleException(org.springframework.web.HttpSessionRequiredException e)
@ExceptionHandler(value=DataNotFoundException.class) public String handleException()