Reading all groups of the root organizational unit

From OpenCms Wiki
Revision as of 18:16, 19 June 2008 by Kaabr (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The code below is valid to the 7.0.4 version.

Code

CmsOrgUnitManager oum = OpenCms.getOrgUnitManager();
List groups = oum.getGroups(myCmsObj,"", true);
Iterator iterator = groups.iterator();
while (iterator.hasNext()) {
       CmsGroup group = (CmsGroup)iterator.next();
       // Access the group information

}

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox