public class CreatePromotionCodeImportCmdImpl extends com.ibm.commerce.content.commands.FileUploadCmdImpl implements CreatePromotionCodeImportCmd
This class will upload a promotion code CSV file and then store it in
the database table UPLOADFILE as a BLOBs.
The class is used by CMC promotion code import tool.
This class returns the uploaded file identifier (UPLOADFILE_ID).
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
Copyright statement.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
CreatePromotionCodeImportCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
performExecute()
This method performs the business logic for this command.
|
void |
setRequestProperties(TypedProperty reqParms)
This method sets the request properties.
|
getUploadedFileId, setFileInputStream, setFilePath, setProperties, setUploadType, validateParameters, virusCheckcheckPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, 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, waitgetUploadedFileId, setFileInputStream, setFilePath, setProperties, setUploadType, virusCheckcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersfulfills, getOwnerpublic static final java.lang.String COPYRIGHT
public void setRequestProperties(TypedProperty reqParms) throws ECException
setRequestProperties(TypedProperty) method from the superclass.
The method sets promotion code import specific properties for
the UPLOADFILE table.setRequestProperties in interface ControllerCommandsetRequestProperties in class com.ibm.commerce.content.commands.FileUploadCmdImplreqParms - This is a TypedProperty object that represents
the request properties.ECExceptionpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class com.ibm.commerce.content.commands.FileUploadCmdImplECException - An exception is thrown if there are errors when
storing the uploaded file to database.