Interface CommerceAccountHelper


public interface CommerceAccountHelper
  • Method Details

    • addAccountEntryUserRel

      com.liferay.account.model.AccountEntryUserRel addAccountEntryUserRel(long accountEntryId, long userId, long[] roleIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addAccountEntryUserRel

      com.liferay.account.model.AccountEntryUserRel addAccountEntryUserRel(long commerceAccountId, long commerceAccountUserId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addAccountEntryUserRels

      void addAccountEntryUserRels(long accountEntryId, long[] userIds, String[] emailAddresses, long[] roleIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addDefaultRoles

      void addDefaultRoles(long userId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • countUserCommerceAccounts

      int countUserCommerceAccounts(long userId, long commerceChannelGroupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getAccountEntryTypes

      String[] getAccountEntryTypes(long commerceChannelGroupId) throws com.liferay.portal.kernel.module.configuration.ConfigurationException
      Throws:
      com.liferay.portal.kernel.module.configuration.ConfigurationException
    • getAccountManagementPortletURL

      String getAccountManagementPortletURL(javax.servlet.http.HttpServletRequest httpServletRequest) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceSiteType

      int getCommerceSiteType(long commerceChannelGroupId) throws com.liferay.portal.kernel.module.configuration.ConfigurationException
      Throws:
      com.liferay.portal.kernel.module.configuration.ConfigurationException
    • getCurrentAccountEntry

      com.liferay.account.model.AccountEntry getCurrentAccountEntry(long groupId, javax.servlet.http.HttpServletRequest httpServletRequest) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUserCommerceAccountIds

      long[] getUserCommerceAccountIds(long userId, long commerceChannelGroupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • setCurrentCommerceAccount

      void setCurrentCommerceAccount(javax.servlet.http.HttpServletRequest httpServletRequest, long groupId, long commerceAccountId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • toAccountEntryStatus

      Integer toAccountEntryStatus(Boolean commerceAccountActive)
    • toAccountEntryTypes

      String[] toAccountEntryTypes(int commerceSiteType)