com.ibm.itim.workflow.model
Class PackagedApprovalDecisionItem

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

public class PackagedApprovalDecisionItem
extends PackagedApprovalItem

This class extends the PackagedApprovalItem class to add information about the decision for a particular item. This class represents items that either need or already have had a decision made, where as the parent class represents read-only of informational items.

It is composed of a String decision code, which has values that depend on the workflow activity definition. If the decision is still pending, the value will be null.

Since:
ITIM 5.1
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.ibm.itim.workflow.model.PackagedApprovalItem
PackagedApprovalItem.ItemType
 
Constructor Summary
PackagedApprovalDecisionItem(PackagedApprovalItem.ItemType t, java.lang.String id)
          Constructs a PackagedApprovalDecisionItem with the specified type and String identifier.
PackagedApprovalDecisionItem(PackagedApprovalItem.ItemType t, java.lang.String id, java.util.List<PackagedApprovalItem> c)
          Constructs a PackagedApprovalDecisionItem with the specified type and String identifier and no decision.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares the values in the item.
 java.lang.String getDecisionCode()
          Returns the String decision for this item.
 int hashCode()
          Returns the hash code for this object.
 void setDecisionCode(java.lang.String decision)
          Sets the String decision for this item.
 java.lang.String toString()
          Returns a String containing the values of the object.
 
Methods inherited from class com.ibm.itim.workflow.model.PackagedApprovalItem
getChildren, getItemId, getItemType, setChildren, setItemType
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PackagedApprovalDecisionItem

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

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

PackagedApprovalDecisionItem

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

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

getDecisionCode

public java.lang.String getDecisionCode()
Returns the String decision for this item.

Returns:
String decision, null if no decision has been set for this item

setDecisionCode

public void setDecisionCode(java.lang.String decision)
Sets the String decision for this item. Values depend on the activity definition being executed. The value null is used to represent decisions that have not been made.

Parameters:
decision - String decision

hashCode

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

Overrides:
hashCode in class PackagedApprovalItem
Returns:
an integer hash code

equals

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

Overrides:
equals in class PackagedApprovalItem
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 PackagedApprovalItem
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.