public class SetContentContextCmdImpl extends TaskCommandImpl implements SetContentContextCmd
SetContentContextCmd
is a task command that:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
Define the CLASSNAME.
|
static java.lang.String |
COPYRIGHT
Copyright.
|
Constructor and Description |
---|
SetContentContextCmdImpl() |
Modifier and Type | Method and Description |
---|---|
ContentContext |
getContentContext()
Returns the Content Context.
|
TaskContext |
getTaskContext()
Returns the Task Context.
|
java.lang.String |
getTaskGroupId()
Returns the Task Group ID.
|
java.lang.String |
getTaskId()
Returns the Task ID.
|
java.lang.String |
getWorkspaceId()
Returns the Workspace ID.
|
void |
performExecute()
Performs the execution of the command.
|
void |
reset()
Resets all the values to null
|
void |
setContentContext(ContentContext aContentContext)
Sets the Content Context
|
void |
setDirty(boolean value)
This method sets whether the ContentContext and TaskContext should be persisted to the database.
|
void |
setTaskContext(TaskContext aTaskContext)
Sets the Task Context
|
void |
setTaskGroupId(java.lang.String aTaskGroupId)
Sets the Task Group ID
|
void |
setTaskId(java.lang.String aTaskId)
Sets the Task ID
|
void |
setWorkspaceId(java.lang.String aWorkspaceId)
Sets the Workspace ID
|
void |
validateParameters()
Validates the input parameters.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public ContentContext getContentContext()
getContentContext
in interface SetContentContextCmd
public TaskContext getTaskContext()
getTaskContext
in interface SetContentContextCmd
public java.lang.String getTaskId()
getTaskId
in interface SetContentContextCmd
public java.lang.String getTaskGroupId()
getTaskGroupId
in interface SetContentContextCmd
public java.lang.String getWorkspaceId()
getWorkspaceId
in interface SetContentContextCmd
public void performExecute() throws ECException
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.performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
ECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setContentContext(ContentContext aContentContext)
setContentContext
in interface SetContentContextCmd
aContentContext
- The Content Context.public void setTaskContext(TaskContext aTaskContext)
setTaskContext
in interface SetContentContextCmd
aTaskContext
- The Task Context.public void setTaskId(java.lang.String aTaskId)
setTaskId
in interface SetContentContextCmd
aTaskId
- The ID of the Task.public void setTaskGroupId(java.lang.String aTaskGroupId)
setTaskGroupId
in interface SetContentContextCmd
aTaskGroupId
- The ID of the Task Group.public void setWorkspaceId(java.lang.String aWorkspaceId)
setWorkspaceId
in interface SetContentContextCmd
aWorkspaceId
- The ID of the Workspace.public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
public void setDirty(boolean value)
value
- The default value is true
sets both ContentContext and TaskContext dirty; false
otherwise