public class PersistCouponForLaterUseCmdImpl extends ControllerCommandImpl implements PersistCouponForLaterUseCmd
CouponWalletAccessBean
to SAVED.
ViewNames
SearchWalletView : After saving the coupons successfully if no URL was specified.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Deprecated.
IBM copyright notice field.
|
defaultCommandClassName
Constructor and Description |
---|
PersistCouponForLaterUseCmdImpl()
Deprecated.
PersistCouponForLaterUseCmdImpl constructor call super.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Long[] |
getCouponId()
Deprecated.
Gets the coupon IDs.
|
int |
getNumCoupons()
Deprecated.
Gets the number of coupons.
|
AccessVector |
getResources()
Deprecated.
Gets the resources for access control purpose.
|
boolean |
isReadyToCallExecute()
Deprecated.
It always returns true.
|
void |
performExecute()
Deprecated.
For each
cpwalletId in the input parameter, the STATE of the eCoupon is updated
in CouponWalletAccessBean to SAVED. |
void |
setCouponId(java.lang.Long[] newCouponId)
Deprecated.
Sets the coupon IDs to be saved.
|
void |
setNumCoupons(int newNumCoupons)
Deprecated.
Sets the number of coupons.
|
void |
validateParameters()
Deprecated.
It extracts the parameters from the request and command context and checks for their
correctness.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRequestProperties, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, 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, setRequestProperties, 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 static final java.lang.String COPYRIGHT
public PersistCouponForLaterUseCmdImpl()
public java.lang.Long[] getCouponId()
public int getNumCoupons()
public AccessVector getResources() throws ECSystemException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECSystemException
public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class AbstractECTargetableCommand
public void performExecute() throws ECException
cpwalletId
in the input parameter, the STATE of the eCoupon is updated
in CouponWalletAccessBean
to SAVED.performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- If a problem is encountered while creating or finding an EJB.public void setCouponId(java.lang.Long[] newCouponId)
newCouponId
- the coupon IDs of the coupons to be saved.public void setNumCoupons(int newNumCoupons)
newNumCoupons
- intpublic void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException