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.AccountEntry
String[]
long[]
long
long
com.liferay.commerce.currency.model.CommerceCurrency
com.liferay.commerce.model.CommerceOrder
int
long
getCPConfigurationListId
(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:
getAccountEntry
in interfacecom.liferay.commerce.context.CommerceContext
-
getAccountEntryAllowedTypes
public String[] getAccountEntryAllowedTypes() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
getAccountEntryAllowedTypes
in interfacecom.liferay.commerce.context.CommerceContext
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceAccountGroupIds
public long[] getCommerceAccountGroupIds()- Specified by:
getCommerceAccountGroupIds
in interfacecom.liferay.commerce.context.CommerceContext
-
getCommerceChannelGroupId
public long getCommerceChannelGroupId() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
getCommerceChannelGroupId
in 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:
getCommerceChannelId
in interfacecom.liferay.commerce.context.CommerceContext
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceCurrency
public com.liferay.commerce.currency.model.CommerceCurrency getCommerceCurrency()- Specified by:
getCommerceCurrency
in interfacecom.liferay.commerce.context.CommerceContext
-
getCommerceOrder
public com.liferay.commerce.model.CommerceOrder getCommerceOrder()- Specified by:
getCommerceOrder
in interfacecom.liferay.commerce.context.CommerceContext
-
getCommerceSiteType
public int getCommerceSiteType()- Specified by:
getCommerceSiteType
in interfacecom.liferay.commerce.context.CommerceContext
-
getCPConfigurationListId
public long getCPConfigurationListId(long groupId) - Specified by:
getCPConfigurationListId
in interfacecom.liferay.commerce.context.CommerceContext
-
getCPConfigurationListIds
public long[] getCPConfigurationListIds()- Specified by:
getCPConfigurationListIds
in interfacecom.liferay.commerce.context.CommerceContext
-