Class SetContentContextCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, SetContentContextCmd,,,,,,

    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
    • 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


        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
        The ID of the Task.
      • getTaskGroupId

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

        public java.lang.String getWorkspaceId()
        Returns the Workspace ID.
        Specified by:
        getWorkspaceId in interface SetContentContextCmd
        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
        performExecute in class AbstractECTargetableCommand
      • reset

        public void reset()
        Resets all the values to null
        Specified by:
        reset in interface
        reset in class AbstractECTargetableCommand
      • setTaskId

        public void setTaskId(java.lang.String aTaskId)
        Sets the Task ID
        Specified by:
        setTaskId in interface SetContentContextCmd
        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
        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
        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.
        value - The default value is true sets both ContentContext and TaskContext dirty; false otherwise