Class TestCommerceContext
java.lang.Object
com.liferay.commerce.test.util.context.TestCommerceContext
- All Implemented Interfaces:
com.liferay.commerce.context.CommerceContext,Serializable
public class TestCommerceContext
extends Object
implements com.liferay.commerce.context.CommerceContext
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTestCommerceContext(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) -
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.account.model.AccountEntryString[]long[]longlongcom.liferay.commerce.currency.model.CommerceCurrencycom.liferay.commerce.model.CommerceOrderintlonggetCPConfigurationListId(long groupId) long[]
-
Constructor Details
-
TestCommerceContext
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)
-
-
Method Details
-
getAccountEntry
public com.liferay.account.model.AccountEntry getAccountEntry()- Specified by:
getAccountEntryin interfacecom.liferay.commerce.context.CommerceContext
-
getAccountEntryAllowedTypes
public String[] getAccountEntryAllowedTypes() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
getAccountEntryAllowedTypesin interfacecom.liferay.commerce.context.CommerceContext- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceAccountGroupIds
public long[] getCommerceAccountGroupIds()- Specified by:
getCommerceAccountGroupIdsin interfacecom.liferay.commerce.context.CommerceContext
-
getCommerceChannelGroupId
public long getCommerceChannelGroupId() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
getCommerceChannelGroupIdin interfacecom.liferay.commerce.context.CommerceContext- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceChannelId
public long getCommerceChannelId() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
getCommerceChannelIdin interfacecom.liferay.commerce.context.CommerceContext- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceCurrency
public com.liferay.commerce.currency.model.CommerceCurrency getCommerceCurrency()- Specified by:
getCommerceCurrencyin interfacecom.liferay.commerce.context.CommerceContext
-
getCommerceOrder
public com.liferay.commerce.model.CommerceOrder getCommerceOrder()- Specified by:
getCommerceOrderin interfacecom.liferay.commerce.context.CommerceContext
-
getCommerceSiteType
public int getCommerceSiteType()- Specified by:
getCommerceSiteTypein interfacecom.liferay.commerce.context.CommerceContext
-
getCPConfigurationListId
public long getCPConfigurationListId(long groupId) - Specified by:
getCPConfigurationListIdin interfacecom.liferay.commerce.context.CommerceContext
-
getCPConfigurationListIds
public long[] getCPConfigurationListIds()- Specified by:
getCPConfigurationListIdsin interfacecom.liferay.commerce.context.CommerceContext
-