| java.lang.Object com.liferay.portal.service.base.RoleLocalServiceBaseImpl com.liferay.portal.service.impl.RoleLocalServiceImpl
Method Summary | |
public Role | addRole(long userId, long companyId, String name, String description, int type) | public Role | addRole(long userId, long companyId, String name, String description, int type, String className, long classPK) | public void | addUserRoles(long userId, long[] roleIds) | public void | checkSystemRoles(long companyId) | public void | deleteRole(long roleId) | public Role | getGroupRole(long companyId, long groupId) | public List | getGroupRoles(long groupId) | public Map | getResourceRoles(long companyId, String name, int scope, String primKey) | public Role | getRole(long roleId) | public Role | getRole(long companyId, String name) | public List | getUserGroupRoles(long userId, long groupId) | public List | getUserRelatedRoles(long userId, long groupId) | public List | getUserRelatedRoles(long userId, long[] groupIds) | public List | getUserRelatedRoles(long userId, List groups) | public List | getUserRoles(long userId) | public boolean | hasUserRole(long userId, long roleId) | public boolean | hasUserRole(long userId, long companyId, String name, boolean inherited) Returns true if the user has the role. | public boolean | hasUserRoles(long userId, long companyId, String[] names, boolean inherited) Returns true if the user has any one of the specified roles. | public List | search(long companyId, String name, String description, Integer type, int begin, int end, OrderByComparator obc) | public List | search(long companyId, String name, String description, Integer type, LinkedHashMap params, int begin, int end, OrderByComparator obc) | public int | searchCount(long companyId, String name, String description, Integer type) | public int | searchCount(long companyId, String name, String description, Integer type, LinkedHashMap params) | public void | setUserRoles(long userId, long[] roleIds) | public void | unsetUserRoles(long userId, long[] roleIds) | public Role | updateRole(long roleId, String name, String description) | protected void | validate(long roleId, long companyId, String name) |
hasUserRole | public boolean hasUserRole(long userId, long companyId, String name, boolean inherited) throws PortalException, SystemException(Code) | | Returns true if the user has the role.
Parameters: userId - the user id of the user Parameters: companyId - the company id of the company Parameters: name - the name of the role Parameters: inherited - boolean value for whether to check roles inheritedfrom the community, organization, location, or user group true if the user has the role |
hasUserRoles | public boolean hasUserRoles(long userId, long companyId, String[] names, boolean inherited) throws PortalException, SystemException(Code) | | Returns true if the user has any one of the specified roles.
Parameters: userId - the user id of the user Parameters: companyId - the company id of the company Parameters: names - an array of role names Parameters: inherited - boolean value for whether to check roles inheritedfrom the community, organization, location, or user group true if the user has the role |
|
|