class staticbo.rules. NoAccessBehavior
Source: rules/
Specifies the behavior when an authorization rule fails.
Properties
Method
new NoAccessBehavior()
Creates a new enumeration to define the behavior of unauthorized actions. Members:
- throwError
- showError
- showWarning
- showInformation
- Extends
- bo.system.Enumeration
Properties
read-only$name
string
The name of the enumeration. The default value is the name of the constructor.
- Inherited from
- bo.system.Enumeration#$name
read-onlyshowError
number
The result of the rule is a broken rule with error severity.
- Default value
read-onlyshowInformation
number
The result of the rule is a broken rule with information severity.
- Default value
read-onlyshowWarning
number
The result of the rule is a broken rule with warning severity.
- Default value
read-onlythrowError
number
The rule throws an authorization error.
- Default value
Method
hasValue(name) → boolean
Determines if the enumeration has an item with the given name.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
name |
|
|
The name of the enumeration item. |
- Inherited from
- bo.system.Enumeration#hasValue
- Returns
-
True if the name is an enumeration item, otherwise false.