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, virusCheck
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, 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
getUploadedFileId, setFileInputStream, setFilePath, setProperties, setUploadType, virusCheck
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, 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, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
fulfills, getOwner
public 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 ControllerCommand
setRequestProperties
in class com.ibm.commerce.content.commands.FileUploadCmdImpl
reqParms
- This is a TypedProperty
object that represents
the request properties.ECException
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class com.ibm.commerce.content.commands.FileUploadCmdImpl
ECException
- An exception is thrown if there are errors when
storing the uploaded file to database.