Class CommerceAccountTestUtil

java.lang.Object
com.liferay.commerce.account.test.util.CommerceAccountTestUtil

public class CommerceAccountTestUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addAccountEntryOrganizationRels(long accountEntryId, long[] organizationIds, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static void
    addAccountEntryUserRels(long accountEntryId, long[] userIds, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.account.model.AccountGroup
    addAccountGroup(long companyId, String name, String type, String externalReferenceCode, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.account.model.AccountGroup
    addAccountGroupAndAccountRel(long companyId, String name, String type, long accountEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.account.model.AccountEntry
    addBusinessAccountEntry(long userId, String name, String email, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.account.model.AccountEntry
    addBusinessAccountEntry(long userId, String name, String email, String externalReferenceCode, long[] userIds, long[] organizationIds, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.account.model.AccountEntry
    addBusinessAccountEntry(long userId, String name, String email, String externalReferenceCode, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.account.model.AccountEntry
    addPersonAccountEntry(long userId, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.account.model.AccountEntry
    getPersonAccountEntry(long userId)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CommerceAccountTestUtil

      public CommerceAccountTestUtil()
  • Method Details

    • addAccountEntryOrganizationRels

      public static void addAccountEntryOrganizationRels(long accountEntryId, long[] organizationIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addAccountEntryUserRels

      public static void addAccountEntryUserRels(long accountEntryId, long[] userIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addAccountGroup

      public static com.liferay.account.model.AccountGroup addAccountGroup(long companyId, String name, String type, String externalReferenceCode, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addAccountGroupAndAccountRel

      public static com.liferay.account.model.AccountGroup addAccountGroupAndAccountRel(long companyId, String name, String type, long accountEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addBusinessAccountEntry

      public static com.liferay.account.model.AccountEntry addBusinessAccountEntry(long userId, String name, String email, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
      Throws:
      Exception
    • addBusinessAccountEntry

      public static com.liferay.account.model.AccountEntry addBusinessAccountEntry(long userId, String name, String email, String externalReferenceCode, long[] userIds, long[] organizationIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
      Throws:
      Exception
    • addBusinessAccountEntry

      public static com.liferay.account.model.AccountEntry addBusinessAccountEntry(long userId, String name, String email, String externalReferenceCode, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
      Throws:
      Exception
    • addPersonAccountEntry

      public static com.liferay.account.model.AccountEntry addPersonAccountEntry(long userId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
      Throws:
      Exception
    • getPersonAccountEntry

      public static com.liferay.account.model.AccountEntry getPersonAccountEntry(long userId) throws Exception
      Throws:
      Exception