public class CouponManageCmdImpl extends ControllerCommandImpl implements CouponManageCmd
This command displays the page from where Coupons and Promotion Codes can be managed.
It implements the CouponManageCmd
interface. This command is mapped to the
CouponsManage
URL.
If the command is executed as a URL Command the following URL parameters must 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 CouponsManageView
.
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 |
---|
CouponManageCmdImpl()
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
getGeneric()
Returns true.
|
java.lang.Long |
getOrderId()
This method gets the orderId.
|
java.lang.String |
getURL()
This methods returns the redirect URL.
|
java.lang.String |
getUserIdentifier()
This method returns the user Identifier.
|
java.lang.String |
getViewName()
This methods returns the View Name.
|
boolean |
isGeneric()
Returns true.
|
void |
performExecute()
Command execution body.
|
void |
setOrderId(java.lang.Long _orderId)
This method sets the orderId.
|
void |
setRequestProperties(TypedProperty _reqProperties)
This method sets the request properties of the controller command.
|
void |
setURL(java.lang.String _URL)
This method sets the redirect url.
|
void |
setUserIdentifier(java.lang.String _userIdentifier)
This method sets the userIdentifier.
|
void |
setViewName(java.lang.String _viewName)
This method sets the view name.
|
void |
validateParameters()
Validates parameters of typed properties to make sure they are set.
|
checkPermission, fulfills, getForUserId, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, 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
checkPermission, execute, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, 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
fulfills, getOwner
public boolean getGeneric()
getGeneric
in interface ControllerCommand
getGeneric
in class ControllerCommandImpl
true
if this command can be called by a generic user and
false
otherwise.ControllerCommand.getGeneric()
public void setURL(java.lang.String _URL)
_URL
- java.lang.String is the redirect url to set.public void setUserIdentifier(java.lang.String _userIdentifier)
_userIdentifier
- java.lang.String is the user Identifier to set.public void setOrderId(java.lang.Long _orderId)
_orderId
- java.lang.Long is the orderId to set.public void setViewName(java.lang.String _viewName)
_viewName
- java.lang.String is the view name to setpublic java.lang.String getViewName()
public java.lang.String getURL()
public java.lang.String getUserIdentifier()
public java.lang.Long getOrderId()
public void setRequestProperties(TypedProperty _reqProperties) throws ECException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
_reqProperties
- 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 ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- When an error is encountered during execution of command.TargetableCommand.performExecute()
public boolean isGeneric()
isGeneric
in interface ControllerCommand
isGeneric
in class ControllerCommandImpl
true
if this command can be called by a generic user and
false
otherwise.ControllerCommand.isGeneric()