IMetabasePolicy.AdmUserTitle

Syntax

AdmUserTitle(Locale: LocaleCodeID; Type: AdmUserType): String;

Parameters

Locale. Identifier of language and regional parameters.

Type. It determines an administrator type.

Description

The AdmUserTitle property determines a string to display in the security manager window title for the specified administrator type.

Comments

The Locale parameter cannot be equal to LocaleCodeID.None.

A string is nor formed (empty) by default. Only the user with a the Changing User Permissions, Distributing Roles, Changing Policy privilege can determine the string.

The string can be set for three user types:

Example

To execute the example, add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    Policy: IMetabasePolicy;
    Lic: Object;
Begin
    MB := MetabaseClass.Active;
    
// Check out license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
    MS := MB.Security;
    Policy := MS.Policy;
    
// Set string to display in security manager window title 
    Policy.AdmUserTitle(LocaleCodeID.Russian, AdmUserType.ISA) := "PM of information security administrator";
    Policy.AdmUserTitle(LocaleCodeID.Russian, AdmUserType.Admin) := 
"PM of application administrator";
    Policy.AdmUserTitle(LocaleCodeID.Russian, AdmUserType.ISA 
Or AdmUserType.Admin) := "PM of Administrator";
    
// Save changes
    MS.Apply;
    
// Check in license
    Lic := Null;
End Sub UserProc;

After executing the example an additional string depending on a privilege that the user has is displayed in the security manager window title.

See also:

IMetabasePolicy