Class CommerceAccountTestUtil
java.lang.Object
com.liferay.commerce.account.test.util.CommerceAccountTestUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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)
-
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
-