class staticbo.rules. AuthorizationAction
Source: rules/
Specifies the operations of models to authorize.
Properties
Method
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-onlycreateObject
number
The user tries to save the values of a new model to the repository.
- Default value
read-onlyexecuteCommand
number
The user tries to execute a command in the repository.
- Default value
read-onlyexecuteMethod
number
The user tries to execute a custom action in the repository. It can be a custom fetch or execute action.
- Default value
read-onlyfetchObject
number
The user tries to retrieve the values of a model from the repository.
- Default value
read-onlyreadProperty
number
The user tries to get the value of a property.
- Default value
read-onlyremoveObject
number
The user tries to delete the values of a model from the repository.
- Default value
read-onlyupdateObject
number
The user tries to save the changed values of a model to the repository.
- Default value
read-onlywriteProperty
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.