/** * Returns all groups.<p> * * @return a list of all <code>{@link CmsGroup}</code> objects * * @throws CmsException if operation was not successful * * @deprecated use {@link org.opencms.security.CmsOrgUnitManager#getGroups(CmsObject, String, boolean) OpenCms.getOrgUnitManager().getGroups(CmsObject, String, boolean)} instead */ public List getGroups() throws CmsException { return OpenCms.getOrgUnitManager().getGroups(this, "", true); }
/** * Returns all groups of organizational units for which the current user * has the {@link CmsRole#ACCOUNT_MANAGER} role.<p> * * @param cms the current cms context * @param ouFqn the fully qualified name of the organizational unit * @param includeSubOus if sub organizational units should be included in the search * * @return a list of {@link org.opencms.file.CmsGroup} objects * * @throws CmsException if something goes wrong */ public List getManageableGroups(CmsObject cms, String ouFqn, boolean includeSubOus) throws CmsException { List groups = new ArrayList(); Iterator it = getOrgUnitsForRole(cms, CmsRole.ACCOUNT_MANAGER.forOrgUnit(ouFqn), includeSubOus).iterator(); while (it.hasNext()) { CmsOrganizationalUnit orgUnit = (CmsOrganizationalUnit)it.next(); groups.addAll(OpenCms.getOrgUnitManager().getGroups(cms, orgUnit.getName(), false)); } return groups; }
/** * Returns all groups of organizational units for which the current user * has the {@link CmsRole#ACCOUNT_MANAGER} role.<p> * * @param cms the current cms context * @param ouFqn the fully qualified name of the organizational unit * @param includeSubOus if sub organizational units should be included in the search * * @return a list of {@link org.opencms.file.CmsGroup} objects * * @throws CmsException if something goes wrong */ public List<CmsGroup> getManageableGroups(CmsObject cms, String ouFqn, boolean includeSubOus) throws CmsException { List<CmsGroup> groups = new ArrayList<CmsGroup>(); Iterator<CmsOrganizationalUnit> it = getOrgUnitsForRole( cms, CmsRole.ACCOUNT_MANAGER.forOrgUnit(ouFqn), includeSubOus).iterator(); while (it.hasNext()) { CmsOrganizationalUnit orgUnit = it.next(); groups.addAll(OpenCms.getOrgUnitManager().getGroups(cms, orgUnit.getName(), false)); } return groups; }
/** * Returns the list of groups to display.<p> * * @return the list of groups to display * * @throws CmsException if something goes wrong */ protected List<CmsGroup> getGroups() throws CmsException { return CmsPrincipal.filterCoreGroups(OpenCms.getOrgUnitManager().getGroups(getCms(), "", true)); }
/** * @see org.opencms.workplace.tools.accounts.A_CmsGroupsList#getGroups() */ @Override protected List<CmsGroup> getGroups() throws CmsException { return CmsPrincipal.filterCoreGroups(OpenCms.getOrgUnitManager().getGroups(getCms(), getParamOufqn(), false)); }
List<CmsGroup> groupsOrgUnit = OpenCms.getOrgUnitManager().getGroups(getCms(), ouFqn, false); Iterator<CmsGroup> itGroupsOrgUnit = groupsOrgUnit.iterator(); while (itGroupsOrgUnit.hasNext()) {
List<CmsGroup> groups = OpenCms.getOrgUnitManager().getGroups(cms, getOuFqn(), isIncludeSubOus()); for (Iterator<CmsGroup> i = groups.iterator(); i.hasNext();) { CmsGroup group = i.next();
List<CmsGroup> groups = OpenCms.getOrgUnitManager().getGroups(cms, getOuFqn(), isIncludeSubOus()); for (Iterator<CmsGroup> i = groups.iterator(); i.hasNext();) { CmsGroup group = i.next();
List<CmsGroup> allGroups = OpenCms.getOrgUnitManager().getGroups(getCms(), orgunit.getName(), false); for (int i = 0, l = allGroups.size(); i < l; i++) { CmsGroup group = allGroups.get(i);
List<CmsGroup> allGroups = OpenCms.getOrgUnitManager().getGroups(getCms(), orgunit.getName(), false); for (int i = 0, l = allGroups.size(); i < l; i++) { CmsGroup group = allGroups.get(i);