You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Non-static operation.

This operation returns a list of all roles that have been assigned to the current user. You need a current security service object to call this operation (which you can get using getSecurityService()).

Interfaces

  • getCurrentUserRoles() : Array of String
  • getCurrentUserRoles(in filterRoles : String[]) : Array of String

Parameters

NameTypeDirectionDescriptionAllowed Values / Example
filterRolesArray of Stringin

Specify a list of roles that will be used to filter the available roles.

acme_manager, acme_employee

Array of StringreturnReturns a list roles that have been assigned to the current user. If filterRoles has been specified, the list only contains roles from the filter that have been assigned.acme_employee

On this Page:

  • No labels