public class OrgUnitUAICodeEnumerator extends Object implements Enumerator<String>, Serviceable, Enumerator
OrgUnit
s using UAI code as unique identifierModifier and Type | Field and Description |
---|---|
protected RootOrgUnitProvider |
_orgUnitProvider
The OrgUnit root provider
|
protected AmetysObjectResolver |
_resolver
The Ametys object resolver
|
Constructor and Description |
---|
OrgUnitUAICodeEnumerator() |
Modifier and Type | Method and Description |
---|---|
private Map<String,I18nizableText> |
_getSubOrgUnits(OrgUnit orgUnit) |
Map<String,Object> |
getConfiguration()
Get the configuration of this enumerator
|
Map<Object,I18nizableText> |
getEntries()
Provides the enumerated values with their optional label.
|
I18nizableText |
getEntry(String value)
Retrieves a single label from a value.
|
Map<String,I18nizableText> |
getTypedEntries()
Provides the enumerated values with their optional label.
|
void |
service(ServiceManager smanager) |
protected AmetysObjectResolver _resolver
protected RootOrgUnitProvider _orgUnitProvider
public OrgUnitUAICodeEnumerator()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
ServiceException
public Map<Object,I18nizableText> getEntries() throws Exception
Enumerator
getEntries
in interface Enumerator
Exception
- if an error occurs.public Map<String,I18nizableText> getTypedEntries() throws Exception
Enumerator
Exception
- if an error occurs.
TODO NEWATTRIBUTEAPI: rename this method when Enumerator
will be removedprivate Map<String,I18nizableText> _getSubOrgUnits(OrgUnit orgUnit)
public I18nizableText getEntry(String value) throws Exception
Enumerator
getEntry
in interface Enumerator
value
- the value.null
if not found.Exception
- if an error occurs.public Map<String,Object> getConfiguration()
Enumerator
getConfiguration
in interface Enumerator