|
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 ContextInstance
A context created from a template. A Context
created from ContextTemplate
has a number of additional properties relating to Domain
administration and ItemCode
usage.
Instances of Context Instance objects can be created using the following factory style method(s).
ContextInstance object = createContextInstance
(uuid);
ContextInstance object = createContextInstance
(
uuid,
labels,
items,
trustedContexts,
visibility,
template);
ContextInstance object = createContextInstance
(
uuid,
labels,
items,
trustedContexts,
visibility,
keySets,
template);
Collections for ContextInstance
objects can be created using the following factory method. This method creates the most appropriate collection implementation class for storing ContextInstance
elements.
Collection
<ContextInstance
> object =createContextInstances
();
Consult the Uuid
property for more information on how this property can relate to ContextInstance
collections.
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>
saveChangesToContext
, createContextFromTemplate
Nested Class Summary | |
---|---|
static class |
ContextInstance.Role Roles within a context. |
static class |
ContextInstance.Visibility Context visibility. |
Method Summary | |
---|---|
Collection<ItemCode> |
getItems() Context level item exclusions. |
Collection<KeySet> |
getKeySets() Key sets. |
Collection<Label> |
getLabels() Labels for the context. |
ContextTemplate |
getTemplate() The context template. |
Collection<ContextInstance> |
getTrustedContexts() Trusted contexts. |
ContextInstance.Visibility |
getVisibility() Context visibility. |
Methods inherited from interface oracle.irm.engine.classifications.context.Context |
---|
getUuid |
Method Detail |
---|
Collection<Label> getLabels()
Collection<ItemCode> getItems()
ItemCode
inclusions and exclusions. However, if a document is accidently released and needs to be excluded for all accounts, Context
level item exclusions can be used.
Collection<ContextInstance> getTrustedContexts()
ContextInstance.Visibility getVisibility()
Context
instances and examine details such as account rights. Context
can be hidden from inspectors. e.g. if the Context
was for mergers and acquisitions it may need to be hidden from domain level inspectors. The default is that a Context
is visible to domain level users such as inspectors.Collection<KeySet> getKeySets()
ContextTemplate getTemplate()
|
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 |