|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 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
();
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 |
---|
String getValue()
Date getTime()
|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |