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.
Sub Main;
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 Main;
After executing this example the second user of the current repository is compared with the fourth bit of the mask. An object that contains security label is a table dictionary with the Dim_1 identifier.
See also: