Home > Contents > Index >
ROLELIST.GETALL
Gets the list of roles as a comma-separated string.
Syntax
<ROLELIST.GETALL NAME="rolelist_object_name
" VARNAME="variable_name
" />Parameters
NAME (required)
- Name of the role list object.
VARNAME (required)
- Name of the variable to create.
Example
The following code gets all the roles in a role list object as a string, verifies whether or not the object contains any roles, and then displays the roles.
<!-- Show user roles --> <ROLELIST.GETALL NAME="roleobject" VARNAME="roles"/> <IF COND="IsVariable.roles=false"> <THEN> <SETVAR NAME="roles" VALUE="[None]"/> <BR/> ROLELIST.GETALL: No roles found <BR/> </THEN> <ELSE> <BR/> ROLELIST.GETALL: Roles found are <CSVAR NAME="Variables.roles"/><BR/><BR/> </ELSE> </IF>
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.