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 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 interface com.liferay.commerce.context.CommerceContext
    • getAccountEntryAllowedTypes

      public String[] getAccountEntryAllowedTypes() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getAccountEntryAllowedTypes in interface com.liferay.commerce.context.CommerceContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceAccountGroupIds

      public long[] getCommerceAccountGroupIds()
      Specified by:
      getCommerceAccountGroupIds in interface com.liferay.commerce.context.CommerceContext
    • getCommerceChannelGroupId

      public long getCommerceChannelGroupId() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCommerceChannelGroupId in interface com.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 interface com.liferay.commerce.context.CommerceContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceCurrency

      public com.liferay.commerce.currency.model.CommerceCurrency getCommerceCurrency()
      Specified by:
      getCommerceCurrency in interface com.liferay.commerce.context.CommerceContext
    • getCommerceOrder

      public com.liferay.commerce.model.CommerceOrder getCommerceOrder()
      Specified by:
      getCommerceOrder in interface com.liferay.commerce.context.CommerceContext
    • getCommerceSiteType

      public int getCommerceSiteType()
      Specified by:
      getCommerceSiteType in interface com.liferay.commerce.context.CommerceContext
    • getCPConfigurationListId

      public long getCPConfigurationListId(long groupId)
      Specified by:
      getCPConfigurationListId in interface com.liferay.commerce.context.CommerceContext
    • getCPConfigurationListIds

      public long[] getCPConfigurationListIds()
      Specified by:
      getCPConfigurationListIds in interface com.liferay.commerce.context.CommerceContext