AnnouncementsDelivery
DLApp
FlagsEntry
LayoutRevision
PollsVote
There are no services matching that phrase.

/user/has-role-user

Método do HTTP
GET
com.liferay.portal.service.UserServiceUtil#hasRoleUser

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

Parâmetros

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.

Tipo de retorno

boolean

true if the user has the role; false otherwise

Exceção

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

Executar

String long java.lang.String long
boolean