Skip navigation links

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

E12907-03


oracle.irm.engine.classifications.item
Interface ItemCode


public interface ItemCode

Sealed content identifier. An item code is a fine-grained way of identifying sealed content. An item code is made up of a string based Value and an optional Time stamp. When sealed content contains an item code the value and time stamp can be used to identify the content. The item code value is typically the file name and the time stamp indicates when the sealed content was created. However, these are just suggested uses - there is no requirement that these the file name/current time be used for these values.

Two item codes are considered logically identical if the item code values are the same and, if present, the time stamps are the same.

Creation

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

ItemCode object = createItemCode(value);
ItemCode object = createItemCode(
    value,
    time);

Collections

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

 Collection<ItemCode> object = createItemCodes();

XML Serialization

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

<?xml version="1.0" encoding="UTF-8"?>
<classifications:ItemCode xmlns:classifications="http://xmlns.oracle.com/irm/classifications">
    <value>sample.sdoc</value>
    <time>2007-05-10T12:00:00.000+00:00</time>
</classifications:ItemCode>


Method Summary
 Date getTime()
          The item code time stamp.
 String getValue()
          The item code value.

 

Method Detail

getValue

String getValue()
The item code value. There is no requirement for item codes to be unique.
Returns:
the value of the property. This method will never return null.

getTime

Date getTime()
The item code time stamp. This time stamp usually indicates the time the item was created.

State

The date returned by this method can be safely altered without affecting the internal state of the object.
Returns:
the value of the property. This method can return null.

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.