Class RuleCreatePromotionFromTemplateAction
- java.lang.Object
-
- com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
-
- de.hybris.platform.ruleenginebackoffice.actions.AbstractInteractiveAction<PromotionSourceRuleTemplateModel,java.lang.Object>
-
- de.hybris.platform.promotionenginebackoffice.actions.RuleCreatePromotionFromTemplateAction
-
- All Implemented Interfaces:
com.hybris.cockpitng.actions.CockpitAction<PromotionSourceRuleTemplateModel,java.lang.Object>,com.hybris.cockpitng.engine.ComponentWidgetAdapterAware,InteractiveAction<PromotionSourceRuleTemplateModel,java.lang.Object>
public class RuleCreatePromotionFromTemplateAction extends AbstractInteractiveAction<PromotionSourceRuleTemplateModel,java.lang.Object>
Action to create a promotion source rule by template.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.ruleenginebackoffice.actions.AbstractInteractiveAction
DEFAULT_ALERT_DIALOG_OK, DEFAULT_ALERT_DIALOG_TEMPLATE_URL, DEFAULT_ALERT_DIALOG_WIDTH
-
-
Constructor Summary
Constructors Constructor Description RuleCreatePromotionFromTemplateAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddDialogWindowAttribute(com.hybris.cockpitng.actions.ActionContext<PromotionSourceRuleTemplateModel> context, org.zkoss.zul.Window window)Override the method in subclasses to supplement dialog window with attributesprotected java.lang.StringgetDialogTemplate(com.hybris.cockpitng.actions.ActionContext<PromotionSourceRuleTemplateModel> context)protected java.lang.StringgetDialogTitle(com.hybris.cockpitng.actions.ActionContext<PromotionSourceRuleTemplateModel> context)protected PromotionSourceRuleTemplateModelgetRuleTemplate(com.hybris.cockpitng.actions.ActionContext<PromotionSourceRuleTemplateModel> context)-
Methods inherited from class de.hybris.platform.ruleenginebackoffice.actions.AbstractInteractiveAction
canPerform, doOnAlertOkClick, getAlertDialogTemplate, getAlertDialogWidth, getArguments, getDialogHeight, getDialogTop, getDialogWidth, getRoot, perform, sendOutputDataToSocket, showAlertDialog
-
Methods inherited from class com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
addSocketInputEventListener, getComponentID, handleSocketInputEvent, initialize, initializeDefaultEventListeners, registerStubInstance, sendOutput, setComponentID, unregisterStubInstance
-
-
-
-
Method Detail
-
getDialogTemplate
protected java.lang.String getDialogTemplate(com.hybris.cockpitng.actions.ActionContext<PromotionSourceRuleTemplateModel> context)
- Specified by:
getDialogTemplatein classAbstractInteractiveAction<PromotionSourceRuleTemplateModel,java.lang.Object>
-
getDialogTitle
protected java.lang.String getDialogTitle(com.hybris.cockpitng.actions.ActionContext<PromotionSourceRuleTemplateModel> context)
- Specified by:
getDialogTitlein classAbstractInteractiveAction<PromotionSourceRuleTemplateModel,java.lang.Object>
-
getRuleTemplate
protected PromotionSourceRuleTemplateModel getRuleTemplate(com.hybris.cockpitng.actions.ActionContext<PromotionSourceRuleTemplateModel> context)
-
addDialogWindowAttribute
protected void addDialogWindowAttribute(com.hybris.cockpitng.actions.ActionContext<PromotionSourceRuleTemplateModel> context, org.zkoss.zul.Window window)
Description copied from class:AbstractInteractiveActionOverride the method in subclasses to supplement dialog window with attributes- Overrides:
addDialogWindowAttributein classAbstractInteractiveAction<PromotionSourceRuleTemplateModel,java.lang.Object>- Parameters:
context- action contextwindow- window to supplement attributes
-
-