Skip navigation links

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

E12907-02


oracle.irm.engine.types.rights.context
Class ContextInstanceRef

java.lang.Object
  extended by oracle.irm.engine.types.classifications.context.ContextRef
      extended by oracle.irm.engine.types.rights.context.ContextInstanceRef

All Implemented Interfaces:
Serializable

public class ContextInstanceRef
extends ContextRef
implements Serializable

Context Instance reference. A Context created from ContextTemplate has a number of additional properties relating to Domain administration and ItemCode usage.

This class can be used to reference an instance of a ContextInstance object. It contains all the properties needed to uniquely identify a ContextInstance. The serialized form of this class can be used to identify an object without the need to serialize the complete object.

XML Serialization

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

<?xml version="1.0" encoding="UTF-8"?>
<rights:ContextInstance xmlns:rights="http://xmlns.oracle.com/irm/rights">
    <uuid>588403f9-9cff-4cce-88e4-e030cc57282a</uuid>
    <labels>
        <locale>en</locale>
        <name>Top Secret</name>
        <description>This is a top secret context</description>
    </labels>
    <items>
        <value>document1.sdoc</value>
    </items>
    <items>
        <value>document2.sdoc</value>
    </items>
    <trustedContexts>
        <uuid>588403f9-9cff-4cce-88e4-e030cc57282a</uuid>
    </trustedContexts>
    <visibility>CONTEXT</visibility>
    <template>
        <uuid>6c58fdc2-80fd-4d3a-9394-74fe873ed705</uuid>
        <domain>
            <uuid>97bdf4f1-1375-4b28-9520-17a23503462f</uuid>
        </domain>
    </template>
</rights:ContextInstance>

Context Instance instances can also be serialized by reference. A reference contains all the information needed to uniquely identify a Context Instance without needing to serialize the complete object. The reference form of the XML document can be seen below.

<?xml version="1.0" encoding="UTF-8"?>
<rights:ContextInstanceRef xmlns:rights="http://xmlns.oracle.com/irm/rights">
    <uuid>588403f9-9cff-4cce-88e4-e030cc57282a</uuid>
</rights:ContextInstanceRef>

See Also:
saveChangesToContext, createContextFromTemplate, Serialized Form

Constructor Summary
ContextInstanceRef()
          No argument constructor.
ContextInstanceRef(UUID uuid)
          Constructor.

 

Method Summary

 

Methods inherited from class oracle.irm.engine.types.classifications.context.ContextRef
getUuid, setUuid

 

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

 

Constructor Detail

ContextInstanceRef

public ContextInstanceRef()
No argument constructor.

ContextInstanceRef

public ContextInstanceRef(UUID uuid)
Constructor.

Skip navigation links

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

E12907-02


Copyright © 2010, Oracle. All rights reserved.