public abstract class MappingPolicy
extends java.lang.Object
These methods are intended for use in the Command Transform.
Constructor and Description |
---|
MappingPolicy() |
Modifier and Type | Method and Description |
---|---|
static com.novell.xml.xpath.NodeSet |
FirstPerReplica(com.novell.xml.xpath.NodeSet parent,
com.novell.xml.xpath.NodeSet fpr,
com.novell.nds.dirxml.driver.XdsQueryProcessor processor)
Returns a NodeSet containing a clone of each
<add-attr> or
<modify-attr> elements passed into it with its corresponding
first replica value. |
static com.novell.xml.xpath.NodeSet |
LastPerReplica(com.novell.xml.xpath.NodeSet parent,
com.novell.xml.xpath.NodeSet lpr,
com.novell.nds.dirxml.driver.XdsQueryProcessor processor)
Returns a NodeSet containing a clone of each
<add-attr> or
<modify-attr> elements passed into it with its corresponding
last replica value. |
public static com.novell.xml.xpath.NodeSet FirstPerReplica(com.novell.xml.xpath.NodeSet parent, com.novell.xml.xpath.NodeSet fpr, com.novell.nds.dirxml.driver.XdsQueryProcessor processor) throws com.novell.nds.dirxml.engine.VRDException
<add-attr>
or
<modify-attr>
elements passed into it with its corresponding
first replica value.
Should be used to alter the contents of <add>
or <modify>
events.
parent
- the <add>
or
<modify>
element;
if null
or empty, an empty NodeSet is returned;
<modify>
elements must have a src-entry-id
attribute value to
enable query-back capabilities; if more than one node is in the nodeset,
only the first is utilizedfpr
- the <add-attr>
or <modify-attr>
elements to clone; if null
or empty, an empty NodeSet is
returned; elements must have attr-name
attribute value for
<modify>
eventsprocessor
- the query processor used to determine first-per-replica
values for <modify>
events; may be null
for
<add>
eventsfpr
;
will not return null
; if query-back fails, fpr
is
returnedjava.lang.IllegalArgumentException
- if processor
is null
and parent
contains a <modify>
element;
if elements in fpr
are missing attr-name
attribute values and parent
contains a
<modify>
elementcom.novell.nds.dirxml.engine.VRDException
- if an DOMException is thrownpublic static com.novell.xml.xpath.NodeSet LastPerReplica(com.novell.xml.xpath.NodeSet parent, com.novell.xml.xpath.NodeSet lpr, com.novell.nds.dirxml.driver.XdsQueryProcessor processor) throws com.novell.nds.dirxml.engine.VRDException
<add-attr>
or
<modify-attr>
elements passed into it with its corresponding
last replica value.
Should be used to alter the contents of <add>
or <modify>
events.
parent
- the <add>
or
<modify>
element;
if null
or empty, an empty NodeSet is returned;
<modify>
elements must have a src-entry-id
attribute value to
enable query-back capabilities; if more than one node is in the nodeset,
only the first is utilizedlpr
- the <add-attr>
or <modify-attr>
elements to clone; if null
or empty, an empty NodeSet is
returned; elements must have attr-name
attribute value for
<modify>
eventsprocessor
- the query processor used to determine last-per-replica
values for <modify>
events; may be null
for
<add>
eventsfpr
;
will not return null
; if query-back fails, fpr
is
returnedjava.lang.IllegalArgumentException
- if processor
is null
and parent
contains a <modify>
element;
if elements in fpr
are missing attr-name
attribute values and parent
contains a
<modify>
elementcom.novell.nds.dirxml.engine.VRDException
- if an DOMException is thrown