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

/user/has-role-user

Méthode de HTTP
GET
com.liferay.portal.service.UserServiceUtil#hasRoleUser

Returns true if the user has the role with the name, optionally through inheritance.

Paramètres

p_auth String

authentication token used to validate the request

companyId long

the primary key of the role's company

name java.lang.String

the name of the role (must be a regular role, not an organization, site or provider role)

userId long

the primary key of the user

inherited boolean

whether to include roles inherited from organizations, sites, etc.

Type de retour

boolean

true if the user has the role; false otherwise

Exception

com.liferay.portal.kernel.exception.PortalException
if a role with the name could not be found
com.liferay.portal.kernel.exception.SystemException
if a system exception occurred

Exécuter

String long java.lang.String long
boolean