Class SOMCartConfigurationRestrictionEvaluator
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.services.evaluator.CMSCartConfigurationRestrictionEvaluator
-
- de.hybris.platform.sap.sapproductconfigsomservices.evaluator.SOMCartConfigurationRestrictionEvaluator
-
- All Implemented Interfaces:
CMSRestrictionEvaluator<CMSCartConfigurationRestrictionModel>
public class SOMCartConfigurationRestrictionEvaluator extends CMSCartConfigurationRestrictionEvaluator
Evaluator: Configuration specific UI active only if SOM is not active. (Because if SOM is active, it will provide a cart UI)
-
-
Constructor Summary
Constructors Constructor Description SOMCartConfigurationRestrictionEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanevaluate(CMSCartConfigurationRestrictionModel arg0, RestrictionData arg1)Main method that evaluates given restriction.BaseStoreServicegetBaseStoreService()protected booleanisSapOrderMgmtEnabled()Check if synchronous order management SOM is activevoidsetBaseStoreService(BaseStoreService baseStoreService)
-
-
-
Method Detail
-
evaluate
public boolean evaluate(CMSCartConfigurationRestrictionModel arg0, RestrictionData arg1)
Description copied from interface:CMSRestrictionEvaluatorMain method that evaluates given restriction.- Specified by:
evaluatein interfaceCMSRestrictionEvaluator<CMSCartConfigurationRestrictionModel>- Overrides:
evaluatein classCMSCartConfigurationRestrictionEvaluator- Parameters:
arg0- given restrictionarg1- all context information required to evaluate restriction- Returns:
truewhen restriction is matched otherwisefalse
-
getBaseStoreService
public BaseStoreService getBaseStoreService()
- Returns:
- the baseStoreService
-
setBaseStoreService
public void setBaseStoreService(BaseStoreService baseStoreService)
- Parameters:
baseStoreService- the baseStoreService to set
-
isSapOrderMgmtEnabled
protected boolean isSapOrderMgmtEnabled()
Check if synchronous order management SOM is active- Returns:
- true is SOM is active
-
-