Restricting data access

Restricting Data Access in MDriven can be achieved in 3 ways which are:

Below is a sample model, with a singleton class that has 2 attributes: Allowed Access and Interested as Booleans.

Access Groups

Documentation Restricting data access 1729507697380.png










Create Access Groups through the AccessGroups editor in the Designer as shown below: Add the Ocl Expression below in the View Enable Expression (Enable of ViewModel edit Controls)

Singleton.oclSingleton.AllowedAccess

To enable the AccessGroup on a ViewModel, click on the 3 dots extreme of AccessGroups label, this will load Access groups view. Select the access group to control the page:

Documentation Restricting data access 1729510330368.png



Run the application in the browser select the different access groups and observe the page response when the different access group to which the page is not attached responds as shown above.
Interest Groups

Note that interest groups are evaluated after access groups, it controls if we should bother to show the tagged action to the user or not. Interest groups only control the visibility of a tagged action. They are also used to declutter the left-side menu.

ViewModel-Enable

Documentation Restricting data access 1729512564921.png









See also:

AccessGroups, InterestGroups, ViewModel-Enable

Access Groups

This page was edited 1 days ago on 10/21/2024. What links here