public class CouponListByOrderDataBean extends SmartDataBeanImpl implements Delegator
This databean lists all the coupons used in the Order
.
Before invoking the populate
method on this bean, you must
invoke the setOrderId
method.
emptyString
Constructor and Description |
---|
CouponListByOrderDataBean()
Constructor
|
Modifier and Type | Method and Description |
---|---|
com.ibm.commerce.marketing.promotion.coupon.Coupon[] |
getCoupons()
Returns a list of coupons.
|
Protectable |
getDelegate()
Returns the order data bean with the order 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 |
setOrderId(java.lang.Long anOrderId)
Sets the order ID.
|
void |
setRequestProperties(TypedProperty param)
Sets the request properties associated with the data bean.
|
fulfills, getCommandContext, getHttpRequest, getHttpResponse, getResources, getViewCommandContext, setHttpRequest, setHttpResponse, setViewCommandContext
getRequestProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRequestProperties
public void setCommandContext(CommandContext cc)
DataBeanManager
during the activate method.setCommandContext
in interface SmartDataBean
setCommandContext
in class SmartDataBeanImpl
cc
- The command context passed to the JSP page that invokes this data
bean.public void setRequestProperties(TypedProperty param)
DataBeanManager
during the activate method.setRequestProperties
in interface InputDataBean
setRequestProperties
in class InputDataBeanImpl
param
- The set of properties passed to the JSP page that invokes this
data bean.public void setOrderId(java.lang.Long anOrderId)
anOrderId
- The order ID.public void populate() throws java.lang.Exception
DataBeanmanager.activate()
runs.populate
in interface SmartDataBean
populate
in class SmartDataBeanImpl
java.lang.Exception
- when an error is encountered.SmartDataBean.populate()
public com.ibm.commerce.marketing.promotion.coupon.Coupon[] getCoupons()
public Protectable getDelegate() throws java.lang.Exception
getDelegate
in interface Delegator
java.lang.Exception
- when an error is encountered on getting the order data bean.Delegator.getDelegate()