Skip navigation links

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

E12907-03


oracle.irm.engine.types.classifications.item
Class ItemConstraints

java.lang.Object
  extended by oracle.irm.engine.types.classifications.item.ItemConstraints

All Implemented Interfaces:
Serializable

public class ItemConstraints
extends Object
implements Serializable

Item Constraints type. Item constraints contain a set of ItemCode definitions that are either allowed or disallowed. A list of allowed items are called item locks and a list of excluded items are called item exclusions. Item constraints are used to create ClassificationFilter objects that allow (or disallow) access to individual sealed content items.

XML Serialization

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

<?xml version="1.0" encoding="UTF-8"?>
<classifications:ItemConstraints xmlns:classifications="http://xmlns.oracle.com/irm/classifications">
    <itemCodes>
        <value>samples.doc</value>
        <time>2007-05-10T12:00:00.000+00:00</time>
    </itemCodes>
    <itemCodes>
        <value>samples.xls</value>
    </itemCodes>
    <type>EXCLUSIONS</type>
</classifications:ItemConstraints>

See Also:
Serialized Form

Nested Class Summary
static class ItemConstraints.Type
          Type enumeration.

 

Constructor Summary
ItemConstraints()
          No argument constructor.
ItemConstraints(ItemCode[] itemCodes, ItemConstraints.Type type)
          Constructor.

 

Method Summary
 ItemCode[] getItemCodes()
          The item codes.
 ItemConstraints.Type getType()
          The type of constraint.
 void setItemCodes(ItemCode[] value)
          The item codes.
 void setType(ItemConstraints.Type value)
          The type of constraint.

 

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

 

Constructor Detail

ItemConstraints

public ItemConstraints()
No argument constructor.

ItemConstraints

public ItemConstraints(ItemCode[] itemCodes,
                       ItemConstraints.Type type)
Constructor.

Method Detail

getItemCodes

public ItemCode[] getItemCodes()
The item codes. The set of allowed or disallowed items.
Returns:
the value of the property.

setItemCodes

public void setItemCodes(ItemCode[] value)
The item codes. The set of allowed or disallowed items.
Parameters:
value - the new value for the property.

getType

public ItemConstraints.Type getType()
The type of constraint.
Returns:
the value of the property.

setType

public void setType(ItemConstraints.Type value)
The type of constraint.
Parameters:
value - the new value for the property.

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.