Access control is handled inside the data model through setting up specific annotations. The following example introduces how to define access control at the entity level.
Before you begin
You have created the data model DStar which holds two entities Agency and Agent. For more information, see Creating entities in a data model using a graphical designer and Adding simple type elements to entities.
You have created a new role called General_Manager. For further information about roles, see Defining a custom role.
About this task
In this example, you want to grant the General_Manager role a write access to the Agency entity and all its attributes.
- In the Data Model Entities area, click the entity of interest.
In the Properties view, click the Access
- Click the Write Access tab.
- Click the down arrow to show the list of roles defined in the Studio.
Select the role you want to grant the write access and then click the
[+] button to add the role to the
By default, the Set role recursively check box is selected. This will propagate the security setting to all subelements of the selected node. In this example, the security setting is applied to all attributes in the Agency entity.
- Press Ctrl+S to save your changes.