Class AbstractRuleSetProcessingForModuleAction<O>
java.lang.Object
com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
de.hybris.platform.ruleenginebackoffice.actions.AbstractInteractiveAction<I,O>
de.hybris.platform.ruleenginebackoffice.actions.AbstractRuleProcessingForModuleAction<Set<AbstractRuleModel>,O>
de.hybris.platform.ruleenginebackoffice.actions.AbstractRuleSetProcessingForModuleAction<O>
- All Implemented Interfaces:
com.hybris.cockpitng.actions.CockpitAction<Set<AbstractRuleModel>,,O> com.hybris.cockpitng.engine.ComponentWidgetAdapterAware,InteractiveAction<Set<AbstractRuleModel>,O>
- Direct Known Subclasses:
RuleCompileAllForModuleAction,RuleUndeploySelectedFromModuleAction
public abstract class AbstractRuleSetProcessingForModuleAction<O>
extends AbstractRuleProcessingForModuleAction<Set<AbstractRuleModel>,O>
AbstractRuleSetProcessingForModuleAction is the abstract class for the common functionality of group rule processing
actions.
-
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPerform(com.hybris.cockpitng.actions.ActionContext<Set<AbstractRuleModel>> context) protected booleandifferentRuleTypes(List<AbstractRuleModel> rulesToCompile) protected Set<AbstractRuleModel>filterByType(Set<AbstractRuleModel> rules) protected Predicate<AbstractRuleModel>returns a filter (used inside ofgetSelectedRules(ActionContext))protected Predicate<AbstractRuleModel>returns a filter (used inside ofgetSelectedRules(ActionContext)) that is responsible to filter out rules based on their statusprotected abstract Stringprotected abstract Stringprotected RuleServiceprotected RuleTypegetRuleType(AbstractRuleModel rule) protected <T extends AbstractRuleModel>
List<T>getSelectedRules(com.hybris.cockpitng.actions.ActionContext<Set<AbstractRuleModel>> context) retrieves the (non-empty) list of selected rules from the UI context (used insideAbstractRuleProcessingForModuleAction.getRulesToProcess(ActionContext))com.hybris.cockpitng.actions.ActionResult<O>perform(com.hybris.cockpitng.actions.ActionContext<Set<AbstractRuleModel>> context) Methods inherited from class de.hybris.platform.ruleenginebackoffice.actions.AbstractRuleProcessingForModuleAction
addDialogWindowAttribute, getRulesToProcess, getRulesToProcessCtxAttributeNameMethods inherited from class de.hybris.platform.ruleenginebackoffice.actions.AbstractInteractiveAction
doOnAlertOkClick, getAlertDialogTemplate, getAlertDialogWidth, getArguments, getDialogTemplate, getDialogTitle, getRoot, sendOutputDataToSocket, showAlertDialogMethods inherited from class com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
addSocketInputEventListener, getComponentID, handleSocketInputEvent, initialize, initializeDefaultEventListeners, registerStubInstance, sendOutput, setComponentID, unregisterStubInstanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hybris.cockpitng.actions.CockpitAction
getConfirmationMessage, needsConfirmation
-
Constructor Details
-
AbstractRuleSetProcessingForModuleAction
public AbstractRuleSetProcessingForModuleAction()
-
-
Method Details
-
getDifferentRuleTypesAlertTitle
-
getDifferentRuleTypesAlertMessage
-
canPerform
public boolean canPerform(com.hybris.cockpitng.actions.ActionContext<Set<AbstractRuleModel>> context) - Specified by:
canPerformin interfacecom.hybris.cockpitng.actions.CockpitAction<Set<AbstractRuleModel>,O> - Overrides:
canPerformin classAbstractInteractiveAction<Set<AbstractRuleModel>,O>
-
perform
public com.hybris.cockpitng.actions.ActionResult<O> perform(com.hybris.cockpitng.actions.ActionContext<Set<AbstractRuleModel>> context) - Specified by:
performin interfacecom.hybris.cockpitng.actions.CockpitAction<Set<AbstractRuleModel>,O> - Overrides:
performin classAbstractInteractiveAction<Set<AbstractRuleModel>,O>
-
differentRuleTypes
-
getRuleType
-
getSelectedRules
protected <T extends AbstractRuleModel> List<T> getSelectedRules(com.hybris.cockpitng.actions.ActionContext<Set<AbstractRuleModel>> context) retrieves the (non-empty) list of selected rules from the UI context (used insideAbstractRuleProcessingForModuleAction.getRulesToProcess(ActionContext))- Returns:
- the selected (non-empty) rules
-
filterByType
-
filterSelectedRules
returns a filter (used inside ofgetSelectedRules(ActionContext)) -
filterSelectedRulesByStatus
returns a filter (used inside ofgetSelectedRules(ActionContext)) that is responsible to filter out rules based on their status -
getRuleService
-