Returns a list of all members of the selected groups.<p>

@return a list of user objects
326587
private List<CmsUser> getUsers() {

        if (m_users == null) {
            m_users = new ArrayList<CmsUser>();
            List<CmsUser> manageableUsers = new ArrayList<CmsUser>();
            try {
                manageableUsers = OpenCms.getRoleManager().getManageableUsers(getCms(), "", true);
            } catch (CmsException e) {
                if (LOG.isErrorEnabled()) {
                    LOG.error(e.getLocalizedMessage(), e);
                }
            }
            Iterator<String> itGroups = getGroups().iterator();
            while (itGroups.hasNext()) {
                String groupName = itGroups.next();
                try {
                    Iterator<CmsUser> itUsers = getCms().getUsersOfGroup(groupName, true).iterator();
                    while (itUsers.hasNext()) {
                        CmsUser user = itUsers.next();
                        if (OpenCms.getSessionManager().getSessionInfos(user.getId()).isEmpty()) {
                            continue;
                        }
                        if (!manageableUsers.contains(user)) {
                            continue;
                        }
                        m_users.add(user);
                    }
                } catch (CmsException e) {
                    // should never happen
                }
            }
        }
        return m_users;
    }
873135
private Principal selectedPrincipal() {
        if (browseByColumn.getSelectedItem().getTitle().equals(Console.CONSTANTS.common_label_users())) {
            return userColumn.getSelectedItem();
        } else if (browseByColumn.getSelectedItem().getTitle().equals(Console.CONSTANTS.common_label_groups())) {
            return groupColumn.getSelectedItem();
        }
        return null;
    }
383642
public List<ConferenceMember> getMembers() throws Exception {
        final String membersPath = StringUtils.join(new String[]{
                getUri(),
                "members"
        }, '/');
        final JSONArray array = toJSONArray(client.get(membersPath, null));

        final List<ConferenceMember> members = new ArrayList<ConferenceMember>();
        for (final Object obj : array) {
            members.add(new ConferenceMember(client, (JSONObject) obj));
        }
        return members;
    }
801197
public Map<String, String> getUsersGroups() {
        Map<String, String> usersGroups = new LinkedHashMap<String, String>();
        for (Map.Entry<String, List<String>> entry : USERS_GROUPS.entrySet()) {
            String key = entry.getKey();
            usersGroups.put(key + " (" + entry.getValue().get(0) + ")", key);
        }
        return usersGroups;
    }
1215485
public CmsPermissionSetCustom getPermissions(CmsUser user, List<CmsGroup> groups, List<CmsRole> roles) {

        CmsPermissionSetCustom sum = new CmsPermissionSetCustom();
        boolean hasPermissions = false;
        CmsPermissionSet p = m_permissions.get(user.getId());
        if (p != null) {
            sum.addPermissions(p);
            hasPermissions = true;
        }
        if (groups != null) {
            int size = groups.size();
            for (int i = 0; i < size; i++) {
                I_CmsPrincipal principal = groups.get(i);
                p = m_permissions.get(principal.getId());
                if (p != null) {
                    sum.addPermissions(p);
                    hasPermissions = true;
                }
            }
        }
        if (roles != null) {
            int size = roles.size();
            for (int i = 0; i < size; i++) {
                CmsRole role = roles.get(i);
                p = m_permissions.get(role.getId());
                if (p != null) {
                    sum.addPermissions(p);
                    hasPermissions = true;
                }
            }
        }
        if (!hasPermissions) {
            // if no applicable entry is found check the 'all others' entry
            p = m_permissions.get(CmsAccessControlEntry.PRINCIPAL_ALL_OTHERS_ID);
            if (p != null) {
                sum.addPermissions(p);
            }
        }
        return sum;
    }
1063211
public function getAssignedMembers()
    {
        $members = ArrayList::create($this->Users()->toArray());
        $groups  = $this->Groups();

        foreach ($groups as $group) {
            $members->merge($group->Members());
        }

        $members->removeDuplicates();
        return $members;
    }
380056
public java.util.List<String> getUserIds() {
        if (userIds == null) {
            userIds = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return userIds;
    }
1208776
public java.util.List<String> getGroupNames() {
        if (groupNames == null) {
            groupNames = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return groupNames;
    }
959106
public function getAssignedMembers()
    {
        $list   = new ArrayList();
        $groups = $this->Groups();

        $list->merge($this->Users());

        foreach ($groups as $group) {
            $list->merge($group->Members());
        }

        $list->removeDuplicates();
        return $list;
    }
855136
protected java.util.List<? extends AbstractCommand> getCommandGroupMembers() {
		return Lists.<AbstractCommand>newArrayList(getFinishCommand(), getCancelCommand());
	}
1183212
public Object users() {
        return new ArrayList<Map<String, Object>>()
        {{
            add(new HashMap<String, Object>()
            {{
                put("username","testUser1");
                put("groups", Arrays.asList("group1"));
                put("password","thisMechWillChange");
            }});
            add(new HashMap<String, Object>()
            {{
                put("username","testUser2");
                put("groups", Arrays.asList("group2"));
                put("password","thisMechWillChange");
            }});
        }};
    }
1202058
public UserGroupsEntity getUserGroups(String username) {
		return restClient.get("users/" + username + "/groups", UserGroupsEntity.class,
				new HashMap<String, String>());
	}
152103
public List<CmsUser> getVisibleUser() {

        if (!m_fullyLoaded) {
            return m_users;
        }
        if (size() == m_users.size()) {
            return m_users;
        }
        List<CmsUser> directs = new ArrayList<CmsUser>();
        for (CmsUser user : m_users) {
            if (!m_indirects.contains(user)) {
                directs.add(user);
            }
        }
        return directs;
    }
719681
public java.util.List<NodeGroupMember> getNodeGroupMembers() {
        if (nodeGroupMembers == null) {
            nodeGroupMembers = new com.amazonaws.internal.SdkInternalList<NodeGroupMember>();
        }
        return nodeGroupMembers;
    }
162741
public String getGroupId() {
        List<String> groups = USERS_GROUPS.get(_userId);
        return (groups != null && groups.size() > 0) ? groups.get(0) : null;
    }
26934
private function Groups()
    {
        if ($this->groups === null)
        {
            $this->groups = array();
            if ($this->GetMember())
            {
                $this->groups = MembergroupUtil::MemberMembergroups($this->GetMember());
            }
        }
        return $this->groups;
    }
1074979
@Override
    public Set<Node> getGroupsForUser(Node user) {
        Set<Node> groups = new TreeSet<>();
        try {
            String query = "(& (objectClass=" + groupObjectClass + ") (" + groupMemberAttribut + "=" + ((LdapUser) user).getDn() + "))";
            SearchResult searchResult;
            Attributes attributes;
            SearchControls controls = new SearchControls();
            controls.setSearchScope(SearchControls.SUBTREE_SCOPE);
            NamingEnumeration<SearchResult> results = ctx.search("", query, controls);
            queryCount++;
            Node group;
            while (results.hasMore()) {
                searchResult = results.next();
                attributes = searchResult.getAttributes();
                group = getGroup(getAttributeOrNa(attributes, groupIdentifyer));
                group.setDn(searchResult.getNameInNamespace());
                groups.add(group);
            }
        } catch (NamingException ex) {
            handleNamingException(user, ex);
        }
        return groups;
    }