Skip navigation links

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

E12907-01


oracle.irm.engine.classifications.item
Class ItemCodeFactory

java.lang.Object
  extended by oracle.irm.engine.classifications.item.ItemCodeFactory


public final class ItemCodeFactory
extends Object

Item Code factory. This class provides methods for creating new instances of ItemCode objects.


Method Summary
static ItemCode createItemCode(String value)
          Create an item code without a time stamp.
static ItemCode createItemCode(String value, Date time)
          Create an item code.

 

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

 

Method Detail

createItemCode

public static ItemCode createItemCode(String value)
Create an item code without a time stamp. The time stamp will not be set - this is called a manual item code.
Parameters:
value - the item code string value.
Returns:
a new Item Code instance.

createItemCode

public static ItemCode createItemCode(String value,
                                      Date time)
Create an item code.
Parameters:
value - the item code string value.
time - the item code time stamp. Milli-second precision in this time will be stripped. e.g. if the provided time is 2006-12-05T12:00:00.123Z the stored time will be 2006-12-05T12:00:00Z. This ensures that item code times used on the server and desktop use the same level of precision. This parameter is optional, it is valid to pass null.
Returns:
a new Item Code instance.

Skip navigation links

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

E12907-01


Copyright © 2010, Oracle. All rights reserved.