public class ScopeEnumerator extends Object implements Enumerator
Enumerator
for listing scopes supported in a LDAP query.Modifier and Type | Field and Description |
---|---|
private static String |
__CORE_IMPL_CATALOGUE |
private static Map<Object,I18nizableText> |
__SCOPES |
Constructor and Description |
---|
ScopeEnumerator() |
Modifier and Type | Method and Description |
---|---|
Map<Object,I18nizableText> |
getEntries()
Provides the enumerated values with their optional label.
|
I18nizableText |
getEntry(String value)
Retrieves a single label from a value.
|
static int |
parseScope(String scope)
Parses a scope config parameter into a
int for using it as
SearchControls . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfiguration
private static final String __CORE_IMPL_CATALOGUE
private static final Map<Object,I18nizableText> __SCOPES
public ScopeEnumerator()
public static int parseScope(String scope) throws IllegalArgumentException
int
for using it as
SearchControls
.scope
- the scope string representation.SearchControls.*_SCOPE
.IllegalArgumentException
- if the given scope is not valid.public I18nizableText getEntry(String value)
Enumerator
getEntry
in interface Enumerator
value
- the value.null
if not found.public Map<Object,I18nizableText> getEntries()
Enumerator
getEntries
in interface Enumerator