|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.couponwallet.databeans.ViewWalletDataBean
This data bean is used to view the Coupon in the shopper's wallet. It provides the list of coupons for which the status and storeId are as specified by the parameters and the product specified by the productId is part of the purchase condition. If the productId is -1 then all the Coupon for this store in the specified state for this user are shown.
The input parameter for this data bean are :
This can be queried for number of Coupons and the information relating to Coupons can be obtained by calling the function getCouponInfo. This function return a CouponInfo object. This object contain the following fields :
Field Summary | |
CommandContext |
commandContext
|
java.util.Vector |
couponInfo
|
int |
numCoupons
|
java.lang.Long |
productId
|
java.lang.Long |
shopperId
|
java.lang.String |
state
|
java.lang.Integer |
storeId
|
Fields inherited from interface com.ibm.commerce.couponwallet.databeans.ViewWalletInputDataBean |
COPYRIGHT |
Fields inherited from interface com.ibm.commerce.beans.DataBean |
emptyString |
Fields inherited from interface com.ibm.commerce.beans.SmartDataBean |
COPYRIGHT |
Constructor Summary | |
ViewWalletDataBean()
ViewWalletDatabean void constructor method . |
Method Summary | |
boolean |
forThisStore(CouponPromotionAccessBean newpAB,
java.lang.Integer newStoreId)
This method identifies the Coupon for the store applied for. |
java.lang.Long |
getBcId(int i)
Get the Id of the Coupon. |
CommandContext |
getCommandContext()
Get the context of the command. |
CouponInfo |
getCouponInfo(int i)
Gert the information about the Coupon. |
int |
getNumCoupons()
Get the number of Coupons applicable for the products. |
TypedProperty |
getRequestProperties()
Get the properties of the request. |
java.lang.Long |
getShopperId()
Get Id of the shopper. |
void |
populate()
This method populates the data bean that is used to view the Coupons in the shopper's wallet. |
void |
setCommandContext(CommandContext newCommandContext)
Set the context of the command. |
void |
setNumCoupons(int newNumCoupons)
Set the number of Coupons applied for the products. |
void |
setProductId(java.lang.Long newProductId)
Set the Id of the product. |
void |
setRequestProperties(TypedProperty typeProp)
Set the properties of the request. |
void |
setShopperId(java.lang.Long newShopperId)
Set the Id of the shopper. |
void |
setState(java.lang.String newState)
Set the state of the Coupon. |
void |
setStoreId(java.lang.Integer newStoreId)
Set the Id of the store. |
void |
setValues(CouponWalletAccessBean tempcwAB,
CouponPromotionAccessBean temppAB)
Set the values of various attributes of a coupon. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public CommandContext commandContext
public java.util.Vector couponInfo
public int numCoupons
public java.lang.Long productId
public java.lang.Long shopperId
public java.lang.String state
public java.lang.Integer storeId
Constructor Detail |
public ViewWalletDataBean()
Method Detail |
public boolean forThisStore(CouponPromotionAccessBean newpAB, java.lang.Integer newStoreId)
newcwAB
- The coupon wallet accessbean.newStoreId
- The store Id.public java.lang.Long getBcId(int i)
public CommandContext getCommandContext()
getCommandContext
in interface SmartDataBean
public CouponInfo getCouponInfo(int i)
i
- The index into the vector of CouponInfo.public int getNumCoupons()
public TypedProperty getRequestProperties()
getRequestProperties
in interface InputDataBean
public java.lang.Long getShopperId()
public void populate()
populate
in interface SmartDataBean
javax.naming.NamingException
- java.rmi.RemoteException
- javax.ejb.CreateException
- javax.ejb.FinderException
- public void setCommandContext(CommandContext newCommandContext)
setCommandContext
in interface SmartDataBean
newCommandContext
- The command Context.public void setNumCoupons(int newNumCoupons)
newNumCoupons
- The number of coupons applicable.public void setProductId(java.lang.Long newProductId)
newProductId
- The product Id.public void setRequestProperties(TypedProperty typeProp)
setRequestProperties
in interface InputDataBean
typeProp
- The request property.public void setShopperId(java.lang.Long newShopperId)
newShopperId
- The shopper Id.public void setState(java.lang.String newState)
newState
- The state of the coupon.public void setStoreId(java.lang.Integer newStoreId)
newStoreId
- The store Id.public void setValues(CouponWalletAccessBean tempcwAB, CouponPromotionAccessBean temppAB) throws java.lang.Exception
index
- The index into the vector of coupons applicable.cwAB
- The couponwallet access bean.pAB
- The promotion access bean.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |