Package org.nextime.ion.admin.form

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


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

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


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

        // initialisation du formulaire       
        Group u = Group.getInstance(id);
        GroupForm f = (GroupForm) form;
        f.setId(u.getId());
        f.setUsers(u.getUsersIds());
        request.setAttribute("metaData", ((GroupImpl) u).getMetaData());

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

      // effectu les modifications
      Mapping.begin();
      GroupForm f = (GroupForm) form;
      Group u = Group.getInstance(id);
      String[] g = f.getUsers();
      u.resetUsers();
      if (g != null) {
        for (int i = 0; i < g.length; i++) {
          u.addUser(User.getInstance(g[i]));
        }
View Full Code Here

TOP

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

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.