|
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 |
public interface ClassificationFilter
Classification filtering. A classification filter is a way of identifying a set of classifications. The classification filter is used by License
algorithms to relate license use to content. Content contains a Classification
, a license contains the filter. A license can be used if it's classification filter matches the classification embedded in the sealed content.
Classification Filter instances can be serialized as an XML document. This XML document can also be used to recreate a Classification Filter object. The following XML document shows an example 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>
<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='hello']</value>
</expression>
</core:XPathClassificationFilter>
Method Summary | |
---|---|
String |
getIndex() Classification filter index. |
ClassificationSystem |
getSystem() The classification system. |
URI |
getUri() Server URI. |
boolean |
isApplicable(Classification classification) Check to see if a classification is applicable for this filter. |
Method Detail |
---|
ClassificationSystem getSystem()
System
of the classification for this filter to match.URI getUri()
Classification
contains a Uri
and it is this URI that is used to contact a server to obtain licenses and keys.Classification
that exactly matches on Uri
value.String getIndex()
Classification
is extracted from the public header and checked against a set of available licenses. If the set of licenses being searched is large this process can take a long time. Each license is asked are you applicable to this classification? The search time linearly increases with the number of licenses. To improve performance during such scenarios an optional index can be provided on the classification filter. When licenses are stored they can be indexed with the index value and searches can be optimized by matching related licenses.Cookie
using a special ContentAttribute
. This index content attribute is used to extract the textual value from the Classification
that can be used to look up the set of licenses related to the content. The index content attribute is classification system specific. If no index content attribute is available or no classification index provided then the classification filter must be compared against all licenses that match the same URI (same server) and classification system as the content.boolean isApplicable(Classification classification)
classification
- the classification to check.
|
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 |