DLApp
Il n'y a aucun service assortissant cette expression.

/role/has-user-role

Méthode de HTTP
GET
com.liferay.portal.service.RoleServiceUtil#hasUserRole

Returns true if the user is associated with the named regular role.

Paramètres

p_auth String

authentication token used to validate the request

userId long

the primary key of the user

companyId long

the primary key of the company

name java.lang.String

the name of the role

inherited boolean

whether to include the user's inherited roles in the search

Type de retour

boolean

true if the user is associated with the regular role; false otherwise

Exception

com.liferay.portal.kernel.exception.PortalException
if a role with the name could not be found in the company or if a default user for the company could not be found
com.liferay.portal.kernel.exception.SystemException
if a system exception occurred

Exécuter

String long long java.lang.String
boolean