OCLOperators canAccess
No edit summary
No edit summary
 
(6 intermediate revisions by 3 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><span class="col-black">'''canAccess'''</span></code> operator is available on objects and checks if this object can access a supplied [[Documentation:ViewModel access and security|ViewModel]] based on the ViewModels Access Expression settings.


Template:
'''Template:'''
  self.canAccess(<name of viewmodel as string>)
  self.canAccess(<name of viewmodel as string>)
Example:
'''Example:'''
  self.canAccess(User.ViewModels.UserSettings)
  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.
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: ======
====== See also: ======
[[ViewModel access and security]]
[[Documentation:ViewModel access and security|ViewModel access and security]]


[[OCLOperators ViewModels]]
[[Documentation:OCLOperators ViewModels|OCLOperators ViewModels]]


Keywords: ViewModel, access, security
Keywords: ViewModel, access, security
[[Category:OCL General Operators]]
[[Category:OCL General Operators]]
{{Edited|July|12|2025}}

Latest revision as of 05:49, 7 February 2025

This page was created by Hans.karlsen@mdriven.net on 2017-10-05. Last edited by Stephanie@mdriven.net on 2025-02-07.

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

MDriven Chat

How would you like to chat today?

Setting up your conversation…

This may take a few moments