public static class DirectoryEdit.ServerDirectory extends HighLevelObject
Modifier and Type | Field and Description |
---|---|
private RoutingKey |
addNodeBitFieldKey
RoutingKey for addNodeBitField() method
|
private RoutingKey |
addNodeBitSelectorKey
RoutingKey for addNodeBitSelector() method
|
private RoutingKey |
addNodeBooleanKey
RoutingKey for addNodeBoolean() method
|
private RoutingKey |
addNodeByteArrayKey
RoutingKey for addNodeByteArray() method
|
private RoutingKey |
addNodeDateKey
RoutingKey for addNodeDate() method
|
private RoutingKey |
addNodeDoubleKey
RoutingKey for addNodeDouble() method
|
private RoutingKey |
addNodeIntegerKey
RoutingKey for addNodeInteger() method
|
private RoutingKey |
addNodeKey
RoutingKey for addNode() method
|
private RoutingKey |
addNodeStringKey
RoutingKey for addNodeString() method
|
private RoutingKey |
addNodeTimeKey
RoutingKey for addNodeTime() method
|
private RoutingKey |
bindKey
RoutingKey for bind() method
|
private RoutingKey |
closeBatchKey
RoutingKey for closeBatch() method
|
private RoutingKey |
deleteNodeAttributeKey
RoutingKey for deleteNodeAttribute() method
|
private RoutingKey |
deleteNodeAttrValueKey
RoutingKey for deleteNodeAttributeValue() method
|
private RoutingKey |
deleteNodeKey
RoutingKey for deleteNode() method
|
private RoutingKey |
enumNodesKey
RoutingKey for enumerateNodes() method
|
private RoutingKey |
getClassNodeAttrKey
RoutingKey for getClassNodeAttribute() method
|
private RoutingKey |
getClassNodeAttrsKey
RoutingKey for getClassNodeAttributes() method
|
private RoutingKey |
getNodeAttrsKey
RoutingKey for getNodeAttributes() method
|
private RoutingKey |
getNodeBitFieldsKey
RoutingKey for getNodeBitFields() method
|
private RoutingKey |
getNodeBitSelectorsKey
RoutingKey for getNodeBitSelectors() method
|
private RoutingKey |
getNodeBooleansKey
RoutingKey for getNodeBooleans() method
|
private RoutingKey |
getNodeByteArraysKey
RoutingKey for getNodeByteArrays() method
|
private RoutingKey |
getNodeClassKey
RoutingKey for getNodeClass() method
|
private RoutingKey |
getNodeDatesKey
RoutingKey for getNodeDates() method
|
private RoutingKey |
getNodeDoublesKey
RoutingKey for getNodeDoubles() method
|
private RoutingKey |
getNodeIntegersKey
RoutingKey for getNodeIntegers() method
|
private RoutingKey |
getNodeStringsKey
RoutingKey for getNodeStrings() method
|
private RoutingKey |
getNodeTimesKey
RoutingKey for getNodeTimes() method
|
(package private) static java.lang.String |
GROUP
Group of exported methods which will be used for testing
|
private RoutingKey |
moveNodeKey
RoutingKey for moveNode() method
|
private RoutingKey |
openBatchKey
RoutingKey for openBatch() method
|
private RoutingKey |
setNodeBitFieldKey
RoutingKey for setNodeBitField() method
|
private RoutingKey |
setNodeBitSelectorKey
RoutingKey for setNodeBitSelector() method
|
private RoutingKey |
setNodeBooleanKey
RoutingKey for setNodeBoolean() method
|
private RoutingKey |
setNodeByteArrayKey
RoutingKey for setNodeByteArray() method
|
private RoutingKey |
setNodeDateKey
RoutingKey for setNodeDate() method
|
private RoutingKey |
setNodeDoubleKey
RoutingKey for setNodeDouble() method
|
private RoutingKey |
setNodeIntegerKey
RoutingKey for setNodeInteger() method
|
private RoutingKey |
setNodeStringKey
RoutingKey for setNodeString() method
|
private RoutingKey |
setNodeTimeKey
RoutingKey for setNodeTime() method
|
private RoutingKey |
unbindKey
RoutingKey for unbind() method
|
session
Constructor and Description |
---|
ServerDirectory(Session session)
Construct an HLO using provided instance of the
Queue . |
Modifier and Type | Method and Description |
---|---|
boolean |
addNode(java.lang.String nodeId,
java.lang.String nodeClass,
Attribute[] data)
Add new node of specified class with specified ID.
|
boolean |
addNodeBitField(java.lang.String nodeId,
java.lang.String name,
BitField value)
Add new
BitField value to the attribute. |
boolean |
addNodeBitSelector(java.lang.String nodeId,
java.lang.String name,
BitSelector value)
Add new
BitSelector value to the attribute. |
boolean |
addNodeBoolean(java.lang.String nodeId,
java.lang.String name,
boolean value)
Add new
boolean value to the attribute. |
boolean |
addNodeByteArray(java.lang.String nodeId,
java.lang.String name,
byte[] value)
Add new
byte[] value to the attribute. |
boolean |
addNodeDate(java.lang.String nodeId,
java.lang.String name,
DateValue value)
Add new
DateValue value to the attribute. |
boolean |
addNodeDouble(java.lang.String nodeId,
java.lang.String name,
double value)
Add new
Double value to the attribute. |
boolean |
addNodeInteger(java.lang.String nodeId,
java.lang.String name,
int value)
Add new
int value to the attribute. |
boolean |
addNodeString(java.lang.String nodeId,
java.lang.String name,
java.lang.String value)
Add new
String value to the attribute. |
boolean |
addNodeTime(java.lang.String nodeId,
java.lang.String name,
TimeValue value)
Add new
TimeValue value to the attribute. |
boolean |
bind()
Binds to the directory.
|
boolean |
closeBatch(boolean disposition)
Closes the currently open editing batch.
|
boolean |
deleteNode(java.lang.String nodeId)
Remove specified node from the directory (unless node has children).
|
boolean |
deleteNodeAttribute(java.lang.String nodeId,
java.lang.String name)
Remove whole node attribute.
|
boolean |
deleteNodeAttributeValue(java.lang.String nodeId,
java.lang.String name,
int index)
Remove particular value from the node attribute.
|
java.lang.String[] |
enumerateNodes(java.lang.String nodeId)
Enumerates all children nodes of a node.
|
NodeAttribute |
getClassNodeAttribute(java.lang.String className,
java.lang.String name)
Gets NodeAttribute structure for the specified attribute.
|
NodeAttribute[] |
getClassNodeAttributes(java.lang.String className)
Generate an array of
NodeAttribute structures for the
all attributes defined for the node class. |
Attribute[] |
getNodeAttributes(java.lang.String nodeId)
Reads all attributes of a node.
|
BitField[] |
getNodeBitFields(java.lang.String nodeId,
java.lang.String name)
Gets all
BitField attribute values for specified node
ID. |
BitSelector[] |
getNodeBitSelectors(java.lang.String nodeId,
java.lang.String name)
Gets all
BitSelector attribute values for specified
node ID. |
java.lang.Boolean[] |
getNodeBooleans(java.lang.String nodeId,
java.lang.String name)
Gets all
Boolean attribute values for specified node
ID. |
byte[][] |
getNodeByteArrays(java.lang.String nodeId,
java.lang.String name)
Gets all
ByteArray attribute values for specified node
ID. |
java.lang.String |
getNodeClass(java.lang.String nodeId)
Queries the object class name of a node.
|
DateValue[] |
getNodeDates(java.lang.String nodeId,
java.lang.String name)
Gets all
Date attribute values for specified node ID. |
java.lang.Double[] |
getNodeDoubles(java.lang.String nodeId,
java.lang.String name)
Gets all
Double attribute values for specified node
ID. |
java.lang.Integer[] |
getNodeIntegers(java.lang.String nodeId,
java.lang.String name)
Gets all
Integer attribute values for specified node
ID. |
java.lang.String[] |
getNodeStrings(java.lang.String nodeId,
java.lang.String name)
Gets all
String attribute values for specified node
ID. |
TimeValue[] |
getNodeTimes(java.lang.String nodeId,
java.lang.String name)
Gets all
Time attribute values for specified node ID. |
boolean |
moveNode(java.lang.String nodeId,
java.lang.String newId)
Renames the existing object, specified by nodeId, or moves it to a
different location.
|
boolean |
openBatch(java.lang.String nodeId)
Opens an editing batch.
|
boolean |
setNodeBitField(java.lang.String nodeId,
java.lang.String name,
int index,
BitField value)
Set
BitField attribute value for specified node ID,
attribute name and index. |
boolean |
setNodeBitSelector(java.lang.String nodeId,
java.lang.String name,
int index,
BitSelector value)
Set
BitSelector attribute value for specified node ID,
attribute name and index. |
boolean |
setNodeBoolean(java.lang.String nodeId,
java.lang.String name,
int index,
boolean value)
Set
boolean attribute value for specified node ID,
attribute name and index. |
boolean |
setNodeByteArray(java.lang.String nodeId,
java.lang.String name,
int index,
byte[] value)
Set
byte[] attribute value for specified node ID,
attribute name and index. |
boolean |
setNodeDate(java.lang.String nodeId,
java.lang.String name,
int index,
DateValue value)
Set
DateValue attribute value for specified node ID,
attribute name and index. |
boolean |
setNodeDouble(java.lang.String nodeId,
java.lang.String name,
int index,
double value)
Set
double attribute value for specified node ID,
attribute name and index. |
boolean |
setNodeInteger(java.lang.String nodeId,
java.lang.String name,
int index,
int value)
Set
int attribute value for specified node ID,
attribute name and index. |
boolean |
setNodeString(java.lang.String nodeId,
java.lang.String name,
int index,
java.lang.String value)
Set
String attribute value for specified node ID,
attribute name and index. |
boolean |
setNodeTime(java.lang.String nodeId,
java.lang.String name,
int index,
TimeValue value)
Set
TimeValue attribute value for specified node ID,
attribute name and index. |
boolean |
unbind()
Unbinds from directory service.
|
forward, getKey, getTimeout, setTimeout, transact
static final java.lang.String GROUP
private RoutingKey addNodeBitFieldKey
private RoutingKey addNodeBitSelectorKey
private RoutingKey addNodeBooleanKey
private RoutingKey addNodeByteArrayKey
private RoutingKey addNodeDateKey
private RoutingKey addNodeDoubleKey
private RoutingKey addNodeIntegerKey
private RoutingKey addNodeKey
private RoutingKey addNodeStringKey
private RoutingKey addNodeTimeKey
private RoutingKey bindKey
private RoutingKey closeBatchKey
private RoutingKey deleteNodeAttributeKey
private RoutingKey deleteNodeAttrValueKey
private RoutingKey deleteNodeKey
private RoutingKey enumNodesKey
private RoutingKey getClassNodeAttrKey
private RoutingKey getClassNodeAttrsKey
private RoutingKey getNodeAttrsKey
private RoutingKey getNodeBitFieldsKey
private RoutingKey getNodeBitSelectorsKey
private RoutingKey getNodeBooleansKey
private RoutingKey getNodeByteArraysKey
private RoutingKey getNodeClassKey
private RoutingKey getNodeDatesKey
private RoutingKey getNodeDoublesKey
private RoutingKey getNodeIntegersKey
private RoutingKey getNodeStringsKey
private RoutingKey getNodeTimesKey
private RoutingKey moveNodeKey
private RoutingKey openBatchKey
private RoutingKey setNodeBitFieldKey
private RoutingKey setNodeBitSelectorKey
private RoutingKey setNodeBooleanKey
private RoutingKey setNodeByteArrayKey
private RoutingKey setNodeDateKey
private RoutingKey setNodeDoubleKey
private RoutingKey setNodeIntegerKey
private RoutingKey setNodeStringKey
private RoutingKey setNodeTimeKey
private RoutingKey unbindKey
ServerDirectory(Session session)
Queue
.session
- Properly initialized session.public boolean addNode(java.lang.String nodeId, java.lang.String nodeClass, Attribute[] data) throws java.lang.Exception
nodeId
- Node name.nodeClass
- Node class name.data
- A list of the attributes.true
if operation was successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean addNodeBitField(java.lang.String nodeId, java.lang.String name, BitField value) throws java.lang.Exception
BitField
value to the attribute.nodeId
- Node identifier.name
- Attribute name.value
- New value for the attribute variable.true
is operation is successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean addNodeBitSelector(java.lang.String nodeId, java.lang.String name, BitSelector value) throws java.lang.Exception
BitSelector
value to the attribute.nodeId
- Node identifier.name
- Attribute name.value
- New value for the attribute variable.true
is operation is successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean addNodeBoolean(java.lang.String nodeId, java.lang.String name, boolean value) throws java.lang.Exception
boolean
value to the attribute.nodeId
- Node identifier.name
- Attribute name.value
- New value for the attribute variable.true
is operation is successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean addNodeByteArray(java.lang.String nodeId, java.lang.String name, byte[] value) throws java.lang.Exception
byte[]
value to the attribute.nodeId
- Node identifier.name
- Attribute name.value
- New value for the attribute variable.true
is operation is successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean addNodeDate(java.lang.String nodeId, java.lang.String name, DateValue value) throws java.lang.Exception
DateValue
value to the attribute.nodeId
- Node identifier.name
- Attribute name.value
- New value for the attribute variable.true
is operation is successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean addNodeDouble(java.lang.String nodeId, java.lang.String name, double value) throws java.lang.Exception
Double
value to the attribute.nodeId
- Node identifier.name
- Attribute name.value
- New value for the attribute variable.true
is operation is successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean addNodeInteger(java.lang.String nodeId, java.lang.String name, int value) throws java.lang.Exception
int
value to the attribute.nodeId
- Node identifier.name
- Attribute name.value
- New value for the attribute variable.true
is operation is successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean addNodeString(java.lang.String nodeId, java.lang.String name, java.lang.String value) throws java.lang.Exception
String
value to the attribute.nodeId
- Node identifier.name
- Attribute name.value
- New value for the attribute variable.true
is operation is successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean addNodeTime(java.lang.String nodeId, java.lang.String name, TimeValue value) throws java.lang.Exception
TimeValue
value to the attribute.nodeId
- Node identifier.name
- Attribute name.value
- New value for the attribute variable.true
is operation is successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean bind() throws java.lang.Exception
true
is operation is successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean closeBatch(boolean disposition) throws java.lang.Exception
disposition
- true if committing, false otherwisejava.lang.Exception
- Forwarded from the remote method.public boolean deleteNode(java.lang.String nodeId) throws java.lang.Exception
nodeId
- Node identifier.true
if operation was successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean deleteNodeAttribute(java.lang.String nodeId, java.lang.String name) throws java.lang.Exception
nodeId
- Node name.name
- Attribute name.true
if operation was successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean deleteNodeAttributeValue(java.lang.String nodeId, java.lang.String name, int index) throws java.lang.Exception
nodeId
- Node name.name
- Attribute name.index
- Attribute value index.true
if operation was successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public java.lang.String[] enumerateNodes(java.lang.String nodeId) throws java.lang.Exception
nodeId
- Node namejava.lang.Exception
- Forwarded from the remote method.public NodeAttribute getClassNodeAttribute(java.lang.String className, java.lang.String name) throws java.lang.Exception
className
- Object Class name.name
- Object Class attribute name.NodeAttribute
which describes
specified attribute or null
if no such object
class or attribute name.java.lang.Exception
- Forwarded from the remote method.public NodeAttribute[] getClassNodeAttributes(java.lang.String className) throws java.lang.Exception
NodeAttribute
structures for the
all attributes defined for the node class. Note that since these
instances of NodeAttribute
are not attached to
particular instance of Attribute
, information about
number of the values assigned to the attribute is incorrect. The
purpose of this method is to create new attributes.className
- Object Class name.NodeAttribute
instances which
describe attributes of node or null
if no such
object class or attributes defined for the class.java.lang.Exception
- Forwarded from the remote method.public Attribute[] getNodeAttributes(java.lang.String nodeId) throws java.lang.Exception
nodeId
- Node namejava.lang.Exception
- Forwarded from the remote method.public BitField[] getNodeBitFields(java.lang.String nodeId, java.lang.String name) throws java.lang.Exception
BitField
attribute values for specified node
ID.nodeId
- Node identifier.name
- Attribute name.java.lang.Exception
- Forwarded from the remote method.public BitSelector[] getNodeBitSelectors(java.lang.String nodeId, java.lang.String name) throws java.lang.Exception
BitSelector
attribute values for specified
node ID.nodeId
- Node identifier.name
- Attribute name.java.lang.Exception
- Forwarded from the remote method.public java.lang.Boolean[] getNodeBooleans(java.lang.String nodeId, java.lang.String name) throws java.lang.Exception
Boolean
attribute values for specified node
ID.nodeId
- Node identifier.name
- Attribute name.java.lang.Exception
- Forwarded from the remote method.public byte[][] getNodeByteArrays(java.lang.String nodeId, java.lang.String name) throws java.lang.Exception
ByteArray
attribute values for specified node
ID.nodeId
- Node identifier.name
- Attribute name.java.lang.Exception
- Forwarded from the remote method.public java.lang.String getNodeClass(java.lang.String nodeId) throws java.lang.Exception
nodeId
- Node namejava.lang.Exception
- Forwarded from the remote method.public DateValue[] getNodeDates(java.lang.String nodeId, java.lang.String name) throws java.lang.Exception
Date
attribute values for specified node ID.nodeId
- Node identifier.name
- Attribute name.java.lang.Exception
- Forwarded from the remote method.public java.lang.Double[] getNodeDoubles(java.lang.String nodeId, java.lang.String name) throws java.lang.Exception
Double
attribute values for specified node
ID.nodeId
- Node identifier.name
- Attribute name.java.lang.Exception
- Forwarded from the remote method.public java.lang.Integer[] getNodeIntegers(java.lang.String nodeId, java.lang.String name) throws java.lang.Exception
Integer
attribute values for specified node
ID.nodeId
- Node identifier.name
- Attribute name.java.lang.Exception
- Forwarded from the remote method.public java.lang.String[] getNodeStrings(java.lang.String nodeId, java.lang.String name) throws java.lang.Exception
String
attribute values for specified node
ID.nodeId
- Node identifier.name
- Attribute name.java.lang.Exception
- Forwarded from the remote method.public TimeValue[] getNodeTimes(java.lang.String nodeId, java.lang.String name) throws java.lang.Exception
Time
attribute values for specified node ID.nodeId
- Node identifier.name
- Attribute name.java.lang.Exception
- Forwarded from the remote method.public boolean moveNode(java.lang.String nodeId, java.lang.String newId) throws java.lang.Exception
nodeId
- An ID of the node to move.newId
- The desired new location of the node.true
is operation is successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean openBatch(java.lang.String nodeId) throws java.lang.Exception
nodeId
- Node specifying directory branch to opentrue
is operation is successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean setNodeBitField(java.lang.String nodeId, java.lang.String name, int index, BitField value) throws java.lang.Exception
BitField
attribute value for specified node ID,
attribute name and index.nodeId
- Node identifier.name
- Attribute name.index
- Index of the value to retrieve.value
- New value for the attribute variable.true
is operation is successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean setNodeBitSelector(java.lang.String nodeId, java.lang.String name, int index, BitSelector value) throws java.lang.Exception
BitSelector
attribute value for specified node ID,
attribute name and index.nodeId
- Node identifier.name
- Attribute name.index
- Index of the value to retrieve.value
- New value for the attribute variable.true
is operation is successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean setNodeBoolean(java.lang.String nodeId, java.lang.String name, int index, boolean value) throws java.lang.Exception
boolean
attribute value for specified node ID,
attribute name and index.nodeId
- Node identifier.name
- Attribute name.index
- Index of the value to retrieve.value
- New value for the attribute variable.true
is operation is successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean setNodeByteArray(java.lang.String nodeId, java.lang.String name, int index, byte[] value) throws java.lang.Exception
byte[]
attribute value for specified node ID,
attribute name and index.nodeId
- Node identifier.name
- Attribute name.index
- Index of the value to retrieve.value
- New value for the attribute variable.true
is operation is successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean setNodeDate(java.lang.String nodeId, java.lang.String name, int index, DateValue value) throws java.lang.Exception
DateValue
attribute value for specified node ID,
attribute name and index.nodeId
- Node identifier.name
- Attribute name.index
- Index of the value to retrieve.value
- New value for the attribute variable.true
is operation is successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean setNodeDouble(java.lang.String nodeId, java.lang.String name, int index, double value) throws java.lang.Exception
double
attribute value for specified node ID,
attribute name and index.nodeId
- Node identifier.name
- Attribute name.index
- Index of the value to retrieve.value
- New value for the attribute variable.true
is operation is successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean setNodeInteger(java.lang.String nodeId, java.lang.String name, int index, int value) throws java.lang.Exception
int
attribute value for specified node ID,
attribute name and index.nodeId
- Node identifier.name
- Attribute name.index
- Index of the value to retrieve.value
- New value for the attribute variable.true
is operation is successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean setNodeString(java.lang.String nodeId, java.lang.String name, int index, java.lang.String value) throws java.lang.Exception
String
attribute value for specified node ID,
attribute name and index.nodeId
- Node identifier.name
- Attribute name.index
- Index of the value to retrieve.value
- New value for the attribute variable.true
is operation is successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean setNodeTime(java.lang.String nodeId, java.lang.String name, int index, TimeValue value) throws java.lang.Exception
TimeValue
attribute value for specified node ID,
attribute name and index.nodeId
- Node identifier.name
- Attribute name.index
- Index of the value to retrieve.value
- New value for the attribute variable.true
is operation is successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.public boolean unbind() throws java.lang.Exception
true
is operation is successful and
false
otherwise.java.lang.Exception
- Forwarded from the remote method.