Example usage for Java com.liferay.portal.kernel.service RoleLocalServiceUtil fields, constructors, methods, implement or subclass
The text is from its open source code.
com.liferay.portal.kernel.model.Role | addRole(long userId, String className, long classPK, String name, java.util.Map Adds a role with additional parameters. |
void | addUserRole(long userId, long roleId) |
void | addUserRole(long userId, com.liferay.portal.kernel.model.Role role) |
void | addUserRoles(long userId, java.util.List |
void | addUserRoles(long userId, long[] roleIds) |
com.liferay.portal.kernel.model.Role | deleteRole(long roleId) Deletes the role with the primary key from the database. |
com.liferay.portal.kernel.model.Role | deleteRole(com.liferay.portal.kernel.model.Role role) Deletes the role from the database. |
com.liferay.portal.kernel.model.Role | fetchRole(long roleId) |
com.liferay.portal.kernel.model.Role | fetchRoleByUuidAndCompanyId(String uuid, long companyId) Returns the role with the matching UUID and company. |
com.liferay.portal.kernel.model.Role | getRole(long companyId, String name) Returns the role with the name in the company. |
com.liferay.portal.kernel.model.Role | getRoleByUuidAndCompanyId(String uuid, long companyId) Returns the role with the matching UUID and company. |
java.util.List | getRoles(long companyId) Returns all the roles in the company. |
java.util.List | getRoles(long[] roleIds) Returns all the roles with the primary keys. |
java.util.List | getRoles(int start, int end) Returns a range of all the roles. |
java.util.List | getRoles(int type, String subtype) Returns all the roles of the type and subtype. |
java.util.List | getRoles(long companyId, int[] types) Returns all the roles with the types. |
com.liferay.portal.kernel.model.Role | getTeamRole(long companyId, long teamId) Returns the team role in the company. |
java.util.Map | getTeamRoleMap( long groupId) Returns the team role map for the group. |
java.util.List | getUserRoles(long userId) |
boolean | hasGroupRoles(long groupId) |
boolean | hasUserRole(long userId, long roleId) |
boolean | hasUserRole(long userId, long companyId, String name, boolean inherited) Returns true if the user is associated with the named regular role. |
com.liferay.portal.kernel.model.Role | updateRole(long roleId, String name, java.util.Map Updates the role with the primary key. |