public class TestCommerceContext extends java.lang.Object implements CommerceContext
Constructor and Description |
---|
TestCommerceContext(CommerceCurrency commerceCurrency,
CommerceChannel commerceChannel,
com.liferay.portal.kernel.model.User contextUser,
com.liferay.portal.kernel.model.Group contextGroup,
CommerceAccount commerceAccount,
CommerceOrder commerceOrder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAccountEntryAllowedTypes() |
CommerceAccount |
getCommerceAccount() |
long[] |
getCommerceAccountGroupIds() |
long |
getCommerceChannelGroupId() |
long |
getCommerceChannelId() |
CommerceCurrency |
getCommerceCurrency() |
CommerceOrder |
getCommerceOrder() |
int |
getCommerceSiteType() |
public TestCommerceContext(CommerceCurrency commerceCurrency, CommerceChannel commerceChannel, com.liferay.portal.kernel.model.User contextUser, com.liferay.portal.kernel.model.Group contextGroup, CommerceAccount commerceAccount, CommerceOrder commerceOrder)
public java.lang.String[] getAccountEntryAllowedTypes() throws com.liferay.portal.kernel.exception.PortalException
getAccountEntryAllowedTypes
in interface CommerceContext
com.liferay.portal.kernel.exception.PortalException
public CommerceAccount getCommerceAccount()
getCommerceAccount
in interface CommerceContext
public long[] getCommerceAccountGroupIds()
getCommerceAccountGroupIds
in interface CommerceContext
public long getCommerceChannelGroupId() throws com.liferay.portal.kernel.exception.PortalException
getCommerceChannelGroupId
in interface CommerceContext
com.liferay.portal.kernel.exception.PortalException
public long getCommerceChannelId() throws com.liferay.portal.kernel.exception.PortalException
getCommerceChannelId
in interface CommerceContext
com.liferay.portal.kernel.exception.PortalException
public CommerceCurrency getCommerceCurrency()
getCommerceCurrency
in interface CommerceContext
public CommerceOrder getCommerceOrder()
getCommerceOrder
in interface CommerceContext
public int getCommerceSiteType()
getCommerceSiteType
in interface CommerceContext