Reading all groups of the root organizational unit

From OpenCms Wiki
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