DLApp
There are no services matching that phrase.

/role/get-role

HTTP Method
GET
com.liferay.portal.service.RoleServiceUtil#getRole

Returns the role with the name in the company.

The method searches the system roles map first for default roles. If a role with the name is not found, then the method will query the database.

Parameters

p_auth String

authentication token used to validate the request

companyId long

the primary key of the company

name java.lang.String

the role's name

Return Type

com.liferay.portal.model.Role

the role with the name

Exception

com.liferay.portal.kernel.exception.PortalException
if a role with the name could not be found in the company or if the user did not have permission to view the role
com.liferay.portal.kernel.exception.SystemException
if a system exception occurred

Execute

String long java.lang.String