ISecurityDocumentLabel.IsON

Syntax

IsON: Boolean;

Description

The IsON property returns whether marking of objects is activated.

Comments

The property returns True, if the access level that provides marking of the objects during printing and export was set for the objects.

Example

Executing the example requires that the repository contains an object with the Obj_1 identifier.

Sub Main;
Var
    MB: IMetabase;
    MDesc: IMetabaseObjectDescriptor;
    SecDesc: ISecurityDescriptor;
    Subj: ISecuritySubject;
    i, j: Integer;
    Lab: ISecurityDocumentLabel;
Begin
    MB := MetabaseClass.Active;
    Subj := MB.Security.Users.Item(
0);
    MDesc := MB.ItemById(
"Obj_1");
    SecDesc := MDesc.SecurityDescriptor;
    SecDesc.GetEffectiveRightsAuditLabel(Subj 
As ISecuritySubject, 1, i, j, Lab);
    
If Lab.IsON Then
        Debug.WriteLine(Lab.Label);
        Debug.WriteLine(Lab.LabelDescription);
        Debug.WriteLine(Lab.TreatSectionAsDocument);
        Debug.WriteLine(Lab.User.Name);
    
End If;
End Sub Main;

After executing the example, the "i" and "j" variables contain the values that correspond to effective access permissions and access auditing of the first user contained in the security manager for the specified repository object. If the mandatory access control was activated in the repository and the level, for which the marking of objects is provided when exporting and printing, was specified to the object, the Lab variable would contain parameters of the security label that is used for marking. These parameters are displayed in the development environment console.

See also:

ISecurityDocumentLabel