Examples of EnterEditDuplicateForm


Examples of evolaris.framework.sys.web.form.EnterEditDuplicateForm

   * Method executed for "method" parameter "enter"; prepares group and application form and session entries
   * @see org.apache.struts.action.Action#execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
   */
  protected ActionForward enter(ActionMapping mapping, ActionForm form,HttpServletRequest req, HttpServletResponse resp){
    req.getSession().setAttribute("task", "create");
    EnterEditDuplicateForm f = (EnterEditDuplicateForm)form;
    Group group = groupPreparation(req, f.getGroupId());
    f.setGroupId(group.getId());
    Application application = applicationPreparation(req, group, f.getApplicationId());
    f.setApplicationId(application.getId());
    return mapping.findForward("continue");
  }
View Full Code Here

Examples of evolaris.framework.sys.web.form.EnterEditDuplicateForm

  /* (non-Javadoc)
   * @see evolaris.framework.sys.web.action.AnonymousLocalizedAction#cancel(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
   */
  @Override
  public ActionForward cancel(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) {
    EnterEditDuplicateForm f = (EnterEditDuplicateForm)form;
    f.setGroupId(null)// force new content next time the page is opened
    f.setApplicationId(null);
    return mapping.findForward("cancelled");
  }
View Full Code Here

Examples of evolaris.framework.sys.web.form.EnterEditDuplicateForm

   * @see evolaris.framework.sys.web.action.EnterEditDuplicateAction#edit(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
   */
  @Override
  protected ActionForward edit(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) {
    ActionForward actionForward = super.edit(mapping, form, req, resp);
    EnterEditDuplicateForm f = (EnterEditDuplicateForm)form;
    InteractionList entry = entryFromDatabase(f.getId());
    if (entry == null){
      throw new InputException(getLocalizedMessage("SystemWeb", "sys.entryNotAvailable"),"id = " + f.getId(),null,null);
    }
    req.getSession().setAttribute("deleteMode", entry.getCommandEntries().size() == 0 ? "delete" : "deleteIncludingInteractions");   
    return actionForward;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.