|
Field |
Description |
Variables |
|
#Permission |
A
VGIPermission object containing the permission for which the
security action is executed. You can access to the value of a
permission argument by using the syntax: #Permission['myarg'].
|
|
#Principal |
A
VGIPrincipal object containing the principal for which the action
is executed.
You
can use this variable to check whether the user is authenticated or
not (#Principal.Identity.IsAuthenticated) or if the current user is
member of a specific role
(#Principal.IsInRole('administrator')).
|
|
Current User
Id |
A
string value containing the Visual Guard repository Id of the user
for which the action is executed.
|
|
Current
UserName |
A
string value containing the name of the user for which the action
is executed.
|
Expressions |
|
and |
This the logical or conditional AND operator (compatible with
integer, enum or boolean types)
For Example
1 == 1 and 'a' == 'a'
MyEnum.Value1 and MyEnum.Value2
1 and 2
|
|
or |
This is the logical or conditional OR operator (compatible with
integer, enum or boolean types)
For Example
1 == 1 or 'a' == 'b'
MyEnum.Value1 or MyEnum.Value2
1 or 2
|
|
== |
Equality for
example0==0 |
|
!= |
Inequality for example 1 !=0
|
|
>= |
Greater than or
Equal for example 1>=1 |
|
<= |
Less than or equal
for example 1<=1 |
|
> |
Greater than for
example 1>0 |
|
< |
Less Than for
example 1<0 |
|
is |
This option checks if an object is compatible with a given
type.
For example '1' is string
|
|
like |
This option compares a string against a pattern.
For example 'Abc' like '[A-Z]b*'
|
|
between |
This option checks if a numeric or string value is between two
values
For example
1 between {0,2}
'efg' between {'abc', 'xyz'}
|
|
type of |
This option checks
the data type of the value. |