Package com.foxconn.gds.security.model

Examples of com.foxconn.gds.security.model.UserGroup


          //同時創建一個組與account相同,並將此account加到此組中
          Group group = new Group(acc.getAccount());
          accMgr.createGroup(group);
         
          //
          UserGroup userGroup = new UserGroup(acc, group);
          Collection<UserGroup> inGroups = new ArrayList<UserGroup>();
          inGroups.add(userGroup);
          //注:創建一個UserAccount,會同時創建UserProfile和UserGroup
          acc.setInGroups(inGroups);
          accMgr.createUserAccount(acc);
View Full Code Here


        if(!this.createGroup(group)) {
          log.warning("Create Group " + groupName + " failure!");
          return false;
        }
      }
      UserGroup userGroup = new UserGroup(userAccount, group);
     
      EntityManager em = entityManagerFactory.createEntityManager();
      EntityTransaction tx = em.getTransaction();
      try {
        tx.begin();
View Full Code Here

    //-------------------------------------------------------
    Collection<UserGroup> ownUsers = null;
    if(accountAy!=null) {
      for(String account : accountAy){
        UserAccount userAccount = this.findUserAccountByID(account);
        UserGroup userGroup = new UserGroup(userAccount, pGrp);
        if(ownUsers==null) {
          ownUsers = new ArrayList<UserGroup>();
        }
        ownUsers.add(userGroup);
      }
View Full Code Here

TOP

Related Classes of com.foxconn.gds.security.model.UserGroup

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.