public class IssueCouponControllerCmdImpl extends ControllerCommandImpl implements IssueCouponControllerCmd
This Controller Command issues Coupon to a Shopper
. It
implements IssueCouponControllerCmd
interface. This command
is mapped to CouponsIssue
URL.
If the command is executed as a URL Command the following url parameters must be set
Optionally the following parameters can be set
Note: If both URL & VIEW parameters are specified, the request will be redirected to URL.
If both are not specified the request will be forwarded to CouponsDisplayView
.
If executing this Command as a task Command,the methods listed below must be invoked before calling the command
Optionally the following methods can be invoked
defaultCommandClassName, NAME
Constructor and Description |
---|
IssueCouponControllerCmdImpl()
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCouponCode()
This method gets the coupon code.
|
java.lang.Integer |
getPromotionID()
This method gets the promotion id.
|
java.lang.String |
getPromotionName()
This method gets the promotion name.
|
AccessVector |
getResources()
Gets the resources.
|
java.lang.String |
getURL()
This method gets the Redirect URL.
|
java.lang.String |
getUserIdentifier()
This method gets the userIdentifier.
|
java.lang.String |
getViewName()
This methods returns the view name.
|
void |
performExecute()
Command execution body
|
void |
setCouponCode(java.lang.String couponC)
This method sets the coupon code.
|
void |
setPromotionID(java.lang.Integer promoID)
This method sets the promotion id.
|
void |
setPromotionName(java.lang.String promoName)
This method sets the promotion name.
|
void |
setRequestProperties(TypedProperty reqPro)
This method sets the request properties of the controller command.
|
void |
setURL(java.lang.String urls)
This method sets the Redirect URL.
|
void |
setUserIdentifier(java.lang.String userId)
This method sets the user identifier.
|
void |
setViewName(java.lang.String viewN)
This method sets the view name.
|
void |
validateParameters()
Parameters validation to make sure they are set.
|
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, 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, 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 void setCouponCode(java.lang.String couponC)
couponC
- - The coupon code to set.public void setPromotionName(java.lang.String promoName)
promoName
- - The promotion name to set.public void setPromotionID(java.lang.Integer promoID)
promoID
- - The promotion name to set.public void setUserIdentifier(java.lang.String userId)
userId
- - The user identifier to set.public void setURL(java.lang.String urls)
urls
- - the redirect URL to set.public void setViewName(java.lang.String viewN)
viewN
- - the view name to set.public java.lang.String getViewName()
public java.lang.String getCouponCode()
public java.lang.String getPromotionName()
public java.lang.Integer getPromotionID()
public java.lang.String getUserIdentifier()
public java.lang.String getURL()
public void setRequestProperties(TypedProperty reqPro) throws ECException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqPro
- - The request properties to set.ECException
- - When an error is encountered on setting the request properties of the command.ControllerCommand.setRequestProperties(com.ibm.commerce.datatype.TypedProperty)
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- when an error occurs.public void performExecute() throws ECSystemException, ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECSystemException
- is a system errorECException
- is a general exceptionpublic AccessVector getResources()
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand