IMetabasePolicy.MethodsCombineAlgorithm

Syntax

MethodsCombineAlgorithm: ControlMethodsCombineAlgorithm;

Description

The MethodsCombineAlgorithm property determines permission combination algorithm by attribute-based and discretionary access control method.

Comments

The property is relevant if attribute-based and discretionary access control methods are used simultaneously.

Example

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

Sub UserProc;
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    Lic: Object;
Begin
    MB := MetabaseClass.Active;
    
// Check out license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
    MS := MB.Security;
    
// Activate the use of discretionary and attribute-based access control
    MS.Policy.DiscretionaryAccessControl := True;
    MS.Policy.AttributeBasedAccessControl := 
True;
    
// Set the OR combination algorithm
    MS.Policy.MethodsCombineAlgorithm := ControlMethodsCombineAlgorithm.Permit;
    
// Save changes
    MS.Apply;
    
// Check in license
    Lic := Null;
End Sub UserProc;

After executing the example the use of discretionary and attribute-based access control methods will be activated and the OR permission combination algorithm is set.

When the combination algorithm is set:

See also:

IMetabasePolicy