|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.command.AbstractECCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.couponredemption.commands.CheckValidityCmdImpl
The purpose of this command is to check each of the eCoupons for expiry and put the information in expired variable which is used by the calling commands.
The input to this command is :
For each cpwalletId the cppmnId is found out. Then the endDate is found out corresponding to this cppmn and if this endDate is after the current time, the coupon is not expired. These above steps are performed for each cpwalletId.
Field Summary | |
protected java.lang.Long[] |
bcIds
|
protected java.sql.Timestamp |
currentTimeStamp
|
protected TypedProperty |
inParam
|
protected TypedProperty |
outParam
|
protected TypedProperty |
reqParam
|
protected boolean[] |
validCoupons
|
Fields inherited from class com.ibm.commerce.command.AbstractECCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.couponredemption.commands.CheckValidityCmd |
COPYRIGHT, defaultCommandClassName, Name |
Constructor Summary | |
CheckValidityCmdImpl()
CheckValidityCmdImpl constructor, call super. |
Method Summary | |
java.lang.Long[] |
getBcIds()
Get the eCoupon ids. |
java.sql.Timestamp |
getCurrentTimeStamp()
Get the current time. |
TypedProperty |
getRequestProperties()
Get the request properties. |
TypedProperty |
getResponseProperties()
Get the response properties. |
boolean[] |
getValidCoupons()
Get valid eCoupons. |
void |
performExecute()
The purpose of this command is to check each of the eCoupons for expiry and put the information in expired variable which is used by the calling commands. |
void |
setBcIds(java.lang.Long[] newBcIds)
Set eCoupon ids. |
void |
setCurrentTimeStamp(java.sql.Timestamp newCurrentTimeStamp)
Set current time. |
void |
setRequestProperties(TypedProperty param)
Set thew request properties. |
void |
setValidCoupons(boolean[] newValidCoupons)
Set valid eCoupons. |
void |
validateParameters()
Check the parameters. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Field Detail |
protected java.lang.Long[] bcIds
protected java.sql.Timestamp currentTimeStamp
protected TypedProperty inParam
protected TypedProperty outParam
protected TypedProperty reqParam
protected boolean[] validCoupons
Constructor Detail |
public CheckValidityCmdImpl()
Method Detail |
public java.lang.Long[] getBcIds()
public java.sql.Timestamp getCurrentTimeStamp()
public TypedProperty getRequestProperties()
public TypedProperty getResponseProperties()
getResponseProperties
in interface CheckValidityCmd
public boolean[] getValidCoupons()
getValidCoupons
in interface CheckValidityCmd
public void performExecute() throws ECException
The purpose of this command is to check each of the eCoupons for expiry and put
the information in expired variable which is used by the calling commands.
For each cpwalletId the cppmnId is found out. Then the endDate
is found out corresponding to this cppmn and if this endDate is after the current
time, the coupon is not expired. These above steps are performed for each cpwalletId.
performExecute
in interface ECCommand
performExecute
in class AbstractECCommand
:
- com.ibm.commerce.exception.ECException.public void setBcIds(java.lang.Long[] newBcIds)
setBcIds
in interface CheckValidityCmd
newBcId
- java.lang.Longpublic void setCurrentTimeStamp(java.sql.Timestamp newCurrentTimeStamp)
newCurrentTimeStamp
- java.sql.Timestamppublic void setRequestProperties(TypedProperty param)
setRequestProperties
in interface CheckValidityCmd
param
- com.ibm.commerce.datatype.TypedPropertypublic void setValidCoupons(boolean[] newValidCoupons)
newValidCoupons
- boolean[]public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECCommand
ECException
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |