public class BaseCommerceContext extends java.lang.Object implements CommerceContext
| Constructor and Description |
|---|
BaseCommerceContext(long companyId,
long commerceChannelGroupId,
long orderId,
long commerceAccountId,
com.liferay.commerce.account.util.CommerceAccountHelper commerceAccountHelper,
com.liferay.commerce.account.service.CommerceAccountLocalService commerceAccountLocalService,
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.kernel.module.configuration.ConfigurationProvider configurationProvider) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getAccountEntryAllowedTypes() |
com.liferay.commerce.account.model.CommerceAccount |
getCommerceAccount() |
long[] |
getCommerceAccountGroupIds() |
long |
getCommerceChannelGroupId() |
long |
getCommerceChannelId() |
com.liferay.commerce.currency.model.CommerceCurrency |
getCommerceCurrency() |
CommerceOrder |
getCommerceOrder() |
int |
getCommerceSiteType() |
public BaseCommerceContext(long companyId,
long commerceChannelGroupId,
long orderId,
long commerceAccountId,
com.liferay.commerce.account.util.CommerceAccountHelper commerceAccountHelper,
com.liferay.commerce.account.service.CommerceAccountLocalService commerceAccountLocalService,
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.kernel.module.configuration.ConfigurationProvider configurationProvider)
public java.lang.String[] getAccountEntryAllowedTypes()
throws com.liferay.portal.kernel.exception.PortalException
getAccountEntryAllowedTypes in interface CommerceContextcom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.commerce.account.model.CommerceAccount getCommerceAccount()
throws com.liferay.portal.kernel.exception.PortalException
getCommerceAccount in interface CommerceContextcom.liferay.portal.kernel.exception.PortalExceptionpublic long[] getCommerceAccountGroupIds()
throws com.liferay.portal.kernel.exception.PortalException
getCommerceAccountGroupIds in interface CommerceContextcom.liferay.portal.kernel.exception.PortalExceptionpublic long getCommerceChannelGroupId()
throws com.liferay.portal.kernel.exception.PortalException
getCommerceChannelGroupId in interface CommerceContextcom.liferay.portal.kernel.exception.PortalExceptionpublic long getCommerceChannelId()
throws com.liferay.portal.kernel.exception.PortalException
getCommerceChannelId in interface CommerceContextcom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.commerce.currency.model.CommerceCurrency getCommerceCurrency()
throws com.liferay.portal.kernel.exception.PortalException
getCommerceCurrency in interface CommerceContextcom.liferay.portal.kernel.exception.PortalExceptionpublic CommerceOrder getCommerceOrder() throws com.liferay.portal.kernel.exception.PortalException
getCommerceOrder in interface CommerceContextcom.liferay.portal.kernel.exception.PortalExceptionpublic int getCommerceSiteType()
getCommerceSiteType in interface CommerceContext