Class CommerceNetGrossStrategy

java.lang.Object
de.hybris.platform.commerceservices.strategies.impl.CommerceNetGrossStrategy
All Implemented Interfaces:
NetGrossStrategy

public class CommerceNetGrossStrategy extends Object implements NetGrossStrategy
Default implementation of NetGrossStrategy uses the current base store to determine net/gross.
  • Constructor Details

    • CommerceNetGrossStrategy

      public CommerceNetGrossStrategy()
  • Method Details

    • isNet

      public boolean isNet()
      Description copied from interface: NetGrossStrategy
      Method for retrieving the net/gross setting
      Specified by:
      isNet in interface NetGrossStrategy
      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()