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
ConstructorsConstructorDescriptionTestCustomCommerceContext
(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 TypeMethodDescriptioncom.liferay.commerce.currency.model.CommerceCurrency
Methods inherited from class com.liferay.commerce.context.BaseCommerceContext
getAccountEntry, getAccountEntryAllowedTypes, getCommerceAccountGroupIds, getCommerceChannelGroupId, getCommerceChannelId, getCommerceOrder, getCommerceSiteType, getCPConfigurationListId, getCPConfigurationListIds
-
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 interfacecom.liferay.commerce.context.CommerceContext
- Overrides:
getCommerceCurrency
in classcom.liferay.commerce.context.BaseCommerceContext
- Throws:
com.liferay.portal.kernel.exception.PortalException
-