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
|
Name |
Type |
Direction |
Description |
Allowed Values / Example |
|---|---|---|---|---|
|
filterRoles |
Array of String |
in |
Specify a list of roles that will be used to filter the available roles. |
acme_manager, acme_employee |
|
|
Array of String |
return |
Returns 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 |
Related Content
Related Pages: