@ProviderType
@Transactional(isolation=PORTAL,
rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class})
public interface CommerceAccountLocalService
extends com.liferay.portal.kernel.service.BaseLocalService
CommerceAccountLocalServiceUtil
Modifier and Type | Method and Description |
---|---|
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) |
CommerceAccount |
addCommerceAccount(CommerceAccount commerceAccount) |
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) |
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) |
CommerceAccount |
addPersonalCommerceAccount(long userId,
java.lang.String taxId,
java.lang.String externalReferenceCode,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceAccount |
createCommerceAccount(long commerceAccountId) |
CommerceAccount |
deleteCommerceAccount(CommerceAccount commerceAccount) |
CommerceAccount |
deleteCommerceAccount(long commerceAccountId) |
void |
deleteCommerceAccounts(long companyId) |
void |
deleteLogo(long commerceAccountId) |
<T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
CommerceAccount |
fetchByExternalReferenceCode(long companyId,
java.lang.String externalReferenceCode) |
CommerceAccount |
fetchCommerceAccount(long commerceAccountId) |
CommerceAccount |
fetchCommerceAccountByReferenceCode(long companyId,
java.lang.String externalReferenceCode) |
CommerceAccount |
getCommerceAccount(long commerceAccountId) |
CommerceAccount |
getCommerceAccount(long userId,
long commerceAccountId) |
com.liferay.portal.kernel.model.Group |
getCommerceAccountGroup(long commerceAccountId) |
java.util.List<CommerceAccount> |
getCommerceAccounts(int start,
int end) |
int |
getCommerceAccountsCount() |
CommerceAccount |
getGuestCommerceAccount(long companyId) |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
CommerceAccount |
getPersonalCommerceAccount(long userId) |
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) |
java.util.List<CommerceAccount> |
getUserCommerceAccounts(long userId,
java.lang.Long parentCommerceAccountId,
int commerceSiteType,
java.lang.String keywords,
int start,
int end) |
int |
getUserCommerceAccountsCount(long userId,
java.lang.Long parentCommerceAccountId,
int commerceSiteType,
java.lang.String keywords) |
int |
getUserCommerceAccountsCount(long userId,
java.lang.Long parentCommerceAccountId,
int commerceSiteType,
java.lang.String keywords,
java.lang.Boolean active) |
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) |
int |
searchCommerceAccountsCount(long companyId,
long parentCommerceAccountId,
java.lang.String keywords,
int type,
java.lang.Boolean active) |
CommerceAccount |
setActive(long commerceAccountId,
boolean active) |
CommerceAccount |
updateCommerceAccount(CommerceAccount commerceAccount) |
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) |
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) |
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
|
CommerceAccount |
updateDefaultBillingAddress(long commerceAccountId,
long commerceAddressId) |
CommerceAccount |
updateDefaultShippingAddress(long commerceAccountId,
long commerceAddressId) |
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)
|
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
CommerceAccount addCommerceAccount(CommerceAccount commerceAccount)
@Indexable(type=REINDEX) 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
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
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
CommerceAccount createCommerceAccount(long commerceAccountId)
@Indexable(type=DELETE) @SystemEvent(type=1) CommerceAccount deleteCommerceAccount(CommerceAccount commerceAccount) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
CommerceAccount deleteCommerceAccount(long commerceAccountId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
void deleteCommerceAccounts(long companyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
void deleteLogo(long commerceAccountId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
@Transactional(propagation=SUPPORTS, readOnly=true) CommerceAccount fetchByExternalReferenceCode(long companyId, java.lang.String externalReferenceCode)
@Transactional(propagation=SUPPORTS, readOnly=true) CommerceAccount fetchCommerceAccount(long commerceAccountId)
@Transactional(propagation=SUPPORTS, readOnly=true) CommerceAccount fetchCommerceAccountByReferenceCode(long companyId, java.lang.String externalReferenceCode)
@Transactional(propagation=SUPPORTS, readOnly=true) CommerceAccount getCommerceAccount(long commerceAccountId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) CommerceAccount getCommerceAccount(long userId, long commerceAccountId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.model.Group getCommerceAccountGroup(long commerceAccountId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommerceAccount> getCommerceAccounts(int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) int getCommerceAccountsCount()
@Transactional(propagation=SUPPORTS, readOnly=true) CommerceAccount getGuestCommerceAccount(long companyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
java.lang.String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) CommerceAccount getPersonalCommerceAccount(long userId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) 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
@Transactional(propagation=SUPPORTS, readOnly=true) 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
@Transactional(propagation=SUPPORTS, readOnly=true) 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
@Transactional(propagation=SUPPORTS, readOnly=true) 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
@Transactional(propagation=SUPPORTS, readOnly=true) 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
@Transactional(propagation=SUPPORTS, readOnly=true) 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
@Indexable(type=REINDEX) CommerceAccount setActive(long commerceAccountId, boolean active) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
CommerceAccount updateCommerceAccount(CommerceAccount commerceAccount)
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
@Indexable(type=REINDEX) 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 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
@Indexable(type=REINDEX) CommerceAccount updateDefaultBillingAddress(long commerceAccountId, long commerceAddressId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) CommerceAccount updateDefaultShippingAddress(long commerceAccountId, long commerceAddressId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated @Indexable(type=REINDEX) 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