Class DefaultNoOpRuleActionStrategy
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.action.impl.DefaultNoOpRuleActionStrategy
-
- All Implemented Interfaces:
RuleActionStrategy<ItemModel>,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
public class DefaultNoOpRuleActionStrategy extends java.lang.Object implements RuleActionStrategy<ItemModel>, org.springframework.beans.factory.BeanNameAware
The DefaultNoOpRuleActionStrategy doesn't do anything.
-
-
Constructor Summary
Constructors Constructor Description DefaultNoOpRuleActionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ItemModel>apply(AbstractRuleActionRAO action)Applies the action described by the givenAbstractRuleActionRAO.java.lang.StringgetStrategyId()Returns this strategy's unique IdvoidsetBeanName(java.lang.String beanName)voidundo(ItemModel action)Revokes the Promotion Action that was applied.
-
-
-
Method Detail
-
apply
public java.util.List<ItemModel> apply(AbstractRuleActionRAO action)
Description copied from interface:RuleActionStrategyApplies the action described by the givenAbstractRuleActionRAO.- Specified by:
applyin interfaceRuleActionStrategy<ItemModel>- Parameters:
action- the action to apply- Returns:
- list of
ItemModelthat are affected by the application of this action.
-
undo
public void undo(ItemModel action)
Description copied from interface:RuleActionStrategyRevokes the Promotion Action that was applied.- Specified by:
undoin interfaceRuleActionStrategy<ItemModel>- Parameters:
action- the action to be undone
-
getStrategyId
public java.lang.String getStrategyId()
Description copied from interface:RuleActionStrategyReturns this strategy's unique Id- Specified by:
getStrategyIdin interfaceRuleActionStrategy<ItemModel>- Returns:
- the strategy's Id
-
setBeanName
public void setBeanName(java.lang.String beanName)
- Specified by:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware
-
-