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(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 void |
setUserAccountRoles(long accountEntryId,
long[] accountRoleIds,
long userId) |
static void |
unassociateUser(long accountEntryId,
long accountRoleId,
long userId) |
public static AccountRole addAccountRole(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.PortalException
public static void associateUser(long accountEntryId, long accountRoleId, long userId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void associateUser(long accountEntryId, long[] accountRoleIds, long userId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static AccountRole deleteAccountRole(AccountRole accountRole) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static AccountRole deleteAccountRole(long accountRoleId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static AccountRole getAccountRoleByRoleId(long roleId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.lang.String getOSGiServiceIdentifier()
public static void setUserAccountRoles(long accountEntryId, long[] accountRoleIds, long userId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void unassociateUser(long accountEntryId, long accountRoleId, long userId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static AccountRoleService getService()