Class AbstractRuleCompileForModuleComposer<I>
java.lang.Object
org.zkoss.zk.ui.event.GenericEventListener
org.zkoss.zk.ui.util.GenericComposer<T>
org.zkoss.zk.ui.util.GenericAutowireComposer<T>
org.zkoss.zk.ui.util.GenericForwardComposer<org.zkoss.zk.ui.Component>
com.hybris.cockpitng.util.ViewAnnotationAwareComposer
de.hybris.platform.ruleenginebackoffice.actions.AbstractRuleCompilePublishComposer
de.hybris.platform.ruleenginebackoffice.actions.AbstractRuleCompileForModuleComposer<I>
- All Implemented Interfaces:
Serializable,org.zkoss.zk.ui.event.EventListener,org.zkoss.zk.ui.event.SerializableEventListener,org.zkoss.zk.ui.util.ComponentActivationListener,org.zkoss.zk.ui.util.ComponentCloneListener,org.zkoss.zk.ui.util.Composer<org.zkoss.zk.ui.Component>,org.zkoss.zk.ui.util.ComposerExt<org.zkoss.zk.ui.Component>
- Direct Known Subclasses:
RuleCompileAllForModuleComposer,RuleCompileForModuleComposer
public abstract class AbstractRuleCompileForModuleComposer<I>
extends AbstractRuleCompilePublishComposer
AbstractRuleCompileForModuleComposer is the abstract class for the common functionality of the rule compile/publish
actions with the rule module chooser dialog.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class org.zkoss.zk.ui.util.GenericAutowireComposer
_separator, application, applicationScope, arg, componentScope, desktop, desktopScope, execution, page, pageScope, param, requestScope, self, session, sessionScope, spaceOwner, spaceScopeFields inherited from class org.zkoss.zk.ui.util.GenericComposer
_applied -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected booleancontainsDeployedRules(String moduleName, List<SourceRuleModel> sourceRules) protected voiddoCompileAndPublishRules(String moduleName, List<SourceRuleModel> sourceRules) protected voiddoOnConfirmationClickForDeployedRules(org.zkoss.zul.Messagebox.ClickEvent clickEvent, String moduleName, List<SourceRuleModel> sourceRules) protected voiddoOnConfirmationClickForMultiVersionRules(org.zkoss.zul.Messagebox.ClickEvent clickEvent, String moduleName, List<SourceRuleModel> sourceRules) protected com.hybris.cockpitng.actions.ActionContext<I>protected org.zkoss.zul.Comboboxprotected com.hybris.cockpitng.core.events.CockpitEventQueueprotected InteractiveActionreturns reference to the action instance.protected com.hybris.cockpitng.dataaccess.facades.object.ObjectFacadeprotected org.zkoss.zul.ButtongetOkBtn()protected RuleEngineCronJobLauncherprotected RuleServiceprotected RulesModuleDaoprotected List<SourceRuleModel>returns the rule to be compiled by this action.protected List<SourceRuleModel>protected abstract RuleTypethe rule type used for (sub)selecting which environments / rule modules are displayed.protected org.zkoss.zul.Windowprotected voidcreates the combo boxes for the dialog box.voidonCreate(org.zkoss.zk.ui.event.CreateEvent event) voidperform()called upon on click event of the corresponding OK button.protected booleanregisterModuleSwappingNotification(String moduleName) protected <T> List<T>protected voidshowConfirmationDialog(String message, org.zkoss.zk.ui.event.EventListener<org.zkoss.zul.Messagebox.ClickEvent> listener) Methods inherited from class de.hybris.platform.ruleenginebackoffice.actions.AbstractRuleCompilePublishComposer
doAfterCompose, getAffectedRules, getNotificationService, handleRuleEngineModuleSwapCompletedEvent, handleRuleUpdatedEvent, onException, onJobTriggered, onPublishingError, onRuleUpdate, onSuccess, onValidationErrorMethods inherited from class com.hybris.cockpitng.util.ViewAnnotationAwareComposer
invokeListenerMethod, scanEventListenersMethods inherited from class org.zkoss.zk.ui.util.GenericAutowireComposer
alert, didActivate, getPage, willClone, willPassivateMethods inherited from class org.zkoss.zk.ui.util.GenericComposer
doBeforeCompose, doBeforeComposeChildren, doCatch, doFinallyMethods inherited from class org.zkoss.zk.ui.event.GenericEventListener
bindComponent, getController, onEvent, unbindComponent
-
Field Details
-
DEFAULT_CONFIRM_PUBLISH_MESSAGE
- See Also:
-
DEFAULT_MULTIPLEVERSIONS_CONFIRM_PUBLISH_MESSAGE
- See Also:
-
DEFAULT_CONFIRM_PUBLISH_TITLE
- See Also:
-
DEFAULT_CONFIRM_PUBLISH_OK
- See Also:
-
DEFAULT_CONFIRM_PUBLISH_CANCEL
- See Also:
-
MESSAGEBOX_TEMPLATE_URL
- See Also:
-
MESSAGEBOX_WIDTH
- See Also:
-
-
Constructor Details
-
AbstractRuleCompileForModuleComposer
public AbstractRuleCompileForModuleComposer()
-
-
Method Details
-
perform
public void perform()called upon on click event of the corresponding OK button. -
containsDeployedRules
-
showConfirmationDialog
protected void showConfirmationDialog(String message, org.zkoss.zk.ui.event.EventListener<org.zkoss.zul.Messagebox.ClickEvent> listener) -
doOnConfirmationClickForMultiVersionRules
protected void doOnConfirmationClickForMultiVersionRules(org.zkoss.zul.Messagebox.ClickEvent clickEvent, String moduleName, List<SourceRuleModel> sourceRules) -
doOnConfirmationClickForDeployedRules
protected void doOnConfirmationClickForDeployedRules(org.zkoss.zul.Messagebox.ClickEvent clickEvent, String moduleName, List<SourceRuleModel> sourceRules) -
doCompileAndPublishRules
-
registerModuleSwappingNotification
-
getRuleType
the rule type used for (sub)selecting which environments / rule modules are displayed.- Returns:
- the rule type of the selected rule(s)
-
getRulesToCompile
returns the rule to be compiled by this action. The returned rule is refreshed every time the object is provided due to possibility to have state changed by the bulk publish action. same logic can be found in AbstractRuleUndeployFromModuleComposer- Returns:
- the list of rules that will be compiled by this action
-
reload
protected <T> List<T> reload(List<T> list) throws com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectNotFoundException - Throws:
com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectNotFoundException
-
getInteractiveAction
returns reference to the action instance.- Returns:
- the action instance
-
onCreate
public void onCreate(org.zkoss.zk.ui.event.CreateEvent event) - Parameters:
event- not used in this call
-
initEnvironmentOptionsCombo
protected void initEnvironmentOptionsCombo()creates the combo boxes for the dialog box. -
closeDialog
public void closeDialog() -
changeEnv
public void changeEnv() -
getRulesModuleDao
-
getRuleEngineCronJobLauncher
-
getEventQueue
protected com.hybris.cockpitng.core.events.CockpitEventQueue getEventQueue() -
getRuleService
-
getContext
-
getEnvInput
protected org.zkoss.zul.Combobox getEnvInput() -
getWindow
protected org.zkoss.zul.Window getWindow() -
getOkBtn
protected org.zkoss.zul.Button getOkBtn() -
getObjectFacade
protected com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade getObjectFacade() -
getRulesToProcess
-