Package org.opencms.ui.apps.user
Class CmsOUHandler
java.lang.Object
org.opencms.ui.apps.user.CmsOUHandler
Ou Handler.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet base ou for given manageable ous.getManagableOUs
(CmsObject cms) Gets List of managable OU names for the current user.boolean
isOUManagable
(String ou) Checks if given ou is manageable.boolean
isParentOfManagableOU
(String name) Checks if given ou is parent of a managable ou.
-
Constructor Details
-
CmsOUHandler
Public constructor.- Parameters:
cms
- CmsObject
-
-
Method Details
-
getManagableOUs
Gets List of managable OU names for the current user.- Parameters:
cms
- CmsObject- Returns:
- List of String
-
getBaseOU
Get base ou for given manageable ous.- Returns:
- Base ou (may be outside of given ou)
-
isOUManagable
Checks if given ou is manageable.- Parameters:
ou
- to check- Returns:
- true is it is manageable
-
isParentOfManagableOU
Checks if given ou is parent of a managable ou.- Parameters:
name
- to check- Returns:
- boolean
-