Modifier and Type | Method and Description |
---|---|
List<Promotion> |
Cart.getPromotions() |
Modifier and Type | Method and Description |
---|---|
void |
Cart.setPromotions(List<Promotion> promotions) |
Constructor and Description |
---|
PromotionDetailsTemplatePanel(String id,
org.apache.wicket.model.IModel<Promotion> model,
EntityTemplate template,
CustomTemplateRenderAdapter<Promotion,org.apache.wicket.model.IModel,org.apache.wicket.Component,org.apache.wicket.MarkupContainer> defaultRenderAdapter) |
PromotionDetailsTemplatePanel(String id,
org.apache.wicket.model.IModel<Promotion> model,
EntityTemplate template,
CustomTemplateRenderAdapter<Promotion,org.apache.wicket.model.IModel,org.apache.wicket.Component,org.apache.wicket.MarkupContainer> defaultRenderAdapter) |
Modifier and Type | Class and Description |
---|---|
class |
PromotionDaoImpl<T extends Promotion>
Basic Promotion related DAO's
Promotion queries can be complex; for most practical purposes the DAO will never fully suffice and hence not interface is provided. Just a basic service provider with access to the EntityManager |
Modifier and Type | Method and Description |
---|---|
Promotion |
PromotionForUser.getPromotion()
The Promotion name
|
Modifier and Type | Method and Description |
---|---|
void |
PromotionForUser.setPromotion(Promotion promotion)
The Promotion name
|
Constructor and Description |
---|
PromotionForUser(String userId,
String code,
Promotion promotion) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultPromotionService<T extends Promotion>
Default impl for
PromotionService
This class will also generate Events of Type T or Object[]{I, causeSource as String} (after saving the Order )
Since this implements ChangeGenerator ; it will also generate Events of TypeUpdate Promotion - new Object[]{ StandardOperation.#EDIT , Promotion }
Delete Promotion - new Object[]{StandardOperation.#DELETE , Promotion }
Update PromotionForUser - new Object[]{StandardOperation.#EDIT , PromotionForUser }
Delete PromotionForUser - new Object[]{StandardOperation.#DELETE , PromotionForUser }
Generate Coupons for Users - new Object[]{StandardOperation.#ADD , List of PromotionForUser , Object ...context}
Delete Coupons for Users - new Object[]{StandardOperation.#DELETE , List of PromotionForUser , Object ...context}
Notify Users - new Object[]{StandardOperation.#NOTIFY , List of PromotionForUser , Object ...context}
|
interface |
PromotionService<T extends Promotion>
Service layer for
Promotion s and PromotionForUser s |
Modifier and Type | Method and Description |
---|---|
int |
PromotionService.deleteCoupons(List<String> userCouponIds,
Promotion promotion,
Object... context) |
int |
DefaultPromotionService.deleteCoupons(List<String> userCouponIds,
Promotion promotion,
Object... context) |
void |
PromotionService.generateCoupons(List<String> userCouponIds,
Promotion promotion,
Object... context) |
void |
DefaultPromotionService.generateCoupons(List<String> userCouponIds,
Promotion promotion,
Object... context) |
void |
PromotionService.notifyAllListeners(List<String> userCouponIds,
Promotion promotion,
Object... context)
Allow notifications using the coupon Id notation; notify all users of the Coupons about something.
|
void |
DefaultPromotionService.notifyAllListeners(List<String> userCouponIds,
Promotion promotion,
Object... context) |
Modifier and Type | Field and Description |
---|---|
protected PromotionService<Promotion> |
DefaultPromotionStrategy.promotionService |
Modifier and Type | Method and Description |
---|---|
PromotionService<Promotion> |
DefaultPromotionStrategy.getPromotionService() |
Modifier and Type | Method and Description |
---|---|
void |
DefaultPromotionStrategy.setPromotionService(PromotionService<Promotion> promotionService) |
Copyright © 2018. All rights reserved.