ID_ABSOLUTE, ID_RELATIVE, ID_RELATIVE_ACCOUNT, ID_RELATIVE_BOTH, ID_RELATIVE_SERVER
Constructor and Description |
---|
DirectoryServer() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
enumerateNodes(int search,
java.lang.String id)
Enumerates nodes from the directory as specified by the given
absolute or relative node ID.
|
boolean |
getBoolean(int search,
java.lang.String id,
boolean initial)
Access a data value from the directory as specified by the given
absolute or relative node ID.
|
char |
getChar(int search,
java.lang.String id,
char initial)
Access a data value from the directory as specified by the given
absolute or relative node ID.
|
double |
getDouble(int search,
java.lang.String id,
double initial)
Access a data value from the directory as specified by the given
absolute or relative node ID.
|
int |
getInt(int search,
java.lang.String id,
int initial)
Access a data value from the directory as specified by the given
absolute or relative node ID.
|
java.lang.String |
getString(int search,
java.lang.String id,
java.lang.String initial)
Access a data value from the directory as specified by the given
absolute or relative node ID.
|
java.util.List<java.lang.String> |
getStrings(int search,
java.lang.String id)
Get all
String attribute values from the directory as specified
by the given absolute or relative node ID. |
private Utils.DirScope |
searchType(int search)
Translate the integer search criteria into the version needed by the directory helpers.
|
public java.lang.String getString(int search, java.lang.String id, java.lang.String initial)
getString
in interface Directory
search
- Must be one of ID_ABSOLUTE
(if the given node
ID includes all paths from the root of the directory tree to
the node being read) or ID_RELATIVE
if the given
ID is only a relative portion which should be found via a
search through a standard set of search paths.id
- The node ID to retrieve.initial
- The initial value to return if a node of the proper type is
not found by the given node ID or if no node is found by the
given node ID.public java.util.List<java.lang.String> getStrings(int search, java.lang.String id)
String
attribute values from the directory as specified
by the given absolute or relative node ID.getStrings
in interface Directory
search
- Must be one of ID_ABSOLUTE
(if the given node
ID includes all paths from the root of the directory tree to
the node being read) or ID_RELATIVE
if the given
ID is only a relative portion which should be found via a
search through a standard set of search paths.id
- The node ID to retrieve.public char getChar(int search, java.lang.String id, char initial)
getChar
in interface Directory
search
- Must be one of ID_ABSOLUTE
(if the given node
ID includes all paths from the root of the directory tree to
the node being read) or ID_RELATIVE
if the given
ID is only a relative portion which should be found via a
search through a standard set of search paths.id
- The node ID to retrieve.initial
- The initial value to return if a node of the proper type is
not found by the given node ID or if no node is found by the
given node ID.public int getInt(int search, java.lang.String id, int initial)
getInt
in interface Directory
search
- Must be one of ID_ABSOLUTE
(if the given node
ID includes all paths from the root of the directory tree to
the node being read) or ID_RELATIVE
if the given
ID is only a relative portion which should be found via a
search through a standard set of search paths.id
- The node ID to retrieve.initial
- The initial value to return if a node of the proper type is
not found by the given node ID or if no node is found by the
given node ID.public double getDouble(int search, java.lang.String id, double initial)
getDouble
in interface Directory
search
- Must be one of ID_ABSOLUTE
(if the given node
ID includes all paths from the root of the directory tree to
the node being read) or ID_RELATIVE
if the given
ID is only a relative portion which should be found via a
search through a standard set of search paths.id
- The node ID to retrieve.initial
- The initial value to return if a node of the proper type is
not found by the given node ID or if no node is found by the
given node ID.public boolean getBoolean(int search, java.lang.String id, boolean initial)
getBoolean
in interface Directory
search
- Must be one of ID_ABSOLUTE
(if the given node
ID includes all paths from the root of the directory tree to
the node being read) or ID_RELATIVE
if the given
ID is only a relative portion which should be found via a
search through a standard set of search paths.id
- The node ID to retrieve.initial
- The initial value to return if a node of the proper type is
not found by the given node ID or if no node is found by the
given node ID.public java.util.List<java.lang.String> enumerateNodes(int search, java.lang.String id)
enumerateNodes
in interface Directory
search
- Must be one of ID_ABSOLUTE
(if the given node
ID includes all paths from the root of the directory tree to
the node being read) or ID_RELATIVE
if the given
ID is only a relative portion which should be found via a
search through a standard set of search paths.id
- The node ID to retrieve.private Utils.DirScope searchType(int search)
search
- Directory.ID_ABSOLUTE
, Directory.ID_RELATIVE
,
Directory.ID_RELATIVE_ACCOUNT
or Directory.ID_RELATIVE_SERVER
.