Class TestCustomCommerceContext

java.lang.Object
com.liferay.commerce.context.BaseCommerceContext
com.liferay.commerce.test.util.context.TestCustomCommerceContext
All Implemented Interfaces:
com.liferay.commerce.context.CommerceContext, Serializable

public class TestCustomCommerceContext extends com.liferay.commerce.context.BaseCommerceContext
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    TestCustomCommerceContext(long companyId, long commerceChannelGroupId, long orderId, long commerceAccountId, com.liferay.account.service.AccountEntryLocalService accountEntryLocalService, com.liferay.account.service.AccountGroupLocalService accountGroupLocalService, com.liferay.commerce.product.service.CommerceCatalogLocalService commerceCatalogLocalService, com.liferay.commerce.product.service.CommerceChannelAccountEntryRelLocalService commerceChannelAccountEntryRelLocalService, com.liferay.commerce.product.service.CommerceChannelLocalService commerceChannelLocalService, com.liferay.commerce.currency.service.CommerceCurrencyLocalService commerceCurrencyLocalService, com.liferay.commerce.service.CommerceOrderService commerceOrderService, com.liferay.portal.configuration.module.configuration.ConfigurationProvider configurationProvider, com.liferay.commerce.product.discovery.CPConfigurationListDiscovery cpConfigurationListDiscovery)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.liferay.commerce.currency.model.CommerceCurrency
     

    Methods inherited from class com.liferay.commerce.context.BaseCommerceContext

    getAccountEntry, getAccountEntryAllowedTypes, getCommerceAccountGroupIds, getCommerceChannelGroupId, getCommerceChannelId, getCommerceOrder, getCommerceSiteType, getCPConfigurationListId, getCPConfigurationListIds

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TestCustomCommerceContext

      public TestCustomCommerceContext(long companyId, long commerceChannelGroupId, long orderId, long commerceAccountId, com.liferay.account.service.AccountEntryLocalService accountEntryLocalService, com.liferay.account.service.AccountGroupLocalService accountGroupLocalService, com.liferay.commerce.product.service.CommerceCatalogLocalService commerceCatalogLocalService, com.liferay.commerce.product.service.CommerceChannelAccountEntryRelLocalService commerceChannelAccountEntryRelLocalService, com.liferay.commerce.product.service.CommerceChannelLocalService commerceChannelLocalService, com.liferay.commerce.currency.service.CommerceCurrencyLocalService commerceCurrencyLocalService, com.liferay.commerce.service.CommerceOrderService commerceOrderService, com.liferay.portal.configuration.module.configuration.ConfigurationProvider configurationProvider, com.liferay.commerce.product.discovery.CPConfigurationListDiscovery cpConfigurationListDiscovery)
  • Method Details

    • getCommerceCurrency

      public com.liferay.commerce.currency.model.CommerceCurrency getCommerceCurrency() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCommerceCurrency in interface com.liferay.commerce.context.CommerceContext
      Overrides:
      getCommerceCurrency in class com.liferay.commerce.context.BaseCommerceContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException