Package org.nextime.ion.framework.business

Examples of org.nextime.ion.framework.business.User.addGroup()


      user.setPassword(sform.getPassword());
      user.resetGroups();
      if (sform.getGroups() != null) {
        for (int i = 0; i < sform.getGroups().length; i++) {
          Group group = Group.getInstance(sform.getGroups()[i]);
          user.addGroup(group);
        }
      }
      Mapping.commit();

    } catch (Exception e) {
View Full Code Here


      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]));
        }
      }

      // *********************************************************
      // les metaData sont g�r�es separement car je n'ai
View Full Code Here

      user.setMetaData("email", sform.getEmail());
      user.setPassword(sform.getPassword());
      user.resetGroups();
      for( int i=0; i<sform.getGroups().length; i++ ) {
        Group group = Group.getInstance(sform.getGroups()[i]);
        user.addGroup(group);
      }
      Mapping.commit();
     
    } catch (Exception e) {
      Mapping.rollback();
View Full Code Here

      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]));
        }
      }
      Mapping.commit();     

    } catch (Exception e) {     
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.