Skip navigation links

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

E12907-02


oracle.irm.engine.content.schema
Interface ContentSchema


public interface ContentSchema

Schema version information for sealed content. When content is sealed, it is sealed against a schema. This schema defines the format of the sealed content. The desktop will support opening content for all the schemas it is aware of. If tries to open content for a schema it does not support it will prompt the user to upgrade their desktop installation. The content schema stores the schema number and the minimum desktop version required to work with that schema version.

Creation

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

ContentSchema object = createContentSchema(schemaVersion);
ContentSchema object = createContentSchema(
    schemaVersion,
    productVersion);

Collections

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

 Collection<ContentSchema> object = createContentSchemas();

Consult the SchemaVersion property for more information on how this property can relate to ContentSchema collections.

XML Serialization

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

<?xml version="1.0" encoding="UTF-8"?>
<content:ContentSchema xmlns:content="http://xmlns.oracle.com/irm/content">
    <schemaVersion>
        <version>6.0</version>
    </schemaVersion>
</content:ContentSchema>


Method Summary
 ProductVersion getProductVersion()
          Minimum desktop version that must be installed locally in order to seal or unseal content with the corresponding schema version.
 SchemaVersion getSchemaVersion()
          Schema version.

 

Method Detail

getSchemaVersion

SchemaVersion getSchemaVersion()
Schema version. e.g. 5.0.0.

Collections

This property value can be used to retrieve the object from a collection using getContentSchemaBySchemaVersion.
Returns:
the value of the property. This method will never return null.

getProductVersion

ProductVersion getProductVersion()
Minimum desktop version that must be installed locally in order to seal or unseal content with the corresponding schema version.

Transient

This property is transient and will not be serialized (e.g into XML, remote method calls).
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-02


Copyright © 2010, Oracle. All rights reserved.