public class CommerceAccountServiceUtil
extends java.lang.Object
com.liferay.commerce.account.service.impl.CommerceAccountServiceImpl
and is an
access point for service operations in application layer code running on a
remote server. Methods of this service are expected to have security checks
based on the propagated JAAS credentials because this service can be
accessed remotely.CommerceAccountService
Constructor and Description |
---|
CommerceAccountServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static CommerceAccount |
addBusinessCommerceAccount(java.lang.String name,
long parentCommerceAccountId,
java.lang.String email,
java.lang.String taxId,
boolean active,
java.lang.String externalReferenceCode,
long[] userIds,
java.lang.String[] emailAddresses,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceAccount |
addCommerceAccount(java.lang.String name,
long parentCommerceAccountId,
java.lang.String email,
java.lang.String taxId,
int type,
boolean active,
java.lang.String externalReferenceCode,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceAccount |
addOrUpdateCommerceAccount(java.lang.String name,
long parentCommerceAccountId,
boolean logo,
byte[] logoBytes,
java.lang.String email,
java.lang.String taxId,
int type,
boolean active,
java.lang.String externalReferenceCode,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static void |
deleteCommerceAccount(long commerceAccountId) |
static CommerceAccount |
fetchByExternalReferenceCode(long companyId,
java.lang.String externalReferenceCode) |
static CommerceAccount |
fetchCommerceAccount(long commerceAccountId) |
static CommerceAccount |
getCommerceAccount(long commerceAccountId) |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static CommerceAccount |
getPersonalCommerceAccount(long userId) |
static CommerceAccountService |
getService() |
static java.util.List<CommerceAccount> |
getUserCommerceAccounts(long userId,
long parentCommerceAccountId,
int commerceSiteType,
java.lang.String keywords,
java.lang.Boolean active,
int start,
int end) |
static java.util.List<CommerceAccount> |
getUserCommerceAccounts(long userId,
long parentCommerceAccountId,
int commerceSiteType,
java.lang.String keywords,
int start,
int end) |
static int |
getUserCommerceAccountsCount(long userId,
long parentCommerceAccountId,
int commerceSiteType,
java.lang.String keywords) |
static int |
getUserCommerceAccountsCount(long userId,
long parentCommerceAccountId,
int commerceSiteType,
java.lang.String keywords,
java.lang.Boolean active) |
static CommerceAccount |
setActive(long commerceAccountId,
boolean active) |
static CommerceAccount |
updateCommerceAccount(long commerceAccountId,
java.lang.String name,
boolean logo,
byte[] logoBytes,
java.lang.String email,
java.lang.String taxId,
boolean active,
long defaultBillingAddressId,
long defaultShippingAddressId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceAccount |
updateCommerceAccount(long commerceAccountId,
java.lang.String name,
boolean logo,
byte[] logoBytes,
java.lang.String email,
java.lang.String taxId,
boolean active,
long defaultBillingAddressId,
long defaultShippingAddressId,
java.lang.String externalReferenceCode,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceAccount |
updateCommerceAccount(long commerceAccountId,
java.lang.String name,
boolean logo,
byte[] logoBytes,
java.lang.String email,
java.lang.String taxId,
boolean active,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Mueller (7.2.x), pass Default Billing/Shipping Ids
|
static CommerceAccount |
updateDefaultBillingAddress(long commerceAccountId,
long commerceAddressId) |
static CommerceAccount |
updateDefaultShippingAddress(long commerceAccountId,
long commerceAddressId) |
public static CommerceAccount addBusinessCommerceAccount(java.lang.String name, long parentCommerceAccountId, java.lang.String email, java.lang.String taxId, boolean active, java.lang.String externalReferenceCode, long[] userIds, java.lang.String[] emailAddresses, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceAccount addCommerceAccount(java.lang.String name, long parentCommerceAccountId, java.lang.String email, java.lang.String taxId, int type, boolean active, java.lang.String externalReferenceCode, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceAccount addOrUpdateCommerceAccount(java.lang.String name, long parentCommerceAccountId, boolean logo, byte[] logoBytes, java.lang.String email, java.lang.String taxId, int type, boolean active, java.lang.String externalReferenceCode, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteCommerceAccount(long commerceAccountId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceAccount fetchByExternalReferenceCode(long companyId, java.lang.String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceAccount fetchCommerceAccount(long commerceAccountId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceAccount getCommerceAccount(long commerceAccountId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.lang.String getOSGiServiceIdentifier()
public static CommerceAccount getPersonalCommerceAccount(long userId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<CommerceAccount> getUserCommerceAccounts(long userId, long parentCommerceAccountId, int commerceSiteType, java.lang.String keywords, java.lang.Boolean active, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<CommerceAccount> getUserCommerceAccounts(long userId, long parentCommerceAccountId, int commerceSiteType, java.lang.String keywords, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getUserCommerceAccountsCount(long userId, long parentCommerceAccountId, int commerceSiteType, java.lang.String keywords) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getUserCommerceAccountsCount(long userId, long parentCommerceAccountId, int commerceSiteType, java.lang.String keywords, java.lang.Boolean active) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceAccount setActive(long commerceAccountId, boolean active) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceAccount updateCommerceAccount(long commerceAccountId, java.lang.String name, boolean logo, byte[] logoBytes, java.lang.String email, java.lang.String taxId, boolean active, long defaultBillingAddressId, long defaultShippingAddressId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceAccount updateCommerceAccount(long commerceAccountId, java.lang.String name, boolean logo, byte[] logoBytes, java.lang.String email, java.lang.String taxId, boolean active, long defaultBillingAddressId, long defaultShippingAddressId, java.lang.String externalReferenceCode, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated public static CommerceAccount updateCommerceAccount(long commerceAccountId, java.lang.String name, boolean logo, byte[] logoBytes, java.lang.String email, java.lang.String taxId, boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceAccount updateDefaultBillingAddress(long commerceAccountId, long commerceAddressId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceAccount updateDefaultShippingAddress(long commerceAccountId, long commerceAddressId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceAccountService getService()