Package com.liferay.account.service
Class AccountRoleServiceUtil
java.lang.Object
com.liferay.account.service.AccountRoleServiceUtil
Provides the remote service utility for AccountRole. This utility wraps
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.- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AccountRole
addAccountRole
(String externalReferenceCode, long accountEntryId, String name, Map<Locale, String> titleMap, Map<Locale, String> descriptionMap) static void
associateUser
(long accountEntryId, long[] accountRoleIds, long userId) static void
associateUser
(long accountEntryId, long accountRoleId, long userId) static AccountRole
deleteAccountRole
(long accountRoleId) static AccountRole
deleteAccountRole
(AccountRole accountRole) static AccountRole
getAccountRoleByRoleId
(long roleId) static String
Returns the OSGi service identifier.static AccountRoleService
static com.liferay.portal.kernel.search.BaseModelSearchResult<AccountRole>
searchAccountRoles
(long companyId, long[] accountEntryIds, String keywords, LinkedHashMap<String, 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)
-
Constructor Details
-
AccountRoleServiceUtil
public AccountRoleServiceUtil()
-
-
Method Details
-
addAccountRole
public static AccountRole addAccountRole(String externalReferenceCode, long accountEntryId, String name, Map<Locale, String> titleMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap) - Throws:
com.liferay.portal.kernel.exception.PortalException
-
associateUser
public static void associateUser(long accountEntryId, long accountRoleId, long userId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
associateUser
public static void associateUser(long accountEntryId, long[] accountRoleIds, long userId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteAccountRole
public static AccountRole deleteAccountRole(AccountRole accountRole) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteAccountRole
public static AccountRole deleteAccountRole(long accountRoleId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getAccountRoleByRoleId
public static AccountRole getAccountRoleByRoleId(long roleId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
searchAccountRoles
public static com.liferay.portal.kernel.search.BaseModelSearchResult<AccountRole> searchAccountRoles(long companyId, long[] accountEntryIds, String keywords, LinkedHashMap<String, Object> params, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
setUserAccountRoles
public static void setUserAccountRoles(long accountEntryId, long[] accountRoleIds, long userId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
unassociateUser
public static void unassociateUser(long accountEntryId, long accountRoleId, long userId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getService
-