new DataPermissionEventListener()
- Source:
Methods
beforeExecute(e, callback)
Occurs before executing a data operation.
Parameters:
Name | Type | Description |
---|---|---|
e |
DataEventArgs | An object that represents the event arguments passed to this operation. |
callback |
function | A callback function that should be called at the end of this operation. The first argument may be an error if any occured. |
- Source:
beforeRemove(e, callback) → {DataEventListener}
Occurs before removing a data object.
Parameters:
Name | Type | Description |
---|---|---|
e |
DataEventArgs | An object that represents the event arguments passed to this operation. |
callback |
function | A callback function that should be called at the end of this operation. The first argument may be an error if any occured. |
- Source:
Returns:
- Type
- DataEventListener
beforeSave(e, callback)
Occurs before creating or updating a data object.
Parameters:
Name | Type | Description |
---|---|---|
e |
DataEventArgs | An object that represents the event arguments passed to this operation. |
callback |
function | A callback function that should be called at the end of this operation. The first argument may be an error if any occured. |
- Source:
validate(e, callback)
Validates permissions against the event arguments provided.
Parameters:
Name | Type | Description |
---|---|---|
e |
DataEventArgs | An object that represents the event arguments passed to this operation. |
callback |
function | A callback function that should be called at the end of this operation. The first argument may be an error if any occured. |
- Source: