com.ibm.commerce.context.task

Class TaskGroup

  • java.lang.Object
    • com.ibm.commerce.context.task.TaskGroup


  • public class TaskGroup
    extends java.lang.Object
    A data object that represents a task group. A task group contains a unique identifier and can contain zero or more tasks.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Constructor Summary

      Constructors 
      Constructor and Description
      TaskGroup(java.lang.String identifier)
      Creates an instance of the task group.
      TaskGroup(java.lang.String identifier, java.util.List tasks)
      Creates an instance of the task group.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addTask(java.lang.String task)
      Adds a task to the task group.
      java.lang.String getIdentifier()
      Returns the identifier for the task group.
      java.util.List getTasks()
      Returns a list of tasks associated with the task group.
      java.lang.String toString()
      Returns the description of this task group object.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • TaskGroup

        public TaskGroup(java.lang.String identifier)
        Creates an instance of the task group.
        Parameters:
        identifier - The task group identifier.
      • TaskGroup

        public TaskGroup(java.lang.String identifier,
                         java.util.List tasks)
        Creates an instance of the task group.
        Parameters:
        identifier - The task group identifier.
        tasks - The tasks to associate with the task group.
    • Method Detail

      • getTasks

        public java.util.List getTasks()
        Returns a list of tasks associated with the task group.
        Returns:
        A list of tasks associated with the task group. If null is returned then this represents all tasks associated with the current task group.
      • addTask

        public void addTask(java.lang.String task)
        Adds a task to the task group.
        Parameters:
        task - The task to associate with the task group.
      • getIdentifier

        public java.lang.String getIdentifier()
        Returns the identifier for the task group.
        Returns:
        The task group identifier.
      • toString

        public java.lang.String toString()
        Returns the description of this task group object.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The description of this task group object.