java.lang.Object | +--com.ibm.commerce.beans.InputDataBeanImpl | +--com.ibm.commerce.beans.SmartDataBeanImpl | +--com.ibm.commerce.tools.promotions.beansrc.DiscountDetailsBeanBase | +--com.ibm.commerce.tools.promotions.DiscountDetailsBean
This bean representing an discount with its all properties.
Field Summary | |
---|---|
protected
java.lang.String |
adminDesc Provide the administrator's description |
protected
boolean |
allShoppers Provide the boolean value if the discount is for all shoppers or not |
protected
boolean |
alwaysInEffect Provide the value of effection of the discount is always or not |
protected
java.lang.String |
calCodeId Provide the Id of the discount |
protected
java.lang.Integer |
calRuleId Provide the Id of the calculation rule |
protected
java.lang.Integer |
calScaleId Provide the Id of the calScale |
protected
java.lang.String |
code Provide the name of the discount |
static java.lang.String |
COPYRIGHT The internal copyright field. |
protected
java.lang.String |
currency Provide the value of currency |
protected
java.lang.String |
description Provide the description |
protected
java.util.Vector |
discountValueVector Provide the vector of the discount values |
protected
int |
discSubType Provide the value of the sub discount type |
protected
int |
discType Provide the value of the discount type, 0 = order, 1 = product |
protected
java.lang.String |
endDate Provide the end date |
protected
java.lang.Integer |
groupBy Provide the value to be grouped by |
protected
boolean |
importedDiscount Provide the boolean value if it is a imported discount |
protected
java.lang.Integer |
languageId Provide the Id of the language |
protected
java.util.Vector |
memberGroupNameVector Provide the vector of the member groups' names |
protected
java.util.Vector |
memberGroupVector Provide the vector of the member group |
protected
java.lang.String |
published Provide the value if it's published or unpublished |
protected
java.util.Vector |
rangeStartVector Provide the vector of the range start values |
protected
int |
rangeType Provide the value of the range type |
protected
java.lang.Integer |
scaleId Provide the Id of the scale |
protected
java.lang.String |
startDate Provide the start date |
protected
java.lang.Integer |
storeId Provide the Id of the store |
Fields inherited from class com.ibm.commerce.beans. SmartDataBeanImpl |
commandContext |
Fields inherited from class com.ibm.commerce.beans. InputDataBeanImpl |
requestProperties |
Fields inherited from interface com.ibm.commerce.tools.common. ECToolsConstants |
EC_LINE_SEPARATOR,
EC_TOOLS_FULFILLMENT_CENTER_ID,
EC_TOOLS_MERCHANT_CENTER_URL,
EC_TOOLS_STORE_LANGUAGE_URL,
EC_TOOLS_STORES_ACCESS_CONTROL_REQUIRED,
EC_TOOLS_STORES_EMPTY,
EC_TOOLS_STORES_NO_ACCESS,
EC_TOOLS_STORES_NOT_ADMINISTRATOR,
EC_XML,
EC_XMLFILE,
EC_XMLFILEOBJECT,
EC_XMLOBJECT,
EC_XMLSTRING |
Fields inherited from interface com.ibm.commerce.tools.promotions. ECPromotionsConstants |
BY_AMOUNT_PER_UNIT,
BY_FIXED_AMOUNT,
BY_PERCENTAGE,
CONTRACT_DISPLAY,
CUMULATIVE_FALSE,
CURRENCY_RANGE,
DISCOUNT_PUBLISHED,
DISCOUNT_RESOURCES,
DO_NOT_GROUP,
EC_Calcode_Id,
EC_Code,
EC_EndDate,
EC_Orderby,
EC_Range_Max,
EC_StartDate,
EC_Status,
ERROR_DISCOUNT_APPLIED,
ERROR_DISCOUNT_DUPLICATE_CODE,
ERROR_DISCOUNT_NOT_SAVED,
ITEM_DISPLAY,
MSG_DISCOUNT_APPLIED,
MSG_DISCOUNT_SAVED,
ORDER_DISPLAY,
ORDER_LEVEL,
ORDERITEM_DISPLAY,
PRODUCT_DISPLAY,
PRODUCT_LEVEL,
QTY_RANGE,
REST_OF_TIMESTRING,
ZERO_STRING |
Fields inherited from interface com.ibm.commerce.beans. DataBean |
emptyString |
Constructor Summary | |
---|---|
DiscountDetailsBean() DiscountDetailsBean constructor. | |
DiscountDetailsBean(java.lang.String aCalCodeId) DiscountDetailsBean constructor. |
Method Summary | |
---|---|
java.lang.String |
getAdminDescription() get administrator's description. |
java.lang.String |
getCalCodeId() get Id of this discount. |
java.lang.Integer |
getCalRuleId() get Id of the rule for this discount. |
java.lang.Integer |
getCalScaleId() get Id of the scale for this discount. |
java.lang.String |
getCode() get name of the discount. |
java.lang.String |
getCurrency() get currency |
java.lang.String |
getDescription() get shopper's description. |
java.util.Vector |
getDiscountValueVector() get the vector of the discount values. |
int |
getDiscSubType() get Discount sub type. |
int |
getDiscType() get Discount type. |
java.lang.String |
getEndDate() get end date of this discount's duration. |
java.lang.Integer |
getGroupBy() get the value to be grouped by. |
java.lang.Integer |
getLanguageId() get Language ID. |
java.util.Vector |
getMemberGroupNameVector() get vector of the member group names. |
java.util.Vector |
getMemberGroupVector() get Vector of the member groups. |
java.lang.String |
getPublished() get flag of published or unpublished. |
java.util.Vector |
getRangeStartVector() get vector of the start values for discount multiple range. |
int |
getRangeType() get range type |
java.lang.Integer |
getScaleId() get scale id |
java.lang.String |
getStartDate() get start date of this discount duration. |
java.lang.Integer |
getStoreId() get store id. |
boolean |
isAllShoppers() get true if this discount is for all the shoppers. |
boolean |
isAlwaysInEffect() get true if this discount is always in effect, or end date is null. |
boolean |
isImportedDiscount() get true if this discount is imported. |
void |
populate() populate this databean to Discount Summery Page. |
Methods inherited from class com.ibm.commerce.tools.promotions.beansrc. DiscountDetailsBeanBase |
getDelegate,
getOwner |
Methods inherited from class com.ibm.commerce.beans. SmartDataBeanImpl |
fulfills,
getCommandContext,
getResources,
setCommandContext |
Methods inherited from class com.ibm.commerce.beans. InputDataBeanImpl |
getRequestProperties,
setRequestProperties |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.beans. InputDataBean |
getRequestProperties,
setRequestProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected java.lang.String calCodeId
protected java.lang.String code
protected java.lang.Integer storeId
protected java.lang.Integer groupBy
protected java.lang.String published
protected java.lang.String adminDesc
protected java.lang.String description
protected java.lang.Integer languageId
protected java.lang.Integer calRuleId
protected java.lang.String startDate
protected java.lang.String endDate
protected boolean alwaysInEffect
protected java.util.Vector memberGroupVector
protected java.util.Vector memberGroupNameVector
protected boolean allShoppers
protected java.lang.Integer scaleId
protected java.lang.String currency
protected java.util.Vector rangeStartVector
protected java.util.Vector discountValueVector
protected java.lang.Integer calScaleId
protected int rangeType
protected int discType
protected int discSubType
protected boolean importedDiscount
Constructor Detail |
---|
public DiscountDetailsBean()
public DiscountDetailsBean(java.lang.String aCalCodeId)
Method Detail |
---|
public java.lang.String getAdminDescription()
public java.lang.String getCalCodeId()
public java.lang.Integer getCalRuleId()
public java.lang.Integer getCalScaleId()
public java.lang.String getCode()
public java.lang.String getCurrency()
public java.lang.String getDescription()
public java.util.Vector getDiscountValueVector()
public int getDiscSubType()
public int getDiscType()
public java.lang.String getEndDate()
public java.lang.Integer getGroupBy()
public java.lang.Integer getLanguageId()
public java.util.Vector getMemberGroupNameVector()
public java.util.Vector getMemberGroupVector()
public java.lang.String getPublished()
public java.util.Vector getRangeStartVector()
public int getRangeType()
public java.lang.Integer getScaleId()
public java.lang.String getStartDate()
public java.lang.Integer getStoreId()
public boolean isAllShoppers()
public boolean isAlwaysInEffect()
public boolean isImportedDiscount()
public void populate() throws java.lang.Exception
populate
in interface
SmartDataBean
populate
in class
SmartDataBeanImpl
java.lang.Exception
- should not happen since there is no data
retrieved to populate the databean.