Class CommerceNetGrossStrategy
- java.lang.Object
-
- de.hybris.platform.commerceservices.strategies.impl.CommerceNetGrossStrategy
-
- All Implemented Interfaces:
NetGrossStrategy
public class CommerceNetGrossStrategy extends java.lang.Object implements NetGrossStrategy
Default implementation ofNetGrossStrategyuses the current base store to determine net/gross.
-
-
Constructor Summary
Constructors Constructor Description CommerceNetGrossStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BaseStoreServicegetBaseStoreService()protected CartServicegetCartService()protected NetGrossStrategygetDefaultNetGrossStrategy()booleanisNet()Method for retrieving the net/gross settingvoidsetBaseStoreService(BaseStoreService baseStoreService)voidsetCartService(CartService cartService)voidsetDefaultNetGrossStrategy(NetGrossStrategy defaultNetGrossStrategy)
-
-
-
Method Detail
-
isNet
public boolean isNet()
Description copied from interface:NetGrossStrategyMethod for retrieving the net/gross setting- Specified by:
isNetin interfaceNetGrossStrategy- Returns:
- the net/gross setting to be used for retrieving price information
-
setBaseStoreService
public void setBaseStoreService(BaseStoreService baseStoreService)
- Parameters:
baseStoreService- the baseStoreService to set
-
setDefaultNetGrossStrategy
public void setDefaultNetGrossStrategy(NetGrossStrategy defaultNetGrossStrategy)
- Parameters:
defaultNetGrossStrategy- the defaultNetGrossStrategy to set
-
setCartService
public void setCartService(CartService cartService)
-
getCartService
protected CartService getCartService()
-
getBaseStoreService
protected BaseStoreService getBaseStoreService()
-
getDefaultNetGrossStrategy
protected NetGrossStrategy getDefaultNetGrossStrategy()
-
-