public class XdsQueryProcessor
extends java.lang.Object
The DirXML engine passed two stylesheet parameters to an XSLT stylesheet rule.
Both parameters are of type XdsQueryProcessor
. One is named srcQueryProcessor and
will query the source of the current transaction (NDS for subscriber-channel transactions
and the app shim for publisher-channel transactions) and the other is named
destQueryProcessor and will query the destiniation of the current transaction (the
app shim for subscriber-channel transactions and NDS for publisher channel transactions).
Constructor and Description |
---|
XdsQueryProcessor(com.novell.nds.dirxml.engine.XdsQueryProcessor processor,
com.novell.nds.dirxml.engine.VRDExceptionListener listener)
Create an
XdsQueryProcessor . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNamedPassword(java.lang.String passwordName)
Issue a <get-named-password> command.
|
org.w3c.dom.Document |
query(org.w3c.dom.Document queryDoc)
Perform an XDS query contained in the passed document.
|
org.w3c.dom.Document |
query(com.novell.xml.xpath.ExpressionValue queryValue)
Perform an XDS query contained in the passed ExpressionValue.
|
org.w3c.dom.Document |
query(com.novell.xml.xpath.NodeSet querySet)
Perform an XDS query contained in the passed XPath nodeset.
|
org.w3c.dom.Document |
query(com.novell.xsl.process.ResultTreeFragment queryFragment)
Perform an XDS query contained in the passed XSLT result tree fragment.
|
org.w3c.dom.Element |
readObject(java.lang.String association,
java.lang.String destDN,
java.lang.String className,
java.lang.String attrs)
Perform an XDS entry scoped query based on association value, dest-dn, and list of attributes.
|
com.novell.xml.xpath.NodeSet |
search(java.lang.String scope,
java.lang.String association,
java.lang.String destDN,
java.lang.String className,
java.lang.String searchAttr,
java.lang.String searchValue,
java.lang.String attrs)
Perform an XDS query based on association value, dest-dn, scope, object-class, one non-structure attribute value, and list of attributes.
|
public XdsQueryProcessor(com.novell.nds.dirxml.engine.XdsQueryProcessor processor, com.novell.nds.dirxml.engine.VRDExceptionListener listener)
XdsQueryProcessor
. Since the engine version of XdsQueryProcessor
can
only be created by the engine, this effectively limits instance creation of
the query processor to the engine.processor
- The engine query processor that will actually perform the querylistener
- The object to notify in case of an exceptionpublic org.w3c.dom.Document query(org.w3c.dom.Document queryDoc) throws com.novell.nds.dirxml.engine.VRDException
queryDoc
- The XDS document containing the query to perform.com.novell.nds.dirxml.engine.VRDException
public org.w3c.dom.Document query(com.novell.xsl.process.ResultTreeFragment queryFragment) throws com.novell.nds.dirxml.engine.VRDException
queryFragment
- The XSLT result tree fragment containing the query to perform. This must
be a well-formed XDS document from the fragment root down.com.novell.nds.dirxml.engine.VRDException
public org.w3c.dom.Document query(com.novell.xml.xpath.NodeSet querySet) throws com.novell.nds.dirxml.engine.VRDException
querySet
- The XPath nodeset the query to perform. This must
be a well-formed XDS document from the fragment root down.com.novell.nds.dirxml.engine.VRDException
public org.w3c.dom.Document query(com.novell.xml.xpath.ExpressionValue queryValue) throws com.novell.nds.dirxml.engine.VRDException, com.novell.xml.xpath.XPathConversionException
queryValue
- The NodeSet or ResultTree fragment containing XdsQuerycom.novell.nds.dirxml.engine.VRDException
com.novell.xml.xpath.XPathConversionException
public org.w3c.dom.Element readObject(java.lang.String association, java.lang.String destDN, java.lang.String className, java.lang.String attrs) throws com.novell.nds.dirxml.engine.VRDException
association
or destDN
can be null
or empty, depending on what queried application needsassociation
- association value to use for querydestDN
- dest-dn value to use for queryclassName
- object class name (to be used for schema mapping purposes)attrs
- comma separated list of attributes to read, empty to read no attributes, * to read all attributesnull
if object not found.com.novell.nds.dirxml.engine.VRDException
public com.novell.xml.xpath.NodeSet search(java.lang.String scope, java.lang.String association, java.lang.String destDN, java.lang.String className, java.lang.String searchAttr, java.lang.String searchValue, java.lang.String attrs) throws com.novell.nds.dirxml.engine.VRDException
association
or destDN
can be the empty string, depending on what queried application needsscope
- "subtree"
or "subordinates"
association
- association value to use for querydestDN
- dest-dn value to use for queryclassName
- object class name (empty string to search all classes)searchAttr
- attribute to search on (empty string to not limit by attribute value)searchValue
- string value to search on for search attrattrs
- comma separated list of attributes to read, empty to read no attributes, * to read all attributescom.novell.nds.dirxml.engine.VRDException
public java.lang.String getNamedPassword(java.lang.String passwordName) throws com.novell.nds.dirxml.engine.VRDException
It is not possible to distinguish between an empty password
and an error result using this method. If this is required build the
XDS document, use the query()
method, and parse the result document.
passwordName
- name or key of password to retrieve.null
.com.novell.nds.dirxml.engine.VRDException