public class TestCommerceContext
extends java.lang.Object
implements com.liferay.commerce.context.CommerceContext
| Constructor and Description |
|---|
TestCommerceContext(com.liferay.account.model.AccountEntry accountEntry,
com.liferay.commerce.currency.model.CommerceCurrency commerceCurrency,
com.liferay.commerce.product.model.CommerceChannel commerceChannel,
com.liferay.portal.kernel.model.User contextUser,
com.liferay.portal.kernel.model.Group contextGroup,
com.liferay.commerce.model.CommerceOrder commerceOrder) |
| Modifier and Type | Method and Description |
|---|---|
com.liferay.account.model.AccountEntry |
getAccountEntry() |
java.lang.String[] |
getAccountEntryAllowedTypes() |
long[] |
getCommerceAccountGroupIds() |
long |
getCommerceChannelGroupId() |
long |
getCommerceChannelId() |
com.liferay.commerce.currency.model.CommerceCurrency |
getCommerceCurrency() |
com.liferay.commerce.model.CommerceOrder |
getCommerceOrder() |
int |
getCommerceSiteType() |
public TestCommerceContext(com.liferay.account.model.AccountEntry accountEntry,
com.liferay.commerce.currency.model.CommerceCurrency commerceCurrency,
com.liferay.commerce.product.model.CommerceChannel commerceChannel,
com.liferay.portal.kernel.model.User contextUser,
com.liferay.portal.kernel.model.Group contextGroup,
com.liferay.commerce.model.CommerceOrder commerceOrder)
public com.liferay.account.model.AccountEntry getAccountEntry()
getAccountEntry in interface com.liferay.commerce.context.CommerceContextpublic java.lang.String[] getAccountEntryAllowedTypes()
throws com.liferay.portal.kernel.exception.PortalException
getAccountEntryAllowedTypes in interface com.liferay.commerce.context.CommerceContextcom.liferay.portal.kernel.exception.PortalExceptionpublic long[] getCommerceAccountGroupIds()
getCommerceAccountGroupIds in interface com.liferay.commerce.context.CommerceContextpublic long getCommerceChannelGroupId()
throws com.liferay.portal.kernel.exception.PortalException
getCommerceChannelGroupId in interface com.liferay.commerce.context.CommerceContextcom.liferay.portal.kernel.exception.PortalExceptionpublic long getCommerceChannelId()
throws com.liferay.portal.kernel.exception.PortalException
getCommerceChannelId in interface com.liferay.commerce.context.CommerceContextcom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.commerce.currency.model.CommerceCurrency getCommerceCurrency()
getCommerceCurrency in interface com.liferay.commerce.context.CommerceContextpublic com.liferay.commerce.model.CommerceOrder getCommerceOrder()
getCommerceOrder in interface com.liferay.commerce.context.CommerceContextpublic int getCommerceSiteType()
getCommerceSiteType in interface com.liferay.commerce.context.CommerceContext