/** * Returns all direct users of a given group.<p> * * Users that are "indirectly" in the group are not returned in the result.<p> * * @param groupname the name of the group to get all users for * * @return all <code>{@link CmsUser}</code> objects in the group * * @throws CmsException if operation was not successful */ public List<CmsUser> getUsersOfGroup(String groupname) throws CmsException { return getUsersOfGroup(groupname, true); }
/** * Returns all direct users of a given group.<p> * * Users that are "indirectly" in the group are not returned in the result.<p> * * @param groupname the name of the group to get all users for * * @return all <code>{@link CmsUser}</code> objects in the group * * @throws CmsException if operation was not successful */ public List getUsersOfGroup(String groupname) throws CmsException { return getUsersOfGroup(groupname, true); }
/** * Gets the list of recipients for the notifications.<p> * * @return the list of users which should be notified when resources are released */ protected List<CmsUser> getNotificationMailRecipients() { String group = getWorkflowProjectManagerGroup(); CmsObject cms = m_adminCms; try { List<CmsUser> users = cms.getUsersOfGroup(group); return users; } catch (CmsException e) { LOG.error(e.getLocalizedMessage(), e); return new ArrayList<CmsUser>(); } }
/** * @see org.opencms.workplace.tools.accounts.A_CmsGroupUsersList#getUsers(boolean) */ @Override protected List<CmsUser> getUsers(boolean withOtherOus) throws CmsException { return getCms().getUsersOfGroup(getParamGroupname(), withOtherOus); }
/** * @see org.opencms.workplace.tools.accounts.A_CmsGroupUsersList#getUsers(boolean) */ @Override protected List<CmsUser> getUsers(boolean withOtherOus) throws CmsException { return getCms().getUsersOfGroup(getParamGroupname(), withOtherOus); }
/** * Returns a map with the users to export added.<p> * * @param groups the selected groups * @param exportUsers the map to add the users * * @return a map with the users to export added * * @throws CmsException if getting groups or users of group failed */ protected Map<CmsUUID, CmsUser> getExportUsersFromGroups(List<String> groups, Map<CmsUUID, CmsUser> exportUsers) throws CmsException { if ((groups != null) && (groups.size() > 0)) { Iterator<String> itGroups = groups.iterator(); while (itGroups.hasNext()) { List<CmsUser> groupUsers = getCms().getUsersOfGroup(itGroups.next()); Iterator<CmsUser> itGroupUsers = groupUsers.iterator(); while (itGroupUsers.hasNext()) { CmsUser groupUser = itGroupUsers.next(); if (!exportUsers.containsKey(groupUser.getId())) { exportUsers.put(groupUser.getId(), groupUser); } } } } return exportUsers; }
String groupName = itGroups.next(); try { Iterator<CmsUser> itUsers = getCms().getUsersOfGroup(groupName, true).iterator(); while (itUsers.hasNext()) { CmsUser user = itUsers.next();
try { if (m_groupName != null) { List<CmsUser> users = cms.getUsersOfGroup(m_groupName); Iterator<CmsUser> it = users.iterator(); int i = 0;
if (detailId.equals(LIST_DETAIL_USERS)) { Iterator<CmsUser> itUsers = getCms().getUsersOfGroup(groupName).iterator(); while (itUsers.hasNext()) { html.append(itUsers.next().getFullName());
String groupName = itGroups.next(); try { Iterator<CmsUser> itUsers = getCms().getUsersOfGroup(groupName, true).iterator(); while (itUsers.hasNext()) { CmsUser user = itUsers.next();
String groupName = itGroups.next(); try { Iterator<CmsUser> itUsers = getCms().getUsersOfGroup(groupName, true).iterator(); while (itUsers.hasNext()) { CmsUser user = itUsers.next();
/** * Returns the list of users for selection.<p> * * @return a list of users * * @throws CmsException if womething goes wrong */ protected List<CmsPrincipal> getUsers() throws CmsException { List<CmsPrincipal> ret = new ArrayList<CmsPrincipal>(); if (getParamGroup() != null) { ret.addAll(getCms().getUsersOfGroup(getParamGroup())); } else { ret.addAll(OpenCms.getRoleManager().getManageableUsers(getCms(), "", true)); } if (getParamFlags() != null) { int flags = Integer.parseInt(getParamFlags()); return new ArrayList<CmsPrincipal>(CmsPrincipal.filterFlag(ret, flags)); } return ret; }
/** * Returns the list of users for selection.<p> * * @return a list of users * * @throws CmsException if womething goes wrong */ protected List getUsers() throws CmsException { List ret = new ArrayList(); if (getParamGroup() != null) { ret.addAll(getCms().getUsersOfGroup(getParamGroup())); } else { ret.addAll(OpenCms.getRoleManager().getManageableUsers(getCms(), "", true)); } if (getParamFlags() != null) { int flags = Integer.parseInt(getParamFlags()); return CmsPrincipal.filterFlag(ret, flags); } return ret; }
/** * @see org.opencms.workplace.tools.accounts.A_CmsGroupUsersList#getUsers(boolean) */ @Override protected List<CmsUser> getUsers(boolean withOtherOus) throws CmsException { List<CmsUser> groupusers = getCms().getUsersOfGroup(getParamGroupname(), withOtherOus); List<CmsUser> users; if (withOtherOus) { users = OpenCms.getRoleManager().getManageableUsers(getCms(), "", true); } else { users = OpenCms.getRoleManager().getManageableUsers(getCms(), getParamOufqn(), false); } users.removeAll(groupusers); return users; }
String groupName = itGroups.next(); try { Iterator<CmsUser> itUsers = getCms().getUsersOfGroup(groupName, true).iterator(); while (!hasUser && itUsers.hasNext()) { CmsUser user = itUsers.next();
if (detailId.equals(LIST_DETAIL_USERS)) { List<CmsUser> users = getCms().getUsersOfGroup(groupName, true); Iterator<CmsUser> itUsers = users.iterator(); while (itUsers.hasNext()) {
Iterator<CmsUser> itUsers = getCms().getUsersOfGroup(group.getName()).iterator(); while (itUsers.hasNext()) { CmsUser user = itUsers.next();