public class CommerceAccountTestUtil
extends java.lang.Object
| Constructor and Description |
|---|
CommerceAccountTestUtil() |
| Modifier and Type | Method and 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,
java.lang.String name,
java.lang.String type,
java.lang.String externalReferenceCode,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.account.model.AccountGroup |
addAccountGroupAndAccountRel(long companyId,
java.lang.String name,
java.lang.String type,
long accountGroupId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.account.model.AccountEntry |
addBusinessAccountEntry(long userId,
java.lang.String name,
java.lang.String email,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.account.model.AccountEntry |
addBusinessAccountEntry(long userId,
java.lang.String name,
java.lang.String email,
java.lang.String externalReferenceCode,
long[] userIds,
long[] organizationIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.account.model.AccountEntry |
addBusinessAccountEntry(long userId,
java.lang.String name,
java.lang.String email,
java.lang.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) |
public static void addAccountEntryOrganizationRels(long accountEntryId,
long[] organizationIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void addAccountEntryUserRels(long accountEntryId,
long[] userIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static com.liferay.account.model.AccountGroup addAccountGroup(long companyId,
java.lang.String name,
java.lang.String type,
java.lang.String externalReferenceCode,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static com.liferay.account.model.AccountGroup addAccountGroupAndAccountRel(long companyId,
java.lang.String name,
java.lang.String type,
long accountGroupId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static com.liferay.account.model.AccountEntry addBusinessAccountEntry(long userId,
java.lang.String name,
java.lang.String email,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws java.lang.Exception
java.lang.Exceptionpublic static com.liferay.account.model.AccountEntry addBusinessAccountEntry(long userId,
java.lang.String name,
java.lang.String email,
java.lang.String externalReferenceCode,
long[] userIds,
long[] organizationIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws java.lang.Exception
java.lang.Exceptionpublic static com.liferay.account.model.AccountEntry addBusinessAccountEntry(long userId,
java.lang.String name,
java.lang.String email,
java.lang.String externalReferenceCode,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws java.lang.Exception
java.lang.Exceptionpublic static com.liferay.account.model.AccountEntry addPersonAccountEntry(long userId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws java.lang.Exception
java.lang.Exceptionpublic static com.liferay.account.model.AccountEntry getPersonAccountEntry(long userId)
throws java.lang.Exception
java.lang.Exception