| java.lang.Object com.liferay.portal.service.RoleServiceUtil
RoleServiceUtil | public class RoleServiceUtil (Code) | | View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This class provides static methods for the
com.liferay.portal.service.RoleService
bean. The static methods of this class calls the same methods of the bean
instance. It's convenient to be able to just write one line to call a method
on a bean instead of writing a lookup call and a method call.
com.liferay.portal.service.RoleServiceFactory
is responsible for the lookup of the bean.
author: Brian Wing Shun Chan See Also: com.liferay.portal.service.RoleService See Also: com.liferay.portal.service.RoleServiceFactory |
Method Summary | |
public static com.liferay.portal.model.Role | addRole(java.lang.String name, java.lang.String description, int type) | public static void | addUserRoles(long userId, long[] roleIds) | public static void | deleteRole(long roleId) | public static com.liferay.portal.model.Role | getGroupRole(long companyId, long groupId) | public static java.util.List | getGroupRoles(long groupId) | public static com.liferay.portal.model.Role | getRole(long roleId) | public static com.liferay.portal.model.Role | getRole(long companyId, java.lang.String name) | public static java.util.List | getUserGroupRoles(long userId, long groupId) | public static java.util.List | getUserRelatedRoles(long userId, java.util.List groups) | public static java.util.List | getUserRoles(long userId) | public static boolean | hasUserRole(long userId, long companyId, java.lang.String name, boolean inherited) | public static boolean | hasUserRoles(long userId, long companyId, java.lang.String[] names, boolean inherited) | public static void | unsetUserRoles(long userId, long[] roleIds) | public static com.liferay.portal.model.Role | updateRole(long roleId, java.lang.String name, java.lang.String description) |
|
|