com.ibm.commerce.contentmanagement.commands

Class SetContentContextCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, SetContentContextCmd, 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 SetContentContextCmdImpl
    extends TaskCommandImpl
    implements SetContentContextCmd
    The SetContentContextCmd is a task command that:
    • Sets the Content Context when a user enters a Task via Accelerator
    Parameters:
    • taskId
    • taskGroupId
    • workspaceId
    Access Beans:
    Task Commands:
    Other Controller commands:
    Mandatory Parameters: taskId, taskGroupId, workspaceId
    Additional Parameters: none
    Optional Parameters: none
    See Also:
    Serialized Form
    • Field Detail

      • CLASSNAME

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

      • SetContentContextCmdImpl

        public SetContentContextCmdImpl()
    • Method Detail

      • getTaskId

        public java.lang.String getTaskId()
        Returns the Task ID.
        Specified by:
        getTaskId in interface SetContentContextCmd
        Returns:
        The ID of the Task.
      • getTaskGroupId

        public java.lang.String getTaskGroupId()
        Returns the Task Group ID.
        Specified by:
        getTaskGroupId in interface SetContentContextCmd
        Returns:
        The ID of the Task Group.
      • getWorkspaceId

        public java.lang.String getWorkspaceId()
        Returns the Workspace ID.
        Specified by:
        getWorkspaceId in interface SetContentContextCmd
        Returns:
        The ID of the Workspace.
      • performExecute

        public void performExecute()
                            throws ECException
        Performs the execution of the command. Checks if setDirty(boolean) has been called with false. If it is the case, it will not mark the ContentContext and TaskContext dirty. Otherwise, mark the contexts dirty for persistence.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
        ECException
      • 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
      • setTaskId

        public void setTaskId(java.lang.String aTaskId)
        Sets the Task ID
        Specified by:
        setTaskId in interface SetContentContextCmd
        Parameters:
        aTaskId - The ID of the Task.
      • setTaskGroupId

        public void setTaskGroupId(java.lang.String aTaskGroupId)
        Sets the Task Group ID
        Specified by:
        setTaskGroupId in interface SetContentContextCmd
        Parameters:
        aTaskGroupId - The ID of the Task Group.
      • setWorkspaceId

        public void setWorkspaceId(java.lang.String aWorkspaceId)
        Sets the Workspace ID
        Specified by:
        setWorkspaceId in interface SetContentContextCmd
        Parameters:
        aWorkspaceId - The ID of the Workspace.
      • setDirty

        public void setDirty(boolean value)
        This method sets whether the ContentContext and TaskContext should be persisted to the database.
        Parameters:
        value - The default value is true sets both ContentContext and TaskContext dirty; false otherwise