public class MigrateExperimentResultCmdImpl extends TaskCommandImpl implements MigrateExperimentResultCmd
MigrateExperimentResultCmd interface to provide
the task command that migrates experiment results. By default, this command is invoked
when a customer logs on to the site, and the experiment result that is associated with
the current session is migrated and associated with the customer. By doing this, the
content generated by the experiment remains the same after the customer logs on. This
is required if the persistency of experiment result is scoped to the lifetime of the
experiment. This task command can be extended to provide different implementations to
migrate experiment results.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
MigrateExperimentResultCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getOldUserId()
This method returns the old ID of the user who owns the experiment results before the user logged on.
|
java.lang.String |
getSessionId()
This method returns the ID of the session with which the experiment results are associated.
|
java.lang.Long |
getUserId()
This method returns the ID of the user who owns the experiment results.
|
void |
performExecute()
This method performs the execution of this command.
|
void |
setOldUserId(java.lang.Long oldUserId)
This method sets the old ID of the user who owns the experiment results before the user logged on.
|
void |
setSessionId(java.lang.String sessionId)
This method sets the ID of the session with which the experiment results are
associated.
|
void |
setUserId(java.lang.Long userId)
This method sets the ID of the user who owns the experiment results.
|
void |
validateParameters()
This method validates all of the parameters in order, to ensure that the session ID
and the user ID parameters have been set.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic static final java.lang.String COPYRIGHT
public java.lang.String getSessionId()
public java.lang.Long getOldUserId()
public java.lang.Long getUserId()
getUserId in interface ECCommandgetUserId in class AbstractECTargetableCommandpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException - Thrown when an exception occurs while executing this method.public void setSessionId(java.lang.String sessionId)
setSessionId in interface MigrateExperimentResultCmdsessionId - The ID of the session.public void setOldUserId(java.lang.Long oldUserId)
setOldUserId in interface MigrateExperimentResultCmduserId - The old ID of the user.public void setUserId(java.lang.Long userId)
setUserId in interface MigrateExperimentResultCmduserId - The ID of the user.public void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException - Thrown when one or more required parameters have not been set.