public class CxPromotionActionPrepareInterceptor extends Object implements PrepareInterceptor<CxPromotionActionModel>
| Constructor and Description |
|---|
CxPromotionActionPrepareInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCxAwareConditionToPromotion(PromotionSourceRuleModel promotion) |
ConfigurationService |
getConfigurationService() |
ModelService |
getModelService() |
protected PromotionSourceRuleModel |
getPromotion(CxPromotionActionModel model) |
RuleDao |
getRuleDao() |
RuleMaintenanceService |
getRuleMaintenanceService() |
protected boolean |
isRuleModificationNeeded(PromotionSourceRuleModel promotion) |
protected boolean |
isRulePublishNeeded(PromotionSourceRuleModel promotion) |
void |
onPrepare(CxPromotionActionModel model,
InterceptorContext context)
Called in the
modelService.saveAll() method. |
protected void |
publishPromotion(PromotionSourceRuleModel promotion) |
void |
setConfigurationService(ConfigurationService configurationService) |
void |
setModelService(ModelService modelService) |
void |
setRuleDao(RuleDao ruleDao) |
void |
setRuleMaintenanceService(RuleMaintenanceService ruleMaintenanceService) |
public void onPrepare(CxPromotionActionModel model, InterceptorContext context) throws InterceptorException
PrepareInterceptormodelService.saveAll() method. Prepares the values of the given model.onPrepare in interface PrepareInterceptor<CxPromotionActionModel>model - the model which values has to be preparedcontext - the InterceptorContextInterceptorException - if an error occured during the preparationprotected PromotionSourceRuleModel getPromotion(CxPromotionActionModel model) throws InterceptorException
InterceptorExceptionprotected boolean isRuleModificationNeeded(PromotionSourceRuleModel promotion)
protected boolean isRulePublishNeeded(PromotionSourceRuleModel promotion)
protected void addCxAwareConditionToPromotion(PromotionSourceRuleModel promotion)
protected void publishPromotion(PromotionSourceRuleModel promotion) throws InterceptorException
InterceptorExceptionpublic void setRuleDao(RuleDao ruleDao)
public RuleDao getRuleDao()
public void setRuleMaintenanceService(RuleMaintenanceService ruleMaintenanceService)
public RuleMaintenanceService getRuleMaintenanceService()
public void setModelService(ModelService modelService)
public ModelService getModelService()
public void setConfigurationService(ConfigurationService configurationService)
public ConfigurationService getConfigurationService()
Copyright © 2017 SAP SE. All Rights Reserved.