Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


oracle.irm.engine.types.core.classification
Class XPathClassificationFilter

java.lang.Object
  extended by oracle.irm.engine.types.core.classification.ClassificationFilter
      extended by oracle.irm.engine.types.core.classification.XPathClassificationFilter

All Implemented Interfaces:
Serializable

public class XPathClassificationFilter
extends ClassificationFilter
implements Serializable

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'].

XML Serialization

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>

See Also:
Serialized Form

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

XPathClassificationFilter

public XPathClassificationFilter()
No argument constructor.

XPathClassificationFilter

public XPathClassificationFilter(ClassificationSystemRef system,
                                 URI uri,
                                 String index,
                                 XPathExpression expression)
Constructor.

Method Detail

getExpression

public XPathExpression getExpression()
The XPath expression. The results of this expression are evaluated as be a boolean value.
Returns:
the value of the property.

setExpression

public void setExpression(XPathExpression value)
The XPath expression. The results of this expression are evaluated as be a boolean value.
Parameters:
value - the new value for the property.

Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


Copyright © 2011, Oracle. All rights reserved.