com.ibm.commerce.contentmanagement.commands

Class AddTaskCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, AddTaskCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class AddTaskCmdImpl
    extends TaskCommandImpl
    implements AddTaskCmd
    The AddTaskCmd is a task command that:
    • Adds a Task
    • If the Task is added to a Task Group with Working status, and it is a Content Contributor Task, activates the Task
    Parameters:
    • taskGroupId
    • identifier
    • descriptions
    • usage
    • dueDate
    • type
    • members
    Access Beans:
    • TaskAccessBean,
    • TaskGroupAccessBean.
    Task Commands:
    • ActivateTaskCmd
    Other Controller commands:
    Mandatory Parameters: taskGroupId, type
    Additional Parameters: none
    Optional Parameters: descriptions, usage, dueDate, members
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

        public static final java.lang.String CLASSNAME
        Define the CLASSNAME.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AddTaskCmdImpl

        public AddTaskCmdImpl()
    • Method Detail

      • getTaskGroupStatus

        public java.lang.Integer getTaskGroupStatus()
        Returns the status of the Task Group with which this task is associated
        Specified by:
        getTaskGroupStatus in interface AddTaskCmd
        Returns:
        the Task Group status
      • getTaskId

        public java.lang.Long getTaskId()
        Returns the Task ID.
        Specified by:
        getTaskId in interface AddTaskCmd
        Returns:
        The ID of the Task. This is generated when the Task is created.
      • getTaskGroupId

        public java.lang.Long getTaskGroupId()
        Returns the Task Group ID.
        Specified by:
        getTaskGroupId in interface AddTaskCmd
        Returns:
        The ID of the Task Group that is associated with the Task.
      • getUsage

        public java.lang.Integer getUsage()
        Returns the Task usage.
        Specified by:
        getUsage in interface AddTaskCmd
        Returns:
        The Task usage.
      • getDescriptions

        public java.util.Vector getDescriptions()
        Returns the Task Descriptions. This is a Vector of TaskDescription objects
        Specified by:
        getDescriptions in interface AddTaskCmd
        Returns:
        The Task descriptions.
        See Also:
        TaskDescription
      • getDueDate

        public java.sql.Timestamp getDueDate()
        Returns the Task Due Date.
        Specified by:
        getDueDate in interface AddTaskCmd
        Returns:
        The Task Due Date.
      • getType

        public java.lang.Integer getType()
        Returns the Task Type.
        Specified by:
        getType in interface AddTaskCmd
        Returns:
        The Task Type.
      • getMembers

        public java.util.Vector getMembers()
        Returns the Task Members.
        Specified by:
        getMembers in interface AddTaskCmd
        Returns:
        The Task Members.
      • reset

        public void reset()
        Resets all the values to null
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setTaskGroupId

        public void setTaskGroupId(java.lang.Long anTaskGroupId)
        Sets the Task Group ID
        Specified by:
        setTaskGroupId in interface AddTaskCmd
        Parameters:
        anTaskGroupId - The ID of the Task Group.
      • setUsage

        public void setUsage(java.lang.Integer aUsage)
        Sets the Task Usage
        Specified by:
        setUsage in interface AddTaskCmd
        Parameters:
        aUsage - The usage of the Task.
      • setDescriptions

        public void setDescriptions(java.util.Vector argDescriptions)
        Sets the Task Descriptions. This is a Vector of TaskDescription objects.
        Specified by:
        setDescriptions in interface AddTaskCmd
        Parameters:
        argDescriptions - The Descriptions of the Task.
        See Also:
        TaskDescription
      • setDueDate

        public void setDueDate(java.sql.Timestamp dDueDate)
        Sets the Task Due Date
        Specified by:
        setDueDate in interface AddTaskCmd
        Parameters:
        dDueDate - The due date of the Task.
      • setType

        public void setType(java.lang.Integer aType)
        Sets the Task Type
        Specified by:
        setType in interface AddTaskCmd
        Parameters:
        aType - The type of the Task.
      • setMembers

        public void setMembers(java.util.Vector theMembers)
        Sets the Task Members
        Specified by:
        setMembers in interface AddTaskCmd
        Parameters:
        theMembers - The members of the Task.