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, 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, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public java.lang.String getSessionId()
public java.lang.Long getOldUserId()
public java.lang.Long getUserId()
getUserId
in interface ECCommand
getUserId
in class AbstractECTargetableCommand
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- Thrown when an exception occurs while executing this method.public void setSessionId(java.lang.String sessionId)
setSessionId
in interface MigrateExperimentResultCmd
sessionId
- The ID of the session.public void setOldUserId(java.lang.Long oldUserId)
setOldUserId
in interface MigrateExperimentResultCmd
userId
- The old ID of the user.public void setUserId(java.lang.Long userId)
setUserId
in interface MigrateExperimentResultCmd
userId
- The ID of the user.public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- Thrown when one or more required parameters have not been set.