JBoss Community Archive (Read Only)

Teiid 8.12

Security Functions

Security functions provide the ability to interact with the security system.


Whether the current caller has the Teiid data role roleName.

hasRole([roleType,] roleName)

roleName must be a string, the return type is boolean.

The two argument form is provided for backwards compatibility. roleType is a string and must be 'data'.

Role names are case-sensitive and only match Teiid Data Roles. JAAS roles/groups names are not valid for this function - unless there is corresponding data role with the same name.

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 12:26:01 UTC, last content change 2012-01-18 21:51:46 UTC.