com.liferay.portal.service
Class RoleServiceUtil
java.lang.Object
com.liferay.portal.service.RoleServiceUtil
public class RoleServiceUtil
- extends java.lang.Object
The utility for the role remote service. This utility wraps com.liferay.portal.service.impl.RoleServiceImpl and is the primary access point for service operations in application layer code running on a remote server.
Never modify this class directly. Add custom service methods to com.liferay.portal.service.impl.RoleServiceImpl and rerun ServiceBuilder to regenerate this class.
This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
- Author:
- Brian Wing Shun Chan
- See Also:
RoleService,
RoleServiceBaseImpl,
com.liferay.portal.service.impl.RoleServiceImpl- Generated:
|
Method Summary |
static Role |
addRole(java.lang.String name,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.lang.String description,
int type)
|
static void |
addUserRoles(long userId,
long[] roleIds)
|
static void |
deleteRole(long roleId)
|
static java.util.List<Role> |
getGroupRoles(long groupId)
|
static Role |
getRole(long roleId)
|
static Role |
getRole(long companyId,
java.lang.String name)
|
static RoleService |
getService()
|
static java.util.List<Role> |
getUserGroupGroupRoles(long userId,
long groupId)
|
static java.util.List<Role> |
getUserGroupRoles(long userId,
long groupId)
|
static java.util.List<Role> |
getUserRelatedRoles(long userId,
java.util.List<Group> groups)
|
static java.util.List<Role> |
getUserRoles(long userId)
|
static boolean |
hasUserRole(long userId,
long companyId,
java.lang.String name,
boolean inherited)
|
static boolean |
hasUserRoles(long userId,
long companyId,
java.lang.String[] names,
boolean inherited)
|
void |
setService(RoleService service)
|
static void |
unsetUserRoles(long userId,
long[] roleIds)
|
static Role |
updateRole(long roleId,
java.lang.String name,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.lang.String description,
java.lang.String subtype)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoleServiceUtil
public RoleServiceUtil()
addRole
public static Role addRole(java.lang.String name,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.lang.String description,
int type)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addUserRoles
public static void addUserRoles(long userId,
long[] roleIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteRole
public static void deleteRole(long roleId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getGroupRoles
public static java.util.List<Role> getGroupRoles(long groupId)
throws SystemException
- Throws:
SystemException
getRole
public static Role getRole(long roleId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getRole
public static Role getRole(long companyId,
java.lang.String name)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getUserGroupGroupRoles
public static java.util.List<Role> getUserGroupGroupRoles(long userId,
long groupId)
throws SystemException
- Throws:
SystemException
getUserGroupRoles
public static java.util.List<Role> getUserGroupRoles(long userId,
long groupId)
throws SystemException
- Throws:
SystemException
getUserRelatedRoles
public static java.util.List<Role> getUserRelatedRoles(long userId,
java.util.List<Group> groups)
throws SystemException
- Throws:
SystemException
getUserRoles
public static java.util.List<Role> getUserRoles(long userId)
throws SystemException
- Throws:
SystemException
hasUserRole
public static boolean hasUserRole(long userId,
long companyId,
java.lang.String name,
boolean inherited)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
hasUserRoles
public static boolean hasUserRoles(long userId,
long companyId,
java.lang.String[] names,
boolean inherited)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unsetUserRoles
public static void unsetUserRoles(long userId,
long[] roleIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateRole
public static Role updateRole(long roleId,
java.lang.String name,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.lang.String description,
java.lang.String subtype)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getService
public static RoleService getService()
setService
public void setService(RoleService service)