Package com.liferay.commerce.util
Interface CommerceAccountHelper
public interface CommerceAccountHelper
-
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.account.model.AccountEntryUserRel
addAccountEntryUserRel
(long accountEntryId, long userId, long[] roleIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.account.model.AccountEntryUserRel
addAccountEntryUserRel
(long commerceAccountId, long commerceAccountUserId, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
addAccountEntryUserRels
(long accountEntryId, long[] userIds, String[] emailAddresses, long[] roleIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
addDefaultRoles
(long userId) int
countUserCommerceAccounts
(long userId, long commerceChannelGroupId) String[]
getAccountEntryTypes
(long commerceChannelGroupId) getAccountManagementPortletURL
(javax.servlet.http.HttpServletRequest httpServletRequest) int
getCommerceSiteType
(long commerceChannelGroupId) com.liferay.account.model.AccountEntry
getCurrentAccountEntry
(long groupId, javax.servlet.http.HttpServletRequest httpServletRequest) long[]
getUserCommerceAccountIds
(long userId, long commerceChannelGroupId) void
setCurrentCommerceAccount
(javax.servlet.http.HttpServletRequest httpServletRequest, long groupId, long commerceAccountId) toAccountEntryStatus
(Boolean commerceAccountActive) String[]
toAccountEntryTypes
(int commerceSiteType)
-
Method Details
-
addAccountEntryUserRel
com.liferay.account.model.AccountEntryUserRel addAccountEntryUserRel(long accountEntryId, long userId, long[] roleIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addAccountEntryUserRel
com.liferay.account.model.AccountEntryUserRel addAccountEntryUserRel(long commerceAccountId, long commerceAccountUserId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addAccountEntryUserRels
void addAccountEntryUserRels(long accountEntryId, long[] userIds, String[] emailAddresses, long[] roleIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addDefaultRoles
void addDefaultRoles(long userId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
countUserCommerceAccounts
int countUserCommerceAccounts(long userId, long commerceChannelGroupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getAccountEntryTypes
String[] getAccountEntryTypes(long commerceChannelGroupId) throws com.liferay.portal.kernel.module.configuration.ConfigurationException - Throws:
com.liferay.portal.kernel.module.configuration.ConfigurationException
-
getAccountManagementPortletURL
String getAccountManagementPortletURL(javax.servlet.http.HttpServletRequest httpServletRequest) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceSiteType
int getCommerceSiteType(long commerceChannelGroupId) throws com.liferay.portal.kernel.module.configuration.ConfigurationException - Throws:
com.liferay.portal.kernel.module.configuration.ConfigurationException
-
getCurrentAccountEntry
com.liferay.account.model.AccountEntry getCurrentAccountEntry(long groupId, javax.servlet.http.HttpServletRequest httpServletRequest) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getUserCommerceAccountIds
long[] getUserCommerceAccountIds(long userId, long commerceChannelGroupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
setCurrentCommerceAccount
void setCurrentCommerceAccount(javax.servlet.http.HttpServletRequest httpServletRequest, long groupId, long commerceAccountId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
toAccountEntryStatus
-
toAccountEntryTypes
-