Add(&Right):Void

Adds a new right to the data object.

By means of this method, a new permission can be added to a group for this data object.

If the method is called with a permission that is already defined for the data object, then an exception is triggered.

Return type: System.Void

Parameter

right

Type: &Onion.Client.Right

This parameter represents the permission to be added. For this method, a full oermission consists of the permissions (e.g. reading data object, editing data object) and the group to be given these permissions for the current data object.

The data object may not be defined since the permissions are to be set for the current data object. If the data object is set, then an ArgumentException is triggered with the message "AddRight a temporary right created from a group".