Loading Security Information

The following steps provide an overview of how to load security information. These steps assume that an application has previously been opened with one of the OpenApplication methods.

Caution!

If you attempt to load security classes into a Performance Management Architect application, Load will fail.

Tip:

For an example that illustrates these steps, see Example for Loading Security.

  To load security:

  1. Set an object reference to the HsvSecurityLoadACV object.

  2. Point to the application into which data is being loaded by calling HsvSecurityLoadACV.SetSession. For SetSession’s argument, pass the HsvSession object reference that was returned by HsxClient.OpenApplication or HsxClientUI.OpenApplication.

  3. Set an object reference to the IHsvLoadExtractOptions interface with the HsvSecurityLoadACV.LoadOptions property.

  4. Optional. By default, users and groups, security classes, role access definitions, and security class access definitions are loaded. To override the defaults for these or the other load options, specify the values for these options. The available load options are listed in Security Load Options.

  5. Load the security information by calling HsvSecurityLoadACV.Load. Load takes the file names and paths of the data load file and of the log file.