Package org.nextime.ion.admin.form

Examples of org.nextime.ion.admin.form.UserForm


      if (request.getParameter("editSubmit") == null) {
        Mapping.begin();

        // initialisation du formulaire       
        User u = User.getInstance(id);
        UserForm f = (UserForm) form;
        f.setLogin(u.getLogin());
        f.setPassword(u.getPassword());
        f.setGroups(u.getGroupsIds());
        request.setAttribute("metaData", ((UserImpl) u).getMetaData());

        Mapping.commit();
        return new ActionForward( mapping.getInput() );
      }

      // effectu les modifications
      Mapping.begin();
      UserForm f = (UserForm) form;
      User u = User.getInstance(id);
      u.setPassword(f.getPassword());
      String[] g = f.getGroups();
      u.resetGroups();
      if (g != null) {
        for (int i = 0; i < g.length; i++) {
          u.addGroup(Group.getInstance(g[i]));
        }
View Full Code Here


      // si on a pas soumis le formulaire
      if (request.getParameter("addSubmit") == null)
        return new ActionForward( mapping.getInput() );

      // creation de l'objet
      UserForm f = (UserForm) form;
      Mapping.begin();
      id = f.getLogin();
      User u = User.create(f.getLogin());
      u.setPassword(f.getPassword());
      String[] g = f.getGroups();
      if (g != null) {
        for (int i = 0; i < g.length; i++) {
          u.addGroup(Group.getInstance(g[i]));
        }
      }
View Full Code Here

TOP

Related Classes of org.nextime.ion.admin.form.UserForm

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.