Class BaseCommerceContextHttp

java.lang.Object
com.liferay.commerce.context.BaseCommerceContextHttp
All Implemented Interfaces:
CommerceContext, Serializable

public class BaseCommerceContextHttp extends Object implements CommerceContext
See Also:
  • Constructor Details

    • BaseCommerceContextHttp

      public BaseCommerceContextHttp(javax.servlet.http.HttpServletRequest httpServletRequest, com.liferay.account.service.AccountGroupLocalService accountGroupLocalService, CommerceAccountHelper commerceAccountHelper, com.liferay.commerce.product.service.CommerceCatalogLocalService commerceCatalogLocalService, com.liferay.commerce.product.service.CommerceChannelAccountEntryRelLocalService commerceChannelAccountEntryRelLocalService, com.liferay.commerce.product.service.CommerceChannelLocalService commerceChannelLocalService, com.liferay.commerce.currency.service.CommerceCurrencyLocalService commerceCurrencyLocalService, CommerceOrderHttpHelper commerceOrderHttpHelper, com.liferay.portal.configuration.module.configuration.ConfigurationProvider configurationProvider, com.liferay.commerce.product.discovery.CPConfigurationListDiscovery cpConfigurationListDiscovery, com.liferay.portal.kernel.util.Portal portal)
  • Method Details

    • getAccountEntry

      public com.liferay.account.model.AccountEntry getAccountEntry() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getAccountEntry in interface CommerceContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getAccountEntryAllowedTypes

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

      public long[] getCommerceAccountGroupIds() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCommerceAccountGroupIds in interface CommerceContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceChannelGroupId

      public long getCommerceChannelGroupId() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCommerceChannelGroupId in interface CommerceContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceChannelId

      public long getCommerceChannelId() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCommerceChannelId in interface CommerceContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceCurrency

      public com.liferay.commerce.currency.model.CommerceCurrency getCommerceCurrency() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCommerceCurrency in interface CommerceContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceOrder

      public CommerceOrder getCommerceOrder()
      Specified by:
      getCommerceOrder in interface CommerceContext
    • getCommerceSiteType

      public int getCommerceSiteType()
      Specified by:
      getCommerceSiteType in interface CommerceContext
    • getCPConfigurationListId

      public long getCPConfigurationListId(long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPConfigurationListId in interface CommerceContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPConfigurationListIds

      public long[] getCPConfigurationListIds() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPConfigurationListIds in interface CommerceContext
      Throws:
      com.liferay.portal.kernel.exception.PortalException