public class CommerceAccountLocalServiceUtil
extends java.lang.Object
com.liferay.commerce.account.service.impl.CommerceAccountLocalServiceImpl
and
is an access point for service operations in application layer code running
on the local server. Methods of this service will not have security checks
based on the propagated JAAS credentials because this service can only be
accessed from within the same VM.CommerceAccountLocalService
Constructor and Description |
---|
CommerceAccountLocalServiceUtil() |
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(CommerceAccount commerceAccount) |
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 CommerceAccount |
addPersonalCommerceAccount(long userId,
java.lang.String taxId,
java.lang.String externalReferenceCode,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceAccount |
createCommerceAccount(long commerceAccountId) |
static CommerceAccount |
deleteCommerceAccount(CommerceAccount commerceAccount) |
static CommerceAccount |
deleteCommerceAccount(long commerceAccountId) |
static void |
deleteCommerceAccounts(long companyId) |
static void |
deleteLogo(long commerceAccountId) |
static <T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
static CommerceAccount |
fetchByExternalReferenceCode(long companyId,
java.lang.String externalReferenceCode) |
static CommerceAccount |
fetchCommerceAccount(long commerceAccountId) |
static CommerceAccount |
fetchCommerceAccountByReferenceCode(long companyId,
java.lang.String externalReferenceCode) |
static CommerceAccount |
getCommerceAccount(long commerceAccountId) |
static CommerceAccount |
getCommerceAccount(long userId,
long commerceAccountId) |
static com.liferay.portal.kernel.model.Group |
getCommerceAccountGroup(long commerceAccountId) |
static java.util.List<CommerceAccount> |
getCommerceAccounts(int start,
int end) |
static int |
getCommerceAccountsCount() |
static CommerceAccount |
getGuestCommerceAccount(long companyId) |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static CommerceAccount |
getPersonalCommerceAccount(long userId) |
static CommerceAccountLocalService |
getService() |
static java.util.List<CommerceAccount> |
getUserCommerceAccounts(long userId,
java.lang.Long parentCommerceAccountId,
int commerceSiteType,
java.lang.String keywords,
java.lang.Boolean active,
int start,
int end) |
static java.util.List<CommerceAccount> |
getUserCommerceAccounts(long userId,
java.lang.Long parentCommerceAccountId,
int commerceSiteType,
java.lang.String keywords,
int start,
int end) |
static int |
getUserCommerceAccountsCount(long userId,
java.lang.Long parentCommerceAccountId,
int commerceSiteType,
java.lang.String keywords) |
static int |
getUserCommerceAccountsCount(long userId,
java.lang.Long parentCommerceAccountId,
int commerceSiteType,
java.lang.String keywords,
java.lang.Boolean active) |
static java.util.List<CommerceAccount> |
search(long companyId,
long parentCommerceAccountId,
java.lang.String keywords,
int type,
java.lang.Boolean active,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
static int |
searchCommerceAccountsCount(long companyId,
long parentCommerceAccountId,
java.lang.String keywords,
int type,
java.lang.Boolean active) |
static CommerceAccount |
setActive(long commerceAccountId,
boolean active) |
static CommerceAccount |
updateCommerceAccount(CommerceAccount commerceAccount) |
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) |
static CommerceAccount |
updateStatus(long userId,
long commerceAccountId,
int status,
com.liferay.portal.kernel.service.ServiceContext serviceContext,
java.util.Map<java.lang.String,java.io.Serializable> workflowContext)
Deprecated.
As of Cavanaugh (7.4.x)
|
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(CommerceAccount commerceAccount)
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 CommerceAccount addPersonalCommerceAccount(long userId, java.lang.String taxId, 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 createCommerceAccount(long commerceAccountId)
public static CommerceAccount deleteCommerceAccount(CommerceAccount commerceAccount) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceAccount deleteCommerceAccount(long commerceAccountId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteCommerceAccounts(long companyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteLogo(long commerceAccountId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
public static CommerceAccount fetchByExternalReferenceCode(long companyId, java.lang.String externalReferenceCode)
public static CommerceAccount fetchCommerceAccount(long commerceAccountId)
public static CommerceAccount fetchCommerceAccountByReferenceCode(long companyId, java.lang.String externalReferenceCode)
public static CommerceAccount getCommerceAccount(long commerceAccountId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceAccount getCommerceAccount(long userId, long commerceAccountId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.Group getCommerceAccountGroup(long commerceAccountId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<CommerceAccount> getCommerceAccounts(int start, int end)
public static int getCommerceAccountsCount()
public static CommerceAccount getGuestCommerceAccount(long companyId) 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, java.lang.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, java.lang.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, java.lang.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, java.lang.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 java.util.List<CommerceAccount> search(long companyId, long parentCommerceAccountId, java.lang.String keywords, int type, java.lang.Boolean active, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int searchCommerceAccountsCount(long companyId, long parentCommerceAccountId, java.lang.String keywords, int type, 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(CommerceAccount commerceAccount)
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
@Deprecated public static CommerceAccount updateStatus(long userId, long commerceAccountId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, java.util.Map<java.lang.String,java.io.Serializable> workflowContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceAccountLocalService getService()