|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdminPromotionMgrIf
AdminPromotionMgrIf
Method Summary | |
---|---|
void |
addCategoriesToPromotion(AdminCategory[] categories,
int promotionId,
int rule)
Add the array of categories to the promotion |
void |
addCouponsToPromotion(AdminCoupon[] coupons,
int promotionId)
Add the array of coupons to the promotion. |
void |
addCustomerGroupsToPromotion(int[] groupIds,
int promotionId,
int rule)
Add customers to the promotion belonging to the groups in the array of group ids. |
void |
addCustomersToPromotion(AdminCustomer[] customers,
int promotionId,
int rule,
int maxUse)
Add the array of customers to the promotion |
void |
addCustomersToPromotion(java.util.Calendar lastOrderDate,
boolean havePlacedOrder,
int promotionId,
int rule,
int maxUse)
Add to the promotion identified by promotionId, the customers who have or haven't placed an order since the lastOrderDate passed in as a parameter. |
void |
addExpressionsToPromotion(AdminExpression[] expressions,
int promotionId)
Add the array of expressions to the promotion |
void |
addGiftCertificatesToPromotion(AdminProduct[] giftCertificates,
int promotionId)
Associates the gift certificate products with the promotion. |
void |
addManufacturersToPromotion(AdminManufacturer[] manufacturers,
int promotionId,
int rule)
Add the array of manufacturers to the promotion |
void |
addProductsToPromotion(AdminProduct[] products,
int promotionId,
int rule)
Add the array of products to the promotion. |
void |
addPromotionsToCoupon(AdminPromotion[] promotions,
int couponId)
Add the array of promotions to the coupon. |
void |
deleteCoupon(int couponId)
The coupon is deleted along with any entries in the promotion to coupon table. |
void |
deletePromotion(int promotionId)
Delete the promotion referenced to by promotionId. |
void |
editCoupon(AdminCoupon coupon)
Edits the coupon |
void |
editPromotion(AdminPromotion promotion)
Edits the promotion |
AdminCouponSearchResult |
getCoupons(AdminCouponSearch search,
int offset,
int size)
Returns an AdminCouponSearchResult object. |
int |
getCouponsCount(AdminCouponSearch search)
Returns a count of the number of Coupons |
AdminCoupon[] |
getCouponsPerPromotion(int promotionId)
Get an array of Admin coupon objects for a promotion |
int |
getCustomersCountWhoHaventPlacedAnOrderSince(java.util.Calendar lastOrderDate)
Return the count of the number of customers who haven't placed an order since the lastOrderDate passed in as a parameter. |
int |
getCustomersCountWhoHavePlacedAnOrderSince(java.util.Calendar lastOrderDate)
Return the count of the number of customers who have placed an order since the lastOrderDate passed in as a parameter. |
AdminProducts |
getGiftCertificatesPerPromotion(AdminProductSearch search,
int offset,
int size)
Get an array of Admin product gift certificate objects for a promotion. |
AdminProducts |
getProductsPerPromotion(AdminProductSearch search,
int offset,
int size)
Get an array of Admin product objects for a promotion. |
AdminPromotion |
getPromotion(int id,
boolean includeCoupons,
boolean includeStats)
Get a promotion object and an array of associated coupon objects |
int |
getPromotionIdForGiftCertificate(AdminOrderProduct op)
Get the promotion id for an order product object containing a gift certificate. |
AdminPromotionSearchResult |
getPromotions(AdminPromotionSearch search,
int offset,
int size)
Returns an AdminPromotionSearchResult object. |
int |
getPromotionsCount(AdminPromotionSearch search)
Returns a count of the number of Promotions |
AdminPromotion[] |
getPromotionsPerCoupon(int couponId)
Get an array of Admin promotion objects for a coupon |
int |
insertCoupon(AdminCoupon coupon)
Inserts a coupon |
int |
insertCoupon(AdminCoupon coupon,
int promotionId)
Inserts a coupon and also a record in the promotion_to_coupon table to associate the coupon to a promotion |
int |
insertPromotion(AdminPromotion prom)
Insert the promotion passed in as a parameter. |
void |
refreshConfigs()
Refresh the configuration of the Admin Currency Manager |
void |
removeCategoriesFromPromotion(AdminCategory[] categories,
int promotionId)
Remove an array of categories from the promotion |
void |
removeCouponsFromPromotion(AdminCoupon[] coupons,
int promotionId)
Remove an array of coupons from the promotion |
void |
removeCustomerGroupsFromPromotion(int[] groupIds,
int promotionId)
Remove an array of groupIds from the promotion |
void |
removeCustomersFromPromotion(AdminCustomer[] customers,
int promotionId)
Remove an array of customers from the promotion |
void |
removeExpressionsFromPromotion(AdminExpression[] expressions,
int promotionId)
Remove an array of expressions from the promotion |
void |
removeGiftCertificatesFromPromotion(AdminProduct[] giftCertificates,
int promotionId)
Remove an array of gift certificates from the promotion. |
void |
removeManufacturersFromPromotion(AdminManufacturer[] manufacturers,
int promotionId)
Remove an array of manufacturers from the promotion |
void |
removeProductsFromPromotion(AdminProduct[] products,
int promotionId)
Remove an array of products from the promotion |
void |
removePromotionsFromCoupon(AdminPromotion[] promotions,
int couponId)
Remove an array of promotions from the coupon |
Method Detail |
---|
int getCustomersCountWhoHaventPlacedAnOrderSince(java.util.Calendar lastOrderDate) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
lastOrderDate
-
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
int getCustomersCountWhoHavePlacedAnOrderSince(java.util.Calendar lastOrderDate) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
lastOrderDate
-
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
void addCustomersToPromotion(java.util.Calendar lastOrderDate, boolean havePlacedOrder, int promotionId, int rule, int maxUse) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
lastOrderDate
- havePlacedOrder
- If true we add customers who have placed an orderpromotionId
- rule
- maxUse
-
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
int insertPromotion(AdminPromotion prom) throws java.lang.Exception
prom
-
java.lang.Exception
int insertCoupon(AdminCoupon coupon) throws java.lang.Exception
coupon
-
java.lang.Exception
int insertCoupon(AdminCoupon coupon, int promotionId) throws java.lang.Exception
coupon
- promotionId
-
java.lang.Exception
void deletePromotion(int promotionId) throws java.lang.Exception
promotionId
-
java.lang.Exception
void deleteCoupon(int couponId) throws org.apache.torque.TorqueException
couponId
-
org.apache.torque.TorqueException
void editPromotion(AdminPromotion promotion) throws java.lang.Exception
promotion
-
java.lang.Exception
void editCoupon(AdminCoupon coupon) throws java.lang.Exception
coupon
-
java.lang.Exception
AdminPromotion getPromotion(int id, boolean includeCoupons, boolean includeStats) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
id
- includeCoupons
- If true we add a coupon array to the promotion if any coupons existincludeStats
- If true we calculate how many manufacturers, products, categories, customers,
expressions and coupons are included or excluded from the promotion
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
AdminCoupon[] getCouponsPerPromotion(int promotionId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
promotionId
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
AdminProducts getProductsPerPromotion(AdminProductSearch search, int offset, int size) throws java.lang.Exception
search
- offset
- size
-
java.lang.Exception
AdminProducts getGiftCertificatesPerPromotion(AdminProductSearch search, int offset, int size) throws java.lang.Exception
search
- offset
- size
-
java.lang.Exception
AdminPromotion[] getPromotionsPerCoupon(int couponId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
couponId
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
AdminPromotionSearchResult getPromotions(AdminPromotionSearch search, int offset, int size) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
search
- offset
- size
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
AdminCouponSearchResult getCoupons(AdminCouponSearch search, int offset, int size) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
search
- offset
- size
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
void addCustomersToPromotion(AdminCustomer[] customers, int promotionId, int rule, int maxUse) throws org.apache.torque.TorqueException
customers
- promotionId
- rule
- maxUse
- -1 for unlimited use
org.apache.torque.TorqueException
void addCustomerGroupsToPromotion(int[] groupIds, int promotionId, int rule) throws java.lang.Exception
groupIds
- promotionId
- rule
-
java.lang.Exception
void addManufacturersToPromotion(AdminManufacturer[] manufacturers, int promotionId, int rule) throws org.apache.torque.TorqueException
manufacturers
- promotionId
- rule
-
org.apache.torque.TorqueException
void addExpressionsToPromotion(AdminExpression[] expressions, int promotionId) throws org.apache.torque.TorqueException
expressions
- promotionId
-
org.apache.torque.TorqueException
void addCategoriesToPromotion(AdminCategory[] categories, int promotionId, int rule) throws org.apache.torque.TorqueException
categories
- promotionId
- rule
-
org.apache.torque.TorqueException
void addProductsToPromotion(AdminProduct[] products, int promotionId, int rule) throws org.apache.torque.TorqueException
products
- promotionId
- rule
-
org.apache.torque.TorqueException
void removeCustomersFromPromotion(AdminCustomer[] customers, int promotionId) throws org.apache.torque.TorqueException
customers
- promotionId
-
org.apache.torque.TorqueException
void removeManufacturersFromPromotion(AdminManufacturer[] manufacturers, int promotionId) throws org.apache.torque.TorqueException
manufacturers
- promotionId
-
org.apache.torque.TorqueException
void removeExpressionsFromPromotion(AdminExpression[] expressions, int promotionId) throws org.apache.torque.TorqueException
expressions
- promotionId
-
org.apache.torque.TorqueException
void removeCategoriesFromPromotion(AdminCategory[] categories, int promotionId) throws org.apache.torque.TorqueException
categories
- promotionId
-
org.apache.torque.TorqueException
void removeCustomerGroupsFromPromotion(int[] groupIds, int promotionId) throws org.apache.torque.TorqueException
groupIds
- promotionId
-
org.apache.torque.TorqueException
void removeProductsFromPromotion(AdminProduct[] products, int promotionId) throws org.apache.torque.TorqueException
products
- promotionId
-
org.apache.torque.TorqueException
void removeCouponsFromPromotion(AdminCoupon[] coupons, int promotionId) throws org.apache.torque.TorqueException
coupons
- promotionId
-
org.apache.torque.TorqueException
void removePromotionsFromCoupon(AdminPromotion[] promotions, int couponId) throws org.apache.torque.TorqueException
promotions
- couponId
-
org.apache.torque.TorqueException
void addCouponsToPromotion(AdminCoupon[] coupons, int promotionId) throws org.apache.torque.TorqueException
coupons
- promotionId
-
org.apache.torque.TorqueException
void addPromotionsToCoupon(AdminPromotion[] promotions, int couponId) throws org.apache.torque.TorqueException
promotions
- couponId
-
org.apache.torque.TorqueException
int getPromotionsCount(AdminPromotionSearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
search
- Search criteria
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
int getCouponsCount(AdminCouponSearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
search
- Search criteria
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
void refreshConfigs() throws java.lang.Exception
java.lang.Exception
int getPromotionIdForGiftCertificate(AdminOrderProduct op) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
op
-
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
void removeGiftCertificatesFromPromotion(AdminProduct[] giftCertificates, int promotionId) throws org.apache.torque.TorqueException
giftCertificates
- promotionId
-
org.apache.torque.TorqueException
void addGiftCertificatesToPromotion(AdminProduct[] giftCertificates, int promotionId) throws org.apache.torque.TorqueException
giftCertificates
- promotionId
-
org.apache.torque.TorqueException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |