Class AbstractRuleUndeployFromModuleComposer<I>

  • All Implemented Interfaces:
    java.io.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:
    RuleUndeployFromModuleComposer, RuleUndeploySelectedFromModuleComposer

    public abstract class AbstractRuleUndeployFromModuleComposer<I>
    extends AbstractRuleCompilePublishComposer
    AbstractRuleUndeployFromModuleComposer is the abstract class for the common functionality of Rule Undeploy Action dialog box.
    See Also:
    Serialized Form
    • Constructor Detail

      • AbstractRuleUndeployFromModuleComposer

        public AbstractRuleUndeployFromModuleComposer()
    • Method Detail

      • initEnvironmentOptionsCombo

        protected void initEnvironmentOptionsCombo()
        creates the combo boxes for the dialog box.
      • onSuccess

        protected void onSuccess​(java.lang.String moduleName,
                                 java.lang.String previousModuleVersion,
                                 java.lang.String moduleVersion)
        the method invoked upon success
        Specified by:
        onSuccess in class AbstractRuleCompilePublishComposer
        Parameters:
        moduleName - name of the published module
        previousModuleVersion - previous version of the module
        moduleVersion - current version of the module
      • refreshWidget

        protected abstract void refreshWidget()
        Takes care of refreshing widget, if required
      • perform

        public void perform()
        called upon on click event of the corresponding OK button.
      • undeployRules

        protected void undeployRules​(java.lang.String moduleName)
        Undeploys rule from a module with given name
        Parameters:
        moduleName - kie module name
      • getRulesToUndeploy

        protected java.util.List<SourceRuleModel> getRulesToUndeploy()
        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.
        Returns:
        the list of rules that will be compiled by this action
      • reload

        protected <T> java.util.List<T> reload​(java.util.List<T> list)
                                        throws com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectNotFoundException
        Throws:
        com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectNotFoundException
      • getInteractiveAction

        protected InteractiveAction 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
      • createComboitem

        protected org.zkoss.zul.Comboitem createComboitem​(java.lang.String name)
        Creates comboitem using name as key and value
        Parameters:
        name -
        Returns:
        comboitem instance
      • closeDialog

        public void closeDialog()
      • changeEnv

        public void changeEnv()
      • getEventQueue

        protected com.hybris.cockpitng.core.events.CockpitEventQueue getEventQueue()
      • getRuleService

        protected RuleService getRuleService()
      • getContext

        protected com.hybris.cockpitng.actions.ActionContext<I> 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

        protected java.util.List<SourceRuleModel> getRulesToProcess()