Skip navigation links

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

E12907-01


oracle.irm.engine.classifications.context
Interface ContextCookie


public interface ContextCookie

Context classification system cookie. When content is sealed using the context classification system the meta-data added to sealed content is a context cookie. A context classification cookie consists of a Context and a semi-unique ItemCode.

Creation

Instances of Context Cookie objects can be created using the following factory style method(s).

ContextCookie object = createContextCookie(
    context,
    itemCode);

Collections

Collections for ContextCookie objects can be created using the following factory method. This method creates the most appropriate collection implementation class for storing ContextCookie elements.

 Collection<ContextCookie> object = createContextCookies();

XML Serialization

Context Cookie instances can be serialized as an XML document. This XML document can also be used to recreate a Context Cookie object. The following XML document shows an example Context Cookie in XML form.

<?xml version="1.0" encoding="UTF-8"?>
<classifications:ContextCookie xmlns:classifications="http://xmlns.oracle.com/irm/classifications">
    <context>
        <uuid>588403f9-9cff-4cce-88e4-e030cc57282a</uuid>
    </context>
    <itemCode>
        <value>samples.doc</value>
        <time>2007-05-10T12:00:00.000+00:00</time>
    </itemCode>
</classifications:ContextCookie>

See Also:
Classification

Method Summary
 Context getContext()
          The context.
 ItemCode getItemCode()
          The item code.

 

Method Detail

getContext

Context getContext()
The context.
Returns:
the value of the property. This method will never return null.

getItemCode

ItemCode getItemCode()
The item code.
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-01


Copyright © 2010, Oracle. All rights reserved.