public class PromoCodeListDataBean extends SmartDataBeanImpl implements Delegator
This method lists all the promotion codes applied for this Order
.
Before invoking the populate
method, you must invoke the
setOrderId
method.
emptyString
Constructor and Description |
---|
PromoCodeListDataBean()
Constructor
|
Modifier and Type | Method and Description |
---|---|
PromotionCodeData[] |
getCodes()
Returns the promotion code constructs.
|
Protectable |
getDelegate()
Returns the order data bean with the order id set.
|
java.lang.String[] |
getPromoCodes()
Deprecated.
please use getCodes instead
|
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 aOrderId)
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 aOrderId)
aOrderId
- The new order ID.public java.lang.String[] getPromoCodes()
public void populate() throws java.lang.Exception
DataBeanmanager.activate()
runs.populate
in interface SmartDataBean
populate
in class SmartDataBeanImpl
java.lang.Exception
- This method should never be thrown because there is no data retrieved to populate the data bean.SmartDataBean.populate()
public Protectable getDelegate() throws java.lang.Exception
getDelegate
in interface Delegator
java.lang.Exception
Delegator.getDelegate()
public PromotionCodeData[] getCodes()