com.ibm.itim.workflow.model
Class PackagedApprovalItem

java.lang.Object
  extended by com.ibm.itim.workflow.model.PackagedApprovalItem
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PackagedApprovalDecisionItem

public class PackagedApprovalItem
extends java.lang.Object
implements java.io.Serializable

This class is used as a component of the PackagedApprovalDocument workflow relevant data item. Each instance of the PackagedApprovalItem class represents an item to be considered as part of a multi-item approval activity.

The item is composed of a type, identifier, and List of children.

Since:
ITIM 5.1
See Also:
Serialized Form

Nested Class Summary
static class PackagedApprovalItem.ItemType
          The ItemType enumeration provides the possible object types that could be represented by this approval item.
 
Constructor Summary
PackagedApprovalItem(PackagedApprovalItem.ItemType t, java.lang.String id)
          Constructs a PackagedApprovalItem with the specified type and String identifier.
PackagedApprovalItem(PackagedApprovalItem.ItemType t, java.lang.String id, java.util.List<PackagedApprovalItem> c)
          Constructs a PackagedApprovalItem with the specified type and String identifier.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares the values in the item.
 java.util.List<PackagedApprovalItem> getChildren()
          Returns a reference to the list of children, possibly empty, but not null.
 java.lang.String getItemId()
          Returns the item identifier.
 PackagedApprovalItem.ItemType getItemType()
          Returns the item type.
 int hashCode()
          Returns the hash code for this object.
 void setChildren(java.util.List<PackagedApprovalItem> children)
          Updates the list of children.
 void setItemType(PackagedApprovalItem.ItemType type)
          Updates the type of this item.
 java.lang.String toString()
          Returns a String containing the values of the object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PackagedApprovalItem

public PackagedApprovalItem(PackagedApprovalItem.ItemType t,
                            java.lang.String id)
Constructs a PackagedApprovalItem with the specified type and String identifier. The item will initially contain an empty list of children.

Parameters:
t - the ItemType for the new approval item
id - the String identifier for the item

PackagedApprovalItem

public PackagedApprovalItem(PackagedApprovalItem.ItemType t,
                            java.lang.String id,
                            java.util.List<PackagedApprovalItem> c)
Constructs a PackagedApprovalItem with the specified type and String identifier.

Parameters:
t - the ItemType for the new approval item
id - the String identifier for the item
c - the List of child PackagedApprovalItem, which should not be null
Method Detail

getItemId

public java.lang.String getItemId()
Returns the item identifier.

Returns:
String item id

getItemType

public PackagedApprovalItem.ItemType getItemType()
Returns the item type.

Returns:
the ItemType for this object

setItemType

public void setItemType(PackagedApprovalItem.ItemType type)
Updates the type of this item.

Parameters:
type - new type of this object.

getChildren

public java.util.List<PackagedApprovalItem> getChildren()
Returns a reference to the list of children, possibly empty, but not null.

Returns:
a List of PackagedApprovalItem

setChildren

public void setChildren(java.util.List<PackagedApprovalItem> children)
Updates the list of children.

Parameters:
children - a List of PackagedApprovalItem, which should not be null

hashCode

public int hashCode()
Returns the hash code for this object.

Overrides:
hashCode in class java.lang.Object
Returns:
an integer hash code

equals

public boolean equals(java.lang.Object o)
Compares the values in the item.

Overrides:
equals in class java.lang.Object
Parameters:
o - the PackagedApprovalItem to compare to this one
Returns:
true if this object's values are identical to o

toString

public java.lang.String toString()
Returns a String containing the values of the object.

Overrides:
toString in class java.lang.Object
Returns:
String value


IBM Security Identity Manager 6.0.0
© Copyright International Business Machines Corporation 2007, 2012. All rights reserved. US Government Users Restricited Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.