new AuthorizationAction()

Creates a new enumeration to define the authorization actions. Members:

  • fetchObject
  • createObject
  • updateObject
  • removeObject
  • executeCommand
  • executeMethod
  • readProperty
  • writeProperty
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
createObject  number

The user tries to save the values of a new model to the repository.

Default value

read-only
executeCommand  number

The user tries to execute a command in the repository.

Default value

read-only
executeMethod  number

The user tries to execute a custom action in the repository. It can be a custom fetch or execute action.

Default value

read-only
fetchObject  number

The user tries to retrieve the values of a model from the repository.

Default value

read-only
readProperty  number

The user tries to get the value of a property.

Default value

read-only
removeObject  number

The user tries to delete the values of a model from the repository.

Default value

read-only
updateObject  number

The user tries to save the changed values of a model to the repository.

Default value

read-only
writeProperty  number

The user tries to set the value of a property.

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.