Mapping(BitIndex: Integer): ISecuritySubject;
BitIndex. Bit of the access mask in correspondence with which the security subject is set.
The Mapping property determines a map of correspondence of mask bits with security subjects.
Examples of working with the access permissions are given in the following subsections: Control access permissions to elements and Control access permissions to attributes.
Executing the example requires a table dictionary with the Dim_1 identifier.
Sub UserProc;
Var
MB: IMetabase;
MDesc: IMetabaseObjectDescriptor;
SecDesc: ISecurityDescriptor;
SecLab: ISecurityLabels;
Begin
MB := MetabaseClass.Active;
MDesc := MB.ItemById("Dim_1");
SecDesc := MDesc.SecurityDescriptor;
SecDesc.Edit;
SecLab := SecDesc.LabelSecurity;
SecLab.Mapping(4) := MB.Security.Users.Item(1);
SecDesc.Apply(False);
End Sub UserProc;
After executing the example the second user of the current repository is compared with the fourth bit of the mask.
See also: