Package com.liferay.commerce.context
Class BaseCommerceContext
java.lang.Object
com.liferay.commerce.context.BaseCommerceContext
- All Implemented Interfaces:
CommerceContext
,Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBaseCommerceContext
(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, CommerceOrderService commerceOrderService, com.liferay.portal.configuration.module.configuration.ConfigurationProvider configurationProvider, com.liferay.commerce.product.discovery.CPConfigurationListDiscovery cpConfigurationListDiscovery) -
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.account.model.AccountEntry
String[]
long[]
long
long
com.liferay.commerce.currency.model.CommerceCurrency
int
long
getCPConfigurationListId
(long groupId) long[]
-
Constructor Details
-
BaseCommerceContext
public BaseCommerceContext(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, CommerceOrderService commerceOrderService, com.liferay.portal.configuration.module.configuration.ConfigurationProvider configurationProvider, com.liferay.commerce.product.discovery.CPConfigurationListDiscovery cpConfigurationListDiscovery)
-
-
Method Details
-
getAccountEntry
public com.liferay.account.model.AccountEntry getAccountEntry() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
getAccountEntry
in interfaceCommerceContext
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getAccountEntryAllowedTypes
public String[] getAccountEntryAllowedTypes() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
getAccountEntryAllowedTypes
in interfaceCommerceContext
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceAccountGroupIds
public long[] getCommerceAccountGroupIds() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
getCommerceAccountGroupIds
in interfaceCommerceContext
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceChannelGroupId
public long getCommerceChannelGroupId() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
getCommerceChannelGroupId
in interfaceCommerceContext
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceChannelId
public long getCommerceChannelId() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
getCommerceChannelId
in interfaceCommerceContext
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceCurrency
public com.liferay.commerce.currency.model.CommerceCurrency getCommerceCurrency() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
getCommerceCurrency
in interfaceCommerceContext
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceOrder
- Specified by:
getCommerceOrder
in interfaceCommerceContext
-
getCommerceSiteType
public int getCommerceSiteType()- Specified by:
getCommerceSiteType
in interfaceCommerceContext
-
getCPConfigurationListId
public long getCPConfigurationListId(long groupId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCPConfigurationListId
in interfaceCommerceContext
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPConfigurationListIds
public long[] getCPConfigurationListIds() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
getCPConfigurationListIds
in interfaceCommerceContext
- Throws:
com.liferay.portal.kernel.exception.PortalException
-