com.ibm.itim.workflow.model

Class PackagedApprovalItem

  • java.lang.Object
    • 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.

    • The available types are listed in the ItemType enumeration.
    • The String identifier is likely to be a String version of an entity DN, but may vary with future types.
    • The children are optional, and used to represent dependency relationships for the approval.

    Since:
    ITIM 5.1
    See Also:
    Serialized Form
    • 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
      • 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