public class RootOrgUnitProvider extends AbstractLogEnabled implements Component, Serviceable
| Modifier and Type | Field and Description |
|---|---|
private AmetysObjectResolver |
_resolver |
static String |
ROLE
Avalon role.
|
| Constructor and Description |
|---|
RootOrgUnitProvider() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getChildOrgUnitIds(String orgUnitId,
boolean recursive)
Get the child orgunits of an orgunit
|
OrgUnit |
getRoot()
Returns the root
OrgUnit. |
String |
getRootId()
Get the root id
|
boolean |
isRoot(OrgUnit orgUnit)
Determines the given orgunit is the root orgunit
|
boolean |
isRoot(String id)
Determines the given id is the root orgunit id
|
void |
service(ServiceManager smanager) |
getLogger, setLoggerprivate AmetysObjectResolver _resolver
public RootOrgUnitProvider()
public void service(ServiceManager smanager) throws ServiceException
service in interface ServiceableServiceExceptionpublic boolean isRoot(String id)
id - the id to testpublic boolean isRoot(OrgUnit orgUnit)
orgUnit - the orgunit to testpublic Set<String> getChildOrgUnitIds(String orgUnitId, boolean recursive)
orgUnitId - The identifier of the main orgunitrecursive - true to children recursively