ISecurityLevel.PrintAllowed

Syntax

PrintAllowed: Boolean;

Description

The PrintAllowed property determines whether to enable the printing of objects with this security level. By default the property is set to True.

Example

Sub Main;

Var

MB: IMetabase;

MS: IMetabaseSecurity;

MU: IMetabasePolicy;

MAccess: IMetabaseMandatoryAccess;

Cat: ISecurityCategory;

Lvl: ISecurityLevel;

Begin

MB := MetabaseClass.Active;

MS := MB.Security;

MU := MS.Policy;

MAccess := MU.MandatoryAccess;

Cat := MAccess.AddCategory("Category 1");

Lvl := Cat.AddLevel(0, "Level 0");

Lvl.Marking := True;

Lvl := Cat.AddLevel(1, "Level 1");

Lvl.ExportAllowed := False;

Lvl := Cat.AddLevel(2, "Level 2");

Lvl.ExportAllowed := False;

Lvl.PrintAllowed := False;

MS.Apply;

End Sub Main;

After executing this example a new category is created in mandatory access of a security manager. In this category three criticality levels are created. For each level different access parameters of export and print and also labels during export and print are assigned.

See also:

ISecurityLevel