Unlike the desktop plugins, the authentication plugins are static, and objects cannot be created from them. It follows that since no instances of the plugin exist, you must retrieve the plugin itself. Each type of authentication plugin in Crystal Enterprise is represented by an InfoObject. These objects are stored in the CI_SYSTEMOBJECTS category in the APS InfoStore, and must be retrieved using the SI_NAME property.
The following code retrieves the secEnterprise plugin:
var secEnterprise = IStore.Query("SELECT TOP 1* FROM CI_SYSTEMOBJECTS WHERE SI_NAME='secEnterprise'");
Like other InfoObjects, the secEnterprise plugin is uniquely represented by its ID property.
Continuing with the above code sample, the following piece of code uses the PluginInterface Property to retrieve the secEnteprises plugin's default object, which is the secEnterprise object:
var secEnterpriseInterface = secEnterprise.Item(1).PluginInterface("");
Once you have retrieved the secEnterprise plugin interface, you can access plugin
A list of the available authentication plugins and their names follows. These plugins must be retrieved from CI_SYSTEMOBJECTS:
Plugin | SI_NAME |
---|---|
Crystal Decisions, Inc. http://www.crystaldecisions.com Support services: http://support.crystaldecisions.com |