OCLOperators canAccess
m ((username removed) (log details removed): Moving to Documentation namespace)
(Automatically adding template at the end of the page.)
Line 14: Line 14:
Keywords: ViewModel, access, security
Keywords: ViewModel, access, security
[[Category:OCL General Operators]]
[[Category:OCL General Operators]]
{{Edited|July|12|2024}}

Revision as of 15:41, 10 February 2024

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