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.CommerceContext
public java.lang.String[] getAccountEntryAllowedTypes() throws com.liferay.portal.kernel.exception.PortalException
getAccountEntryAllowedTypes
in interface com.liferay.commerce.context.CommerceContext
com.liferay.portal.kernel.exception.PortalException
public long[] getCommerceAccountGroupIds()
getCommerceAccountGroupIds
in interface com.liferay.commerce.context.CommerceContext
public long getCommerceChannelGroupId() throws com.liferay.portal.kernel.exception.PortalException
getCommerceChannelGroupId
in interface com.liferay.commerce.context.CommerceContext
com.liferay.portal.kernel.exception.PortalException
public long getCommerceChannelId() throws com.liferay.portal.kernel.exception.PortalException
getCommerceChannelId
in interface com.liferay.commerce.context.CommerceContext
com.liferay.portal.kernel.exception.PortalException
public com.liferay.commerce.currency.model.CommerceCurrency getCommerceCurrency()
getCommerceCurrency
in interface com.liferay.commerce.context.CommerceContext
public com.liferay.commerce.model.CommerceOrder getCommerceOrder()
getCommerceOrder
in interface com.liferay.commerce.context.CommerceContext
public int getCommerceSiteType()
getCommerceSiteType
in interface com.liferay.commerce.context.CommerceContext