|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.irm.engine.types.core.classification.ClassificationFilter
oracle.irm.engine.types.core.classification.XPathClassificationFilter
public class XPathClassificationFilter
X Path Classification Filter type. An XPath classification filter uses a boolean XPath expression to filter out applicable classifications. The classification Cookie
is transformed into an XML document and then compared against the boolean XPath expression. This can be used as a generic way of filtering out Classification
instances by running an expression against the XML based cookie.
For example, the context classification system uses an XPath that matches on the Context
UUID. e.g. the following XPath expression would match all sealed content that had a context cookie with a context UUID of 37bbe0fa-9eb4-462e-85b6-9796610f1b20.
context:ContextCookie/context[uuid='37bbe0fa-9eb4-462e-85b6-9796610f1b20'].
X Path Classification Filter instances can be serialized as an XML document. This XML document can also be used to recreate a X Path Classification Filter object. The following XML document shows an example X Path Classification Filter in XML form.
<?xml version="1.0" encoding="UTF-8"?>
<core:XPathClassificationFilter xmlns:core="http://xmlns.oracle.com/irm/core">
<system>
<uuid>185abb6d-13cd-45a2-aabd-4db886b97c5c</uuid>
</system>
<uri>http://irm.example.com/irm_desktop</uri>
<index>value</index>
<expression>
<namespaceContexts xmlns:example1="http://www.example.com">example1:example</namespaceContexts>
<namespaceContexts xmlns:example2="http://www.example2.com">example2:example</namespaceContexts>
<value>example1:node[@name='value']</value>
</expression>
</core:XPathClassificationFilter>
Constructor Summary | |
---|---|
XPathClassificationFilter() No argument constructor. |
|
XPathClassificationFilter(ClassificationSystemRef system, URI uri, String index, XPathExpression expression) Constructor. |
Method Summary | |
---|---|
XPathExpression |
getExpression() The XPath expression. |
void |
setExpression(XPathExpression value) The XPath expression. |
Methods inherited from class oracle.irm.engine.types.core.classification.ClassificationFilter |
---|
getIndex, getSystem, getUri, setIndex, setSystem, setUri |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XPathClassificationFilter()
public XPathClassificationFilter(ClassificationSystemRef system, URI uri, String index, XPathExpression expression)
Method Detail |
---|
public XPathExpression getExpression()
public void setExpression(XPathExpression value)
value
- the new value for the property.
|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |