Skip navigation links

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

E12907-03


oracle.irm.engine.types.classifications.context
Class ContextCookie

java.lang.Object
  extended by oracle.irm.engine.types.classifications.context.ContextCookie

All Implemented Interfaces:
Serializable

public class ContextCookie
extends Object
implements Serializable

Context Cookie type. 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.

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, Serialized Form

Constructor Summary
ContextCookie()
          No argument constructor.
ContextCookie(ContextRef context, ItemCode itemCode)
          Constructor.

 

Method Summary
 ContextRef getContext()
          The context.
 ItemCode getItemCode()
          The item code.
 void setContext(ContextRef value)
          The context.
 void setItemCode(ItemCode value)
          The item code.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ContextCookie

public ContextCookie()
No argument constructor.

ContextCookie

public ContextCookie(ContextRef context,
                     ItemCode itemCode)
Constructor.

Method Detail

getContext

public ContextRef getContext()
The context.
Returns:
the value of the property.

setContext

public void setContext(ContextRef value)
The context.
Parameters:
value - the new value for the property.

getItemCode

public ItemCode getItemCode()
The item code.
Returns:
the value of the property.

setItemCode

public void setItemCode(ItemCode value)
The item code.
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.