private abstract static class Utils.DirectoryHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
attrName
Attribute name to obtain.
|
Constructor and Description |
---|
DirectoryHelper(java.lang.String attrName)
Construct an instance and save the attribute name for future use.
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
getDirectoryNode(DirectoryService ds,
java.lang.String nodeId)
User-implemented method which queries the given directory service
for the attribute value of the given node ID and the returns the
result.
|
public DirectoryHelper(java.lang.String attrName)
attrName
- The name of the attribute to obtain.public abstract java.lang.Object getDirectoryNode(DirectoryService ds, java.lang.String nodeId)
The attribute name provided at construction time is the one to use during the query. This eliminates the need to pass the attribute name to the code to which the call is delegated.
ds
- A bound directory service instance. Must not be
null
.nodeId
- The full path of the node to obtain.