Package com.m4f.web.bind.form

Examples of com.m4f.web.bind.form.InboxForm


  @Secured({"ROLE_AUTOMATIC_MEDIATOR","ROLE_MANUAL_MEDIATOR"})
  @RequestMapping(method=RequestMethod.GET)
  public String getForm(Model model, Principal principal,
      @RequestHeader("referer") String referer, HttpSession session) {
    try {
      InboxForm inbox = new InboxForm();
      inbox.setFrom(principal.getName());
      model.addAttribute("inbox", inbox);
      session.setAttribute(this.REFERER_PARAM, referer);
    } catch(Exception e) {
      LOGGER.severe(StackTraceUtil.getStackTrace(e));
      return "common.error";
View Full Code Here


  @Secured("ROLE_ADMIN")
  @RequestMapping(value="/response/{inboxId}", method=RequestMethod.GET)
  public String responseToInboxMessage(Principal principal, @PathVariable Long inboxId, Model model, Locale locale) {
    try {
      Inbox inboxReq = this.serviceLocator.getInboxService().getInbox(inboxId, locale);
      InboxForm inbox = new InboxForm();
      inbox.setFrom(principal.getName());
      model.addAttribute("inboxReq", inboxReq);
      model.addAttribute("inbox", inbox);
    } catch(Exception e) {
      LOGGER.severe(StackTraceUtil.getStackTrace(e));
      return "common.error";
View Full Code Here

  }
 

  @RequestMapping(value = "/results/error", method = RequestMethod.GET)
  public String getSendErrorPage(Model model) {
    InboxForm inbox = new InboxForm();
    model.addAttribute("inbox", inbox);
    model.addAttribute("sent", false);
    return "search.results.error";
  }
View Full Code Here

TOP

Related Classes of com.m4f.web.bind.form.InboxForm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.