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(com.liferay.account.service.AccountEntryLocalService accountEntryLocalService, com.liferay.account.service.AccountGroupLocalService accountGroupLocalService, long commerceAccountId, com.liferay.commerce.product.service.CommerceCatalogLocalService commerceCatalogLocalService, com.liferay.commerce.product.service.CommerceChannelAccountEntryRelLocalService commerceChannelAccountEntryRelLocalService, long commerceChannelGroupId, com.liferay.commerce.product.service.CommerceChannelLocalService commerceChannelLocalService, String commerceCurrencyCode, com.liferay.commerce.currency.service.CommerceCurrencyLocalService commerceCurrencyLocalService, long commerceOrderId, com.liferay.commerce.service.CommerceOrderService commerceOrderService, long companyId, 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(com.liferay.account.service.AccountEntryLocalService accountEntryLocalService, com.liferay.account.service.AccountGroupLocalService accountGroupLocalService, long commerceAccountId, com.liferay.commerce.product.service.CommerceCatalogLocalService commerceCatalogLocalService, com.liferay.commerce.product.service.CommerceChannelAccountEntryRelLocalService commerceChannelAccountEntryRelLocalService, long commerceChannelGroupId, com.liferay.commerce.product.service.CommerceChannelLocalService commerceChannelLocalService, String commerceCurrencyCode, com.liferay.commerce.currency.service.CommerceCurrencyLocalService commerceCurrencyLocalService, long commerceOrderId, com.liferay.commerce.service.CommerceOrderService commerceOrderService, long companyId, 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