java.lang.Object | +--com.ibm.commerce.couponwallet.databeans.ViewWalletDataBean
This data bean is used to view the eCoupon in the customer'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 eCoupon 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 eCoupons and the information relating to eCoupons can be obtained by calling the function getCouponInfo. This function return a CouponInfo object. This object contain the following fields :
Field Summary | |
---|---|
java.lang.Long |
categoryId The category for which the applicable coupons are being returned. |
CommandContext |
commandContext The command context. |
java.util.Vector |
couponInfo The information for each coupon is stored in this object. |
int |
numCoupons The number of coupons being returned. |
java.lang.Long |
productId The product for which the applicable coupons are being returned. |
java.lang.Long |
shopperId The customer who's coupons are being displayed. |
java.lang.String |
state The desired state of the coupons to be shown. |
java.lang.Integer |
storeId The store for which the coupons are being shown. |
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 constructor call super. |
Method Summary | |
---|---|
boolean |
forThisStore(
CouponPromotionAccessBean newpAB,
java.lang.Integer newStoreId) This method identifies the eCoupon for the store applied for. |
java.lang.Long |
getBcId(int i) Gets the ID of the eCoupon. |
java.lang.Long |
getCategoryId() Gets the category for which the applicable coupons are being found out. |
CommandContext |
getCommandContext() Gets the context of the command. |
CouponInfo |
getCouponInfo(int i) Gets the information about the eCoupon. |
int |
getNumCoupons() Gets the number of eCoupons applicable for the products. |
TypedProperty |
getRequestProperties() Gets the properties of the request. |
java.lang.Long |
getShopperId() Gets ID of the customer. |
void |
populate() This method populates the data bean that is used to view the eCoupon in the customer's wallet. |
void |
setCategoryId(java.lang.Long newCategoryId) Sets the category for which the applicable coupons are being found out. |
void |
setCommandContext(
CommandContext newCommandContext) Sets the context of the command. |
void |
setNumCoupons(int newNumCoupons) Sets the number of eCoupons applied for the products. |
void |
setProductId(java.lang.Long newProductId) Sets the ID of the product. |
void |
setRequestProperties(
TypedProperty typeProp) Sets the properties of the request. |
void |
setShopperId(java.lang.Long newShopperId) Sets the ID of the customer. |
void |
setState(java.lang.String newState) Sets the state of the eCoupon. |
void |
setStoreId(java.lang.Integer newStoreId) Sets the ID of the store. |
void |
setValues(
CouponWalletAccessBean tempcwAB,
CouponPromotionAccessBean temppAB) Sets the values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String state
public java.util.Vector couponInfo
public int numCoupons
public java.lang.Long productId
public java.lang.Integer storeId
public CommandContext commandContext
public java.lang.Long shopperId
public java.lang.Long categoryId
Constructor Detail |
---|
public ViewWalletDataBean()
Method Detail |
---|
public boolean forThisStore(CouponPromotionAccessBean newpAB, java.lang.Integer newStoreId)
newStoreId
- java.lang.Integerpublic java.lang.Long getBcId(int i)
public java.lang.Long getCategoryId()
public CommandContext getCommandContext()
getCommandContext
in interface
SmartDataBean
public CouponInfo getCouponInfo(int i)
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 setCategoryId(java.lang.Long newCategoryId)
newCategoryId
- longpublic void setCommandContext(CommandContext newCommandContext)
setCommandContext
in interface
SmartDataBean
newCommandContext
-
com.ibm.commerce.command.CommandContextpublic void setNumCoupons(int newNumCoupons)
newNumCoupons
- intpublic void setProductId(java.lang.Long newProductId)
newProductId
- intpublic void setRequestProperties(TypedProperty typeProp)
setRequestProperties
in interface
InputDataBean
typeProp
-
com.ibm.commerce.datatype.TypedPropertypublic void setShopperId(java.lang.Long newShopperId)
newShopperId
- java.lang.Longpublic void setState(java.lang.String newState)
newState
- java.lang.Stringpublic void setStoreId(java.lang.Integer newStoreId)
newStoreId
- java.lang.Integerpublic void setValues(CouponWalletAccessBean tempcwAB, CouponPromotionAccessBean temppAB) throws java.lang.Exception
java.lang.Exception