Examples of UserGroup


Examples of br.com.visualmidia.ui.group.UserGroup

        data.left = new FormAttachment(0, 0);
        groupInfo.setLayoutData(data);
    }

    private void createUserInfo() {
        userInfo = new UserGroup(userPage, SWT.NONE, this, "Usu�rio");
        userInfo.display();
        userInfo.setDisabled();

        FormData data = new FormData();
        data.top = new FormAttachment(systemUser, 0);
View Full Code Here

Examples of com.brienwheeler.svc.usergroups.domain.UserGroup

    groupType = ValidationUtils.assertNotEmpty(groupType, "groupType cannot be empty");

    if (findByNameAndType(groupName, groupType) != null)
      throw new DuplicateUserGroupException("group already exists: " + groupName + "/" + groupType);
   
    UserGroup userGroup = new UserGroup(groupName, groupType);
    return userGroupDao.save(userGroup);
  }
View Full Code Here

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

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

        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

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

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

Examples of com.gwcworld.core.bean.UserGroup

        String userEnabled = request.getParameter("userEnabled");
        int customerId = WebUtil.parameter2int(request.getParameter("customerId"));
        int groupId = WebUtil.parameter2int(request.getParameter("groupId"));
       
        Customer customer = customerService.getById(customerId);
        UserGroup userGroup = userGroupService.getById(groupId);
       
        boolean result = true;
       
        if(userId!=0 && userView!=null){
          logger.debug("4");
View Full Code Here

Examples of com.hlcl.rql.as.UserGroup

    String projectGuid = "73671509FA5C43ED8FC4171AD0298AD2";

    CmsClient client = new CmsClient(logonGuid);
    Project project = client.getProject(sessionKey, projectGuid);

    UserGroup userGroup1 = project.getUserGroupByGuid("userGroupGuid");
    UserGroup userGroup2 = project.getUserGroupByName("userGroupName");

    // add users to user group
    User user = client.getUserByName("lejafr");
    userGroup1.addUser(user);
    userGroup1.addUsers(userGroup2);
View Full Code Here

Examples of com.hlcl.rql.as.UserGroup

    String projectGuid = "73671509FA5C43ED8FC4171AD0298AD2";

    CmsClient client = new CmsClient(logonGuid);
    Project project = client.getProject(sessionKey, projectGuid);

    UserGroup userGroup1 = project.getUserGroupByGuid("userGroupGuid");
    UserGroup userGroup2 = project.getUserGroupByName("userGroupName");

    List<UserGroup> userGroups1 = project.getUserGroups();
    List<UserGroup> userGroups2 = project.getUserGroupsNameStartsWith("area-");

    boolean contains = userGroup1.contains("user name");
    User user = client.getUserByName("userName");
    boolean contains2 = userGroup1.contains(user);
    userGroup2.addUser(user);

    List<User> users = userGroup1.getUsers();
    for (User user2 : users) {
      System.out.println(user2.getName());
      System.out.println(user2.getFullname());
View Full Code Here

Examples of com.jpoweredcart.common.entity.user.UserGroup

      userDetails.userId = user.getId();
      userDetails.salt = user.getSalt();
      userDetails.password = user.getPassword();
      userDetails.username = user.getUsername();
      userDetails.enabled = user.getStatus()==1;
      UserGroup userGroup = userService.getSystemUserGroupById(user.getUserGroupId());
      if(userGroup!=null){
        userDetails.authorities.add(userGroup.getName());
        String permString = userGroup.getPermission();
        userDetails.permissions = UserPermissions.unserializePermissions(permString);
      }
     
      logger.debug("Found user username={}, enabled={}", username, userDetails.enabled);
     
View Full Code Here

Examples of com.opengamma.security.user.UserGroup

public class UserEntitlementCheckerTest {

  public void basicPermissionCheck() {
    Set<UserGroup> userGroups = new HashSet<UserGroup>();

    UserGroup group1 = new UserGroup(0L, "group1");
    group1.getAuthorities().add(new Authority(0L, "LiveData/Bloomberg/Equity/**")); // ** -> all subpaths OK
    group1.getAuthorities().add(new Authority(1L, "LiveData/Bloomberg/Bond/*")); // * -> only 1 level of subpath OK
    userGroups.add(group1);
   
    UserGroup group2 = new UserGroup(1L, "group2");
    group2.getAuthorities().add(new Authority(2L, "LiveData/Reuters/Equity/**"));
    userGroups.add(group2);
   
    User user = new User(null,
        "john",
        "pw",
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.