public class AccountRoleServiceUtil
extends java.lang.Object
com.liferay.account.service.impl.AccountRoleServiceImpl 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.AccountRoleService| Constructor and Description |
|---|
AccountRoleServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static AccountRole |
addAccountRole(java.lang.String externalReferenceCode,
long accountEntryId,
java.lang.String name,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap) |
static void |
associateUser(long accountEntryId,
long[] accountRoleIds,
long userId) |
static void |
associateUser(long accountEntryId,
long accountRoleId,
long userId) |
static AccountRole |
deleteAccountRole(AccountRole accountRole) |
static AccountRole |
deleteAccountRole(long accountRoleId) |
static AccountRole |
getAccountRoleByRoleId(long roleId) |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static AccountRoleService |
getService() |
static com.liferay.portal.kernel.search.BaseModelSearchResult<AccountRole> |
searchAccountRoles(long companyId,
long[] accountEntryIds,
java.lang.String keywords,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator) |
static void |
setUserAccountRoles(long accountEntryId,
long[] accountRoleIds,
long userId) |
static void |
unassociateUser(long accountEntryId,
long accountRoleId,
long userId) |
public static AccountRole addAccountRole(java.lang.String externalReferenceCode, long accountEntryId, java.lang.String name, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void associateUser(long accountEntryId,
long accountRoleId,
long userId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void associateUser(long accountEntryId,
long[] accountRoleIds,
long userId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static AccountRole deleteAccountRole(AccountRole accountRole) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static AccountRole deleteAccountRole(long accountRoleId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static AccountRole getAccountRoleByRoleId(long roleId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static java.lang.String getOSGiServiceIdentifier()
public static com.liferay.portal.kernel.search.BaseModelSearchResult<AccountRole> searchAccountRoles(long companyId, long[] accountEntryIds, java.lang.String keywords, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void setUserAccountRoles(long accountEntryId,
long[] accountRoleIds,
long userId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void unassociateUser(long accountEntryId,
long accountRoleId,
long userId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static AccountRoleService getService()