Restricting data access
mNo edit summary
No edit summary
Line 8: Line 8:
[[File:Documentation Restricting data access 1729507697380.png|thumb|300x300px|left]]
[[File:Documentation Restricting data access 1729507697380.png|thumb|300x300px|left]]


<br /><br /><br /><br /><br /><br /><br /><br /><br />Create Access Groups through the AccessGroups editor in Designer as shown below:<syntaxhighlight>
<br /><br /><br /><br /><br /><br /><br /><br /><br />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)<syntaxhighlight>
Singleton.oclSingleton.AllowedAccess
Singleton.oclSingleton.AllowedAccess
</syntaxhighlight><gallery>
</syntaxhighlight>
File:Documentation Restricting data access 1729507814010.png
[[File:Documentation Restricting data access 1729508675945.png|thumb|300x300px]]
</gallery><br /><br />[[Documentation:AccessGroups, InterestGroups and ViewModel-Enable|Interest Groups]]
<br /><br />[[Documentation:AccessGroups, InterestGroups and ViewModel-Enable|Interest Groups]]


[[Documentation:AccessGroups, InterestGroups and ViewModel-Enable|ViewModel-Enable]]
[[Documentation:AccessGroups, InterestGroups and ViewModel-Enable|ViewModel-Enable]]

Revision as of 11:04, 21 October 2024

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
Documentation Restricting data access 1729508675945.png



Interest Groups

ViewModel-Enable

This page was edited 59 days ago on 01/20/2025. What links here