Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
Column
width20%
<check-permission>
Column
Checks if the user has the specified permission, and adds an error message to the error message list if the user does not have the specified permission.

Attributes

permission

optional

The permission to check

 

action

optional

The action to be performed (permission scope)

 

error-list-name

optional

The name of the error list

Defaults to "error_list"


Child Elements

<accept-userlogin-party>

optional

<alt-permission>

optional

<fail-message>

optional

<fail-property>

optional


Info
titleProposed Changes
  • Currently, the permission and action attributes are optional. Require the permission and action attributes.
  • Eliminate the error-list-name attribute.
  • Currently, the child elements are optional. Require one child element.
Section
Column
width20%
<condition>
Column
Combines a group of conditional elements into a single logical (true/false) expression.
Code Block
xml
xml
<if>
    <condition>
        <and>
            <if-compare field="colorModel" operator="equals" value="RYB" />
            <or>
                <if-compare field="color" operator="equals" value="red" />
                <if-compare field="color" operator="equals" value="yellow" />
                <if-compare field="color" operator="equals" value="blue" />
            </or>
        </and>
    </condition>
    <then>
        <set field="isPrimaryColor" value="true" type="Boolean" />
    </then>
    <else>
        <set field="isPrimaryColor" value="false" type="Boolean" />
    </else>
</if>

...