public class AdminPromotion
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
active
Boolean that defines whether the promotion is active
|
private AdminOrderProduct[] |
applicableProducts
An array of OrderProducts to which the promotion can be applied
|
private int |
categoryRule
The rule for allowing products only from certain categories in the promotion.
|
private AdminCoupon[] |
coupons
A valid coupon[] for the promotion
|
private boolean |
cumulative
Boolean that defines whether the promotion is cumulative with other promotions.
|
private java.lang.String |
custom1
Custom fields
|
private java.lang.String |
custom10 |
private java.lang.String |
custom11 |
private java.lang.String |
custom12 |
private java.lang.String |
custom13 |
private java.lang.String |
custom14 |
private java.lang.String |
custom15 |
private java.lang.String |
custom16 |
private java.lang.String |
custom17 |
private java.lang.String |
custom18 |
private java.lang.String |
custom19 |
private java.lang.String |
custom2 |
private java.lang.String |
custom20 |
private java.lang.String |
custom3 |
private java.lang.String |
custom4 |
private java.lang.String |
custom5 |
private java.lang.String |
custom6 |
private java.lang.String |
custom7 |
private java.lang.String |
custom8 |
private java.lang.String |
custom9 |
private int |
customerGroupRule
The rule for allowing customers belonging to customer groups to use the promotion.
|
private int |
customerRule
The rule for allowing customers to use the promotion.
|
private java.util.Date |
dateAdded
The value for the dateAdded field
|
private java.lang.String |
description
Description
|
private java.util.Date |
endDate
The date the promotion ends
|
private int |
id
The value for the promotionId field
|
private boolean |
inTestMode
When a promotion is read through the KonaKart APIs, the inTestMode attribute is set if the
promotion is in test mode.
|
private java.util.Date |
lastModified
The value for the lastModified field
|
private int |
manufacturerRule
The rule for allowing products only from certain manufacturers in the promotion.
|
private int |
maxUse
The maximum number of times that the promotion can be used by a single customer
|
private java.lang.String |
name
Name
|
private int |
numCategories
Number of categories included or excluded
|
private int |
numCoupons
Number of coupons included or excluded
|
private int |
numCustomerGroups
Number of customer groups included or excluded
|
private int |
numCustomers
Number of customers included or excluded
|
private int |
numExpressions
Number of expressions included
|
private int |
numManufacturers
Number of manufacturers included or excluded
|
private int |
numProducts
Number of products included or excluded
|
private java.lang.String |
orderTotalCode
The code of the Order Total module used to calculate the promotion
|
private int |
productRule
The rule for allowing only certain products in the promotion.
|
private boolean |
requiresCoupon
Promotion requires a coupon
|
private java.lang.Boolean |
setTestMode
This Boolean is used whenever a promotion is inserted or edited.
|
private java.util.Date |
startDate
The date the promotion starts
|
private int |
timesUsed
The number of times that the promotion has been used
|
private int |
totalMaxUse
The maximum number of times that the promotion can be used
|
Constructor and Description |
---|
AdminPromotion()
Constructor
|
AdminPromotion(com.workingdogs.village.Record vr,
com.konakart.db.KKCriteria c)
Instantiates the attributes of the Promotion object from a Record object
|
Modifier and Type | Method and Description |
---|---|
AdminOrderProduct[] |
getApplicableProducts() |
int |
getCategoryRule() |
AdminCoupon[] |
getCoupons() |
java.lang.String |
getCustom1() |
java.lang.String |
getCustom10() |
java.lang.String |
getCustom11() |
java.lang.String |
getCustom12() |
java.lang.String |
getCustom13() |
java.lang.String |
getCustom14() |
java.lang.String |
getCustom15() |
java.lang.String |
getCustom16() |
java.lang.String |
getCustom17() |
java.lang.String |
getCustom18() |
java.lang.String |
getCustom19() |
java.lang.String |
getCustom2() |
java.lang.String |
getCustom20() |
java.lang.String |
getCustom3() |
java.lang.String |
getCustom4() |
java.lang.String |
getCustom5() |
java.lang.String |
getCustom6() |
java.lang.String |
getCustom7() |
java.lang.String |
getCustom8() |
java.lang.String |
getCustom9() |
int |
getCustomerGroupRule() |
int |
getCustomerRule() |
java.util.Date |
getDateAdded() |
java.lang.String |
getDescription() |
java.util.Date |
getEndDate() |
int |
getId() |
java.util.Date |
getLastModified() |
int |
getManufacturerRule() |
int |
getMaxUse() |
java.lang.String |
getName() |
int |
getNumCategories() |
int |
getNumCoupons() |
int |
getNumCustomerGroups() |
int |
getNumCustomers() |
int |
getNumExpressions() |
int |
getNumManufacturers() |
int |
getNumProducts() |
java.lang.String |
getOrderTotalCode() |
int |
getProductRule() |
java.lang.Boolean |
getSetTestMode() |
java.util.Date |
getStartDate() |
boolean |
getStatus(java.util.Date storeTime)
Returns the status of the object.
|
int |
getTimesUsed() |
int |
getTotalMaxUse() |
boolean |
isActive() |
boolean |
isCumulative() |
boolean |
isInTestMode() |
boolean |
isRequiresCoupon() |
void |
setActive(boolean active) |
void |
setApplicableProducts(AdminOrderProduct[] applicableProducts) |
void |
setCategoryRule(int categoryRule) |
void |
setCoupons(AdminCoupon[] coupons) |
void |
setCumulative(boolean cumulative) |
void |
setCustom1(java.lang.String custom1) |
void |
setCustom10(java.lang.String custom10) |
void |
setCustom11(java.lang.String custom11) |
void |
setCustom12(java.lang.String custom12) |
void |
setCustom13(java.lang.String custom13) |
void |
setCustom14(java.lang.String custom14) |
void |
setCustom15(java.lang.String custom15) |
void |
setCustom16(java.lang.String custom16) |
void |
setCustom17(java.lang.String custom17) |
void |
setCustom18(java.lang.String custom18) |
void |
setCustom19(java.lang.String custom19) |
void |
setCustom2(java.lang.String custom2) |
void |
setCustom20(java.lang.String custom20) |
void |
setCustom3(java.lang.String custom3) |
void |
setCustom4(java.lang.String custom4) |
void |
setCustom5(java.lang.String custom5) |
void |
setCustom6(java.lang.String custom6) |
void |
setCustom7(java.lang.String custom7) |
void |
setCustom8(java.lang.String custom8) |
void |
setCustom9(java.lang.String custom9) |
void |
setCustomerGroupRule(int customerGroupRule) |
void |
setCustomerRule(int customerRule) |
void |
setDateAdded(java.util.Date dateAdded) |
void |
setDescription(java.lang.String description) |
void |
setEndDate(java.util.Date endDate) |
void |
setId(int id) |
void |
setInTestMode(boolean inTestMode) |
void |
setLastModified(java.util.Date lastModified) |
void |
setManufacturerRule(int manufacturerRule) |
void |
setMaxUse(int maxUse) |
void |
setName(java.lang.String name) |
void |
setNumCategories(int numCategories) |
void |
setNumCoupons(int numCoupons) |
void |
setNumCustomerGroups(int numCustomerGroups) |
void |
setNumCustomers(int numCustomers) |
void |
setNumExpressions(int numExpressions) |
void |
setNumManufacturers(int numManufacturers) |
void |
setNumProducts(int numProducts) |
void |
setOrderTotalCode(java.lang.String orderTotalCode) |
void |
setProductRule(int productRule) |
void |
setRequiresCoupon(boolean requiresCoupon) |
void |
setSetTestMode(java.lang.Boolean setTestMode) |
void |
setStartDate(java.util.Date startDate) |
void |
setTimesUsed(int timesUsed) |
void |
setTotalMaxUse(int totalMaxUse) |
java.lang.String |
toString() |
java.lang.String |
toStringBrief() |
private int id
private java.lang.String description
private java.lang.String name
private java.lang.String orderTotalCode
private boolean active
private boolean cumulative
private boolean requiresCoupon
private java.util.Date startDate
private java.util.Date endDate
private java.util.Date lastModified
private java.util.Date dateAdded
private int maxUse
private int totalMaxUse
private int timesUsed
private boolean inTestMode
private java.lang.Boolean setTestMode
private int customerRule
private int customerGroupRule
private int categoryRule
private int manufacturerRule
private int productRule
private java.lang.String custom1
private java.lang.String custom2
private java.lang.String custom3
private java.lang.String custom4
private java.lang.String custom5
private java.lang.String custom6
private java.lang.String custom7
private java.lang.String custom8
private java.lang.String custom9
private java.lang.String custom10
private java.lang.String custom11
private java.lang.String custom12
private java.lang.String custom13
private java.lang.String custom14
private java.lang.String custom15
private java.lang.String custom16
private java.lang.String custom17
private java.lang.String custom18
private java.lang.String custom19
private java.lang.String custom20
private AdminOrderProduct[] applicableProducts
private AdminCoupon[] coupons
private int numCustomers
private int numCustomerGroups
private int numProducts
private int numManufacturers
private int numCategories
private int numCoupons
private int numExpressions
public AdminPromotion()
public AdminPromotion(com.workingdogs.village.Record vr, com.konakart.db.KKCriteria c) throws com.workingdogs.village.DataSetException
vr
- Record containing datac
- Criteria containing column namescom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringBrief()
public boolean isActive()
public boolean getStatus(java.util.Date storeTime)
storeTime
- The current storeTime which is used to compare with the start and end dates of the
promotion. If null then the standard time of the server is used.public void setActive(boolean active)
active
- The active to set.public boolean isCumulative()
public void setCumulative(boolean cumulative)
cumulative
- The cumulative to set.public java.lang.String getCustom1()
public void setCustom1(java.lang.String custom1)
custom1
- The custom1 to set.public java.lang.String getCustom2()
public void setCustom2(java.lang.String custom2)
custom2
- The custom2 to set.public java.lang.String getCustom3()
public void setCustom3(java.lang.String custom3)
custom3
- The custom3 to set.public java.lang.String getCustom4()
public void setCustom4(java.lang.String custom4)
custom4
- The custom4 to set.public java.lang.String getCustom5()
public void setCustom5(java.lang.String custom5)
custom5
- The custom5 to set.public java.lang.String getCustom6()
public void setCustom6(java.lang.String custom6)
custom6
- The custom6 to set.public java.lang.String getCustom7()
public void setCustom7(java.lang.String custom7)
custom7
- The custom7 to set.public java.lang.String getCustom8()
public void setCustom8(java.lang.String custom8)
custom8
- The custom8 to set.public java.lang.String getCustom9()
public void setCustom9(java.lang.String custom9)
custom9
- The custom9 to set.public java.lang.String getCustom10()
public void setCustom10(java.lang.String custom10)
custom10
- The custom10 to set.public int getId()
public void setId(int id)
id
- The id to set.public java.lang.String getOrderTotalCode()
public void setOrderTotalCode(java.lang.String orderTotalCode)
orderTotalCode
- The orderTotalCode to set.public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to set.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- The description to set.public boolean isRequiresCoupon()
public void setRequiresCoupon(boolean requiresCoupon)
requiresCoupon
- The requiresCoupon to set.public int getCategoryRule()
public void setCategoryRule(int categoryRule)
categoryRule
- The categoryRule to set.public int getCustomerRule()
public void setCustomerRule(int customerRule)
customerRule
- The customerRule to set.public int getManufacturerRule()
public void setManufacturerRule(int manufacturerRule)
manufacturerRule
- The manufacturerRule to set.public int getProductRule()
public void setProductRule(int productRule)
productRule
- The productRule to set.public AdminOrderProduct[] getApplicableProducts()
public void setApplicableProducts(AdminOrderProduct[] applicableProducts)
applicableProducts
- The applicableProducts to set.public java.util.Date getDateAdded()
public void setDateAdded(java.util.Date dateAdded)
dateAdded
- The dateAdded to set.public java.util.Date getEndDate()
public void setEndDate(java.util.Date endDate)
endDate
- The endDate to set.public java.util.Date getLastModified()
public void setLastModified(java.util.Date lastModified)
lastModified
- The lastModified to set.public java.util.Date getStartDate()
public void setStartDate(java.util.Date startDate)
startDate
- The startDate to set.public AdminCoupon[] getCoupons()
public void setCoupons(AdminCoupon[] coupons)
coupons
- The coupons to set.public int getNumCategories()
public void setNumCategories(int numCategories)
numCategories
- The numCategories to set.public int getNumCustomers()
public void setNumCustomers(int numCustomers)
numCustomers
- The numCustomers to set.public int getNumManufacturers()
public void setNumManufacturers(int numManufacturers)
numManufacturers
- The numManufacturers to set.public int getNumProducts()
public void setNumProducts(int numProducts)
numProducts
- The numProducts to set.public int getNumCoupons()
public void setNumCoupons(int numCoupons)
numCoupons
- The numCoupons to set.public int getCustomerGroupRule()
public void setCustomerGroupRule(int customerGroupRule)
customerGroupRule
- The customerGroupRule to set.public int getNumCustomerGroups()
public void setNumCustomerGroups(int numCustomerGroups)
numCustomerGroups
- The numCustomerGroups to set.public int getNumExpressions()
public void setNumExpressions(int numExpressions)
numExpressions
- the numExpressions to setpublic int getMaxUse()
public void setMaxUse(int maxUse)
maxUse
- the maxUse to setpublic int getTotalMaxUse()
public void setTotalMaxUse(int totalMaxUse)
totalMaxUse
- the totalMaxUse to setpublic int getTimesUsed()
public void setTimesUsed(int timesUsed)
timesUsed
- the timesUsed to setpublic boolean isInTestMode()
public void setInTestMode(boolean inTestMode)
inTestMode
- the inTestMode to setpublic java.lang.Boolean getSetTestMode()
public void setSetTestMode(java.lang.Boolean setTestMode)
setTestMode
- the setTestMode to setpublic java.lang.String getCustom11()
public void setCustom11(java.lang.String custom11)
custom11
- the custom11 to setpublic java.lang.String getCustom12()
public void setCustom12(java.lang.String custom12)
custom12
- the custom12 to setpublic java.lang.String getCustom13()
public void setCustom13(java.lang.String custom13)
custom13
- the custom13 to setpublic java.lang.String getCustom14()
public void setCustom14(java.lang.String custom14)
custom14
- the custom14 to setpublic java.lang.String getCustom15()
public void setCustom15(java.lang.String custom15)
custom15
- the custom15 to setpublic java.lang.String getCustom16()
public void setCustom16(java.lang.String custom16)
custom16
- the custom16 to setpublic java.lang.String getCustom17()
public void setCustom17(java.lang.String custom17)
custom17
- the custom17 to setpublic java.lang.String getCustom18()
public void setCustom18(java.lang.String custom18)
custom18
- the custom18 to setpublic java.lang.String getCustom19()
public void setCustom19(java.lang.String custom19)
custom19
- the custom19 to setpublic java.lang.String getCustom20()
public void setCustom20(java.lang.String custom20)
custom20
- the custom20 to setCopyright © 2018 DS Data Systems UK Ltd.