com.ibm.commerce.tools.experimentation.commands
Class ExperimentDeleteControllerCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- com.ibm.commerce.command.AbstractECTargetableCommand
-
- com.ibm.commerce.command.ControllerCommandImpl
-
- com.ibm.commerce.tools.command.ToolsControllerCommandImpl
-
- com.ibm.commerce.tools.experimentation.commands.ExperimentDeleteControllerCmdImpl
-
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, ToolsControllerCommand, ExperimentDeleteControllerCmd, com.ibm.commerce.tools.experimentation.ExperimentConstants, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
public class ExperimentDeleteControllerCmdImpl extends ToolsControllerCommandImpl implements ExperimentDeleteControllerCmd, com.ibm.commerce.tools.experimentation.ExperimentConstants
This class implements theExperimentDeleteControllerCmd
interface to provide the controller command that deletes experiments. Different implementations of this interface can be provided for different stores. This controller command is mapped to the ExperimentDelete URL.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
IBM copyright notice field.-
Fields inherited from interface com.ibm.commerce.tools.experimentation.commands.ExperimentDeleteControllerCmd
defaultCommandClassName
-
Fields inherited from interface com.ibm.commerce.tools.command.ToolsControllerCommand
NAME
-
Fields inherited from interface com.ibm.commerce.tools.experimentation.ExperimentConstants
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 Summary
Constructors Constructor and Description ExperimentDeleteControllerCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description AccessVector
getResources()
Gets the resources that are accessed by this controller command.void
performExecute()
TheperformExecute
method is called to when the Marketing Manager asks to delete one or more experiments.
void
validateParameters()
Parses and validates the parameters passed to this controller command.-
Methods inherited from class com.ibm.commerce.tools.command.ToolsControllerCommandImpl
getViewInputProperties, setRequestProperties
-
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
-
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
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
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM copyright notice field.- See Also:
- Constant Field Values
-
-
Method Detail
-
validateParameters
public void validateParameters() throws ECException
Parses and validates the parameters passed to this controller command. The following parameters are valid:experimentIds
- A comma separated list of experiment IDs.
- Specified by:
validateParameters
in interfaceECCommand
- Overrides:
validateParameters
in classAbstractECTargetableCommand
- Throws:
ECException
- Thrown when an exception occurred while this method attempted to retrieve all of the required parameters from the request object.- See Also:
ECCommand#validateParameters()
-
getResources
public AccessVector getResources() throws ECException
Gets the resources that are accessed by this controller command. Returns the experiment access beans for the specified experiment IDs.- Specified by:
getResources
in interfaceECCommand
- Overrides:
getResources
in classAbstractECTargetableCommand
- Returns:
- A vector of resources.
- Throws:
ECException
- Thrown when an exception occurred while this method attempted to retrieve the experiment access beans for the specified experiment IDs.- See Also:
ECCommand#getResources()
-
performExecute
public void performExecute() throws ECException
TheperformExecute
method is called to when the Marketing Manager asks to delete one or more experiments.
- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECException
- Thrown when an exception occurred while this method attempted to mark the given experiments as deleted by updating their statuses.- See Also:
ECCommand#performExecute()
-
-