Java com.liferay.portal.kernel.service RoleLocalServiceUtil fields, constructors, methods, implement or subclass

Example usage for Java com.liferay.portal.kernel.service RoleLocalServiceUtil fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.liferay.portal.kernel.service RoleLocalServiceUtil.

The text is from its open source code.

Method

com.liferay.portal.kernel.model.RoleaddRole(long userId, String className, long classPK, String name, java.util.Map titleMap, java.util.Map descriptionMap, int type, String subtype, ServiceContext serviceContext)
Adds a role with additional parameters.
voidaddUserRole(long userId, long roleId)
voidaddUserRole(long userId, com.liferay.portal.kernel.model.Role role)
voidaddUserRoles(long userId, java.util.List roles)
voidaddUserRoles(long userId, long[] roleIds)
com.liferay.portal.kernel.model.RoledeleteRole(long roleId)
Deletes the role with the primary key from the database.
com.liferay.portal.kernel.model.RoledeleteRole(com.liferay.portal.kernel.model.Role role)
Deletes the role from the database.
com.liferay.portal.kernel.model.RolefetchRole(long roleId)
com.liferay.portal.kernel.model.RolefetchRoleByUuidAndCompanyId(String uuid, long companyId)
Returns the role with the matching UUID and company.
com.liferay.portal.kernel.model.RolegetRole(long companyId, String name)
Returns the role with the name in the company.
com.liferay.portal.kernel.model.RolegetRoleByUuidAndCompanyId(String uuid, long companyId)
Returns the role with the matching UUID and company.
java.util.ListgetRoles(long companyId)
Returns all the roles in the company.
java.util.ListgetRoles(long[] roleIds)
Returns all the roles with the primary keys.
java.util.ListgetRoles(int start, int end)
Returns a range of all the roles.
java.util.ListgetRoles(int type, String subtype)
Returns all the roles of the type and subtype.
java.util.ListgetRoles(long companyId, int[] types)
Returns all the roles with the types.
com.liferay.portal.kernel.model.RolegetTeamRole(long companyId, long teamId)
Returns the team role in the company.
java.util.MapgetTeamRoleMap( long groupId)
Returns the team role map for the group.
java.util.ListgetUserRoles(long userId)
booleanhasGroupRoles(long groupId)
booleanhasUserRole(long userId, long roleId)
booleanhasUserRole(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.RoleupdateRole(long roleId, String name, java.util.Map titleMap, java.util.Map descriptionMap, String subtype, ServiceContext serviceContext)
Updates the role with the primary key.