OCLOperators canAccess
No edit summary
(Replacing message template with parser tag)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
The canAccess operator is available on objects and checks if this object can access a supplied [[ViewModel access and security|ViewModel]] based on the ViewModels Access Expression settings.
<message>Write the content here to display this box</message>
The <code>canAccess</code> operator is available on objects and checks if this object can access a supplied [[ViewModel access and security|ViewModel]] based on the ViewModels Access Expression settings.
 
'''Template:'''
self.canAccess(<name of viewmodel as string>)
'''Example:'''
self.canAccess(User.ViewModels.UserSettings)
In the example above, we use the ViewModels operator to ensure that if the ViewModel name is changed, we get notified by the Designer.
 
====== See also: ======
[[ViewModel access and security]]
 
[[OCLOperators ViewModels]]
 
Keywords: ViewModel, access, security
[[Category:OCL General Operators]]
{{Edited|July|12|2024}}

Latest revision as of 07:50, 17 June 2024

The canAccess operator is available on objects and checks if this object can access a supplied ViewModel based on the ViewModels Access Expression settings.

Template:

self.canAccess(<name of viewmodel as string>)

Example:

self.canAccess(User.ViewModels.UserSettings)

In the example above, we use the ViewModels operator to ensure that if the ViewModel name is changed, we get notified by the Designer.

See also:

ViewModel access and security

OCLOperators ViewModels

Keywords: ViewModel, access, security

This page was edited 94 days ago on 06/17/2024. What links here