Skip navigation links

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

E12907-03


oracle.irm.engine.core.classification
Interface XPathClassificationFilter

All Superinterfaces:
ClassificationFilter

public interface XPathClassificationFilter
extends ClassificationFilter

An XPath based classification filter. 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'].

Creation

Instances of X Path Classification Filter objects can be created using the following factory style method(s).

XPathClassificationFilter object = createXPathClassificationFilter(
    system,
    uri,
    index,
    expression);

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>


Method Summary
 XPathExpression getExpression()
          The XPath expression.

 

Methods inherited from interface oracle.irm.engine.core.classification.ClassificationFilter
getIndex, getSystem, getUri, isApplicable

 

Method Detail

getExpression

XPathExpression getExpression()
The XPath expression. The results of this expression are evaluated as be a boolean value.
Returns:
the value of the property. This method will never return null.

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.