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 ItemConstraints


public interface ItemConstraints

Item constraints. 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.

Creation

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

ItemConstraints object = createItemConstraints(
    type,
    itemCodes);

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>


Nested Class Summary
static class ItemConstraints.Type
          Type of item constraint.

 

Method Summary
 Collection<ItemCode> getItemCodes()
          The item codes.
 ItemConstraints.Type getType()
          The type of constraint.

 

Method Detail

getItemCodes

Collection<ItemCode> getItemCodes()
The item codes. The set of allowed or disallowed items.

State

The collection returned by this method is an unmodifiable view on the internal collection state of the object.
Returns:
the value of the property. If this collection is empty this method returns an empty collection rather than returning null.

getType

ItemConstraints.Type getType()
The type of constraint.
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-03


Copyright © 2011, Oracle. All rights reserved.