public class ExperimentCompleteControllerCmdImpl extends ToolsControllerCommandImpl implements ExperimentCompleteControllerCmd, com.ibm.commerce.tools.experimentation.ExperimentConstants
ExperimentCompleteControllerCmd
interface to
provide the controller command that completes an experiment. Different implementations
of this interface can be provided for different stores. This controller command is
mapped to the ExperimentComplete URL.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName
NAME
ELEMENT_EXPERIMENT, EXPERIMENT_ID_DELIMITER, EXPERIMENT_RESOURCES, EXPERIMENT_RESULT_SCOPE_LIFETIME, EXPERIMENT_RESULT_SCOPE_REQUEST, EXPERIMENT_RESULT_SCOPE_SESSION, EXPERIMENT_STATUS_ACTIVE, EXPERIMENT_STATUS_COMPLETED, EXPERIMENT_STATUS_DELETED, EXPERIMENT_STATUS_EXPIRED, EXPERIMENT_STATUS_INACTIVE, FRIDAY, MONDAY, MSG_BUTTON_ACTIVATE, MSG_BUTTON_ADD, MSG_BUTTON_ADD_NO_ELLIPSIS, MSG_BUTTON_BACK, MSG_BUTTON_CAMPAIGNS, MSG_BUTTON_CANCEL, MSG_BUTTON_CHANGE, MSG_BUTTON_CHANGE_INITIATIVE, MSG_BUTTON_CHANGE_INITIATIVE_ELLIPSIS, MSG_BUTTON_CHOOSE_COUPON, MSG_BUTTON_CHOOSE_DISCOUNT, MSG_BUTTON_CLEAR, MSG_BUTTON_CLOSE, MSG_BUTTON_CONFIRM, MSG_BUTTON_COPY, MSG_BUTTON_DEACTIVATE, MSG_BUTTON_DELETE, MSG_BUTTON_FIND, MSG_BUTTON_FIND_ELLIPSIS, MSG_BUTTON_HELP, MSG_BUTTON_LIST, MSG_BUTTON_LIST_ELLIPSIS, MSG_BUTTON_NEW, MSG_BUTTON_OK, MSG_BUTTON_PREVIEW, MSG_BUTTON_PRINT, MSG_BUTTON_PRIORITIZE, MSG_BUTTON_PROPERTIES, MSG_BUTTON_REMOVE, MSG_BUTTON_REPORTS, MSG_BUTTON_RESUME, MSG_BUTTON_SCHEDULE, MSG_BUTTON_STATISTICS, MSG_BUTTON_SUMMARY, MSG_BUTTON_SUSPEND, MSG_DAY_PROMPT, MSG_EXPERIMENT_EVALUATION_FAILED, MSG_EXPERIMENT_EXISTS, MSG_EXPERIMENT_NOT_SAVED, MSG_EXPERIMENT_SAVED, MSG_MONTH_PROMPT, MSG_NEVER, MSG_TIME_PROMPT, MSG_YEAR_PROMPT, ORDER_BY_CODE, ORDER_BY_DESCRIPTION, ORDER_BY_DISPLAYS, ORDER_BY_END_DATE, ORDER_BY_LAST_UPDATE, ORDER_BY_LAST_UPDATED_BY, ORDER_BY_NAME, ORDER_BY_PRIORITY, ORDER_BY_START_DATE, ORDER_BY_STATUS, ORDER_BY_TYPE, ORDER_BY_VIEWS, PARAMETER_CURRENT_TIME, PARAMETER_EXPERIMENT_COMPLETE_STATUS, PARAMETER_EXPERIMENT_DELETED, PARAMETER_EXPERIMENT_ID, PARAMETER_EXPERIMENT_ID_INVALID, PARAMETER_EXPERIMENT_IDS, PARAMETER_EXPERIMENT_NOT_DELETED, PARAMETER_EXPERIMENT_STATUS, PARAMETER_EXPERIMENT_STATUS_NOT_UPDATED, PARAMETER_EXPERIMENT_STATUS_UPDATED, PARAMETER_ORDER_BY, PARAMETER_PREFERRED_ELEMENT_ID, PARAMETER_STORE_ELEMENT_ID, PARAMETER_STORE_ELEMENT_TYPE_ID, PARAMETER_STORE_ID, SATURDAY, SEARCH_TYPE_EXACT_MATCH, SEARCH_TYPE_LIKE_CASE_SENSITIVE, SEARCH_TYPE_LIKE_IGNORE_CASE, SEARCH_TYPE_MATCH_CASE_SENSITIVE, SEARCH_TYPE_MATCH_IGNORE_CASE, SUNDAY, THURSDAY, TIMESTAMP_END_OF_TIME, TUESDAY, URL_EXPERIMENT_COMPLETE_REDIRECT_VIEW, URL_EXPERIMENT_DELETE_REDIRECT_VIEW, URL_EXPERIMENT_STATUS_UPDATE_REDIRECT_VIEW, WEDNESDAY
Constructor and Description |
---|
ExperimentCompleteControllerCmdImpl() |
Modifier and Type | Method and Description |
---|---|
AccessVector |
getResources()
Gets the resources that are accessed by this controller command.
|
void |
performExecute()
The
performExecute method is called to when the Marketing Manager asks
to complete the experiment by updating the status and populates the preferred
element field. |
void |
validateParameters()
Parses and validates the parameters passed to this controller command.
|
getViewInputProperties, setRequestProperties
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, 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
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public void validateParameters() throws ECException
experimentId
- The experiment ID.preferredElementId
- The ID of the preferred element of the given
experiment.validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- Thrown when an exception occurred while this method attempted to
retrieve all of the required parameters from the request object.ECCommand#validateParameters()
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
- Thrown when an exception occurred while this method attempted to
retrieve the experiment access bean for the specified experiment
ID.ECCommand#getResources()
public void performExecute() throws ECException
performExecute
method is called to when the Marketing Manager asks
to complete the experiment by updating the status and populates the preferred
element field.performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- Thrown when an exception occurred while this method attempted to
update the status and preferred element fields for the given
experiment.ECCommand#performExecute()