IAuditOperations.Mask

Syntax

Mask: Integer;

Description

The Mask property returns an operation mask.

Comments

Operation mask corresponds to the operation, record for which was added in the access protocol. It is necessary to use a value of the MetabaseObjectPredefinedRights enumeration type to check a value of the mask. This enumeration contains main and additional operations to which it is possible to give rights. The specific operations are available for defined classes of objects. Values of the following enumerations can be used to check specific operations depending on the object class:

Basic, additional and specific operations available for specified objects types are shown in the Types of Events section.

To analyze a mask value it is necessary to implement a custom function that enables the comparison of separate mask bits with relevant enumerations values. The example of work with access mask is shown in the Examples: Working with Access Mask section.

Example

Sub Main;

Var

MB: IMetabase;

MS: IMetabaseSecurity;

AL: IAuditLog;

ALogon: IAuditLogons;

Operat: IAuditOperations;

i: Integer;

Begin

MB:=MetabaseClass.Active;

MS:=MB.Security;

Al:=MS.OpenAuditLog;

ALogon:= AL.OpenLogons(False);

ALogon.Next;

Operat:=Al.OpenOperations(ALogon.Session);

i:=Operat.Mask;

End Sub Main;

After executing this example the "i" variable contains mask of the last operation.

See also:

IAuditOperations