Package evolaris.platform.um.web.form

Examples of evolaris.platform.um.web.form.GroupEnterOrEditForm.modifyGroup()


   */
  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


  @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

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.