IMetabaseUpdate.ReflectObjectsRights

Syntax

ReflectObjectsRights: UpdateReflectObjectsRightsType;

Description

The ReflectObjectsRights property determines a method of shifting rights to repository object.

Example

Executing the example requires that the repository contains two tables with the Table_1 and Table_2 identifiers.

Sub Main;

Var

MB: IMetabase;

Update: IMetabaseUpdate;

Root: IMetabaseUpdateFolderNode;

TableObj: IMetabaseUpdateDataObjectNode;

Begin

MB := MetabaseClass.Active;

Update := MB.CreateUpdate;

Root := Update.RootFolder;

TableObj := Root.Add(MetabaseUpdateNodeType.DataObject) As IMetabaseUpdateDataObjectNode;

TableObj.Object := MB.ItemById("Table_1");

TableObj.UpdatePart := MetabaseObjectUpdatePart.DataMetadataSD;

TableObj := Root.Add(MetabaseUpdateNodeType.DataObject) As IMetabaseUpdateDataObjectNode;

TableObj.Object := MB.ItemById("Table_2");

TableObj.UpdatePart := MetabaseObjectUpdatePart.DataMetadataSD;

Update.ReflectObjectsRights := UpdateReflectObjectsRightsType.Ask;

Update.SaveToFileNF("c:\Table.pefx");

End Sub Main;

After executing this example a new update is created. Two tables are included in the update. Data, metadata and access permissions are updated for the tables. When applying update, a query to update rights for access to the tables on the DBMS level is displayed.

See also:

IMetabaseUpdate