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-only
showError  number

The result of the rule is a broken rule with error severity.

Default value

read-only
showInformation  number

The result of the rule is a broken rule with information severity.

Default value

read-only
showWarning  number

The result of the rule is a broken rule with warning severity.

Default value

read-only
throwError  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.