Role Bindings Widgets
Definition
Two Widgets allow to edit and display Roles bound to a Super Role.
A Super Role defines a set of Roles that will be automatically granted to an Identity when an assignment of this Super Role is performed. This is described in a Role binding.
Role Bindings Edit | Role Bindings Display |
---|---|
![]() ![]() | ![]() ![]() |
Tips
To access the Role Bindings Edit Widget or Role Bindings Display Widget, you must configure the Widget on a Feature with:
Object kind = ROLE
Object type = Role Type (which is a standard Role)
Use
When the Role Bindings Edit Widget is configured in an update feature, you can add, update or delete a bound Role to a Super Role.
When the Role Bindings Display Widget is configured in a read feature, you can view a bound Role to a Super Role.
Create and update Role Bindings
You can bind a Role to a Super Role by clicking on the "Add Role" button.
You can update the bound Role to a Super Role by clicking on the "Edit" button.
On each case, a pop-up opens with a form which displays a drop-down list with available Roles.
When you choose a Role with configured dimensions, the following information is displayed:
role id
name
dimensions mapping
Dimensions mapping
This part allows to define the dimensions mapping on the Role.
When configuring a Role Binding on a Super Role, all of the dimensions must me mapped. This means the binding must configure how the value for these dimensions will be computed.
If a dimension mapping is mandatory, a red star is displayed next to it.
A dimension mapping can be configured as following:
Mapping type | Value type | Description | Examples |
---|---|---|---|
None |
| When no Dimension Mapping is set, then the Dimension is visible directly on the parent Role. It is considered as "exposed". Technically, it is as if the child Role or Right's Dimension were configured directly on the parent Role. | ![]()
|
No Value |
| This type is available only if the dimension is not mandatory. |
|
Direct |
| When configured as a "direct" Dimension Mapping, the child Role's Dimension is valued using an input from one of the parent Role's Dimension. Typically used when:
The user can select the id of the dimension by using a drop-down list. | ![]()
|
Value |
| The dimension value is explicitly set in the mapping. If the dimension is multivalued, it is possible to add several values. In this case, the dimension will never be displayed (on the Role Assignment widget or on the Role Dashboard) even if a tag has been defined. | ![]()
|
Expression |
| When configured as an "expression" Dimension Mapping, the value is computed with a provided groovy expression that can make use of any of the following values:
| Example to configure a concatenation of two dimensions (monovalued) :
CODE
Example to configure a concatenation of two dimensions (multivalued) :
CODE
|
Delete Role Bindings
You can delete a bound Role to a Super Role by clicking on the "Delete" button.
Read Role Bindings
You can consult a bound Role to a Super Role by clicking on the "View" button.
Configuration
Properties
Property name | Type | Mandatory | Description | Edit | Display |
---|---|---|---|---|---|
| NO | Allows to limit the search results. |
|
| |
search | - | YES | Same configuration as a Search Widget Type. <rowClickActions> and <allowExport> tags are not applicable for this Widget. |
|
|
Example
Edit | Display |
---|---|
XML
|
XML
|