Package evolaris.platform.um.web.form

Examples of evolaris.platform.um.web.form.GroupEnterOrEditForm


   *      org.apache.struts.action.ActionForm,
   *      javax.servlet.http.HttpServletRequest,
   *      javax.servlet.http.HttpServletResponse)
   */
  public ActionForward create(ActionMapping mapping, ActionForm form,HttpServletRequest req, HttpServletResponse resp)  {
    GroupEnterOrEditForm groupEnterOrEditForm = (GroupEnterOrEditForm) form;
    GroupManager manager = new GroupManager(locale,session);   
    Group group = new Group();
    groupEnterOrEditForm.modifyGroup(group, locale, session, getResources(req),req.isUserInRole(UserManagerBase.ADMINISTRATOR));
    checkAccessRights(req, group);
    manager.createGroup(group);
    return mapping.findForward("created");
  }
View Full Code Here


   *      javax.servlet.http.HttpServletRequest,
   *      javax.servlet.http.HttpServletResponse)
   */
  @SuppressWarnings("unused")
  public ActionForward modify(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) {
    GroupEnterOrEditForm groupEnterOrEditForm = (GroupEnterOrEditForm) form;
    GroupManager groupManager = new GroupManager(locale,session);
    Group group = groupManager.getGroup(groupEnterOrEditForm.getGroupId())// groups never get deleted => always found
    groupEnterOrEditForm.modifyGroup(group, locale, session, getResources(req),req.isUserInRole(UserManagerBase.ADMINISTRATOR));
    checkAccessRights(req, group);
    groupManager.modifyGroup(group);
    return mapping.findForward("modified");
  }
View Full Code Here

   *      org.apache.struts.action.ActionForm,
   *      javax.servlet.http.HttpServletRequest,
   *      javax.servlet.http.HttpServletResponse)
   */
  public ActionForward edit(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) {
    GroupEnterOrEditForm groupEnterOrEditForm = (GroupEnterOrEditForm) form;
    GroupManager groupMgm = new GroupManager(locale,session);
    Group group = groupMgm.getGroup(getGroupId(req))// groups never get deleted => always found
    checkAccessRights(req, group);
    groupEnterOrEditForm.initialize(group, locale, session, getResources(req));
    prepareSession(req, group);
    return mapping.findForward("edit");
  }
View Full Code Here

TOP

Related Classes of evolaris.platform.um.web.form.GroupEnterOrEditForm

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.