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

/role/has-user-roles

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

Returns true if the user has any one of the named regular roles.

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

names class java.lang.String[]

the names of the roles

inherited boolean

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

Type de retour

boolean

true if the user has any one of the regular roles; false otherwise

Exception

com.liferay.portal.kernel.exception.PortalException
if any one of the roles with the names could not be found in the company or if the 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 class java.lang.String[]
boolean