public class CouponListByUserDataBean extends SmartDataBeanImpl implements Delegator
This databean lists all the coupons possessed by the Shopper.
Before invoking the populate method on this bean you must invoke the following methods:
setMemberId setState (-1 for all, 0 for active, 1 for cancelled, 2 for beingused, 3 for expired, 4 for deleted)
Optionally, the following methods can be invoked:
setUserIdentifier (Used to set a token for a guest shopper. This token uniquely identifies the guest shopper.)
Constructor and Description |
---|
CouponListByUserDataBean()
Constructor
|
Modifier and Type | Method and Description |
---|---|
com.ibm.commerce.marketing.promotion.coupon.Coupon[] | getCoupons()
Returns a list of retrieved coupons
|
Protectable | getDelegate()
Returns the user data bean with the member id set.
|
void | populate()
Loads data into the databean when the DataBeanmanager.activate() runs.
|
void | setCommandContext(CommandContext cc)
Sets the command context associated with the data bean.
|
void | setMemberId(java.lang.Long _memberId)
Sets the member ID of the user.
|
void | setRequestProperties(TypedProperty param)
Sets the request properties associated with the data bean.
|
void | setState(int _state)
Sets the state
|
void | setUserIdentifier(java.lang.String _userIdentifier)
This methods sets the user identifier for a guest user.
|
public void setCommandContext(CommandContext cc)
public void setRequestProperties(TypedProperty param)
public void setMemberId(java.lang.Long _memberId)
public void setState(int _state)
public void setUserIdentifier(java.lang.String _userIdentifier)
public void populate() throws java.lang.Exception
public com.ibm.commerce.marketing.promotion.coupon.Coupon[] getCoupons()
public Protectable getDelegate() throws java.lang.Exception