To protect application systems developed based on Foresight Analytics Platform, one should use application features. The feature protects in two directions:
application system source codes are protected from editing by the end user. An application feature is created for this purpose, which is used by software developer and is not delivered to the end users.
Application system use protection. An application feature with defined parameters of application development use for the end user is created for this purpose: the number of simultaneously working users, application development use period and others license parameters. When an application system is opened by the end user, valid licenses are requested for predefined and application features. The whole application system can be protected, one application feature is allocated for it. If separate functional blocks can be defined in an application system, it is recommended to use an application feature per block to protect each block.
One application feature is allocated to protect source codes of an application system from editing.
To get an application feature and protect source codes of an application system:
Determine a name of application feature. The name must consist of digits and Latin letters without spaces in the range ASCII 32-127. Name length should not be longer than 24 characters.
Send request to technical support to support@fsight.ru to request an application feature. In the request specify the purpose of application feature use and created name of the feature. After that, the technical support prepares and provides you an application feature with the lsinit.exe utility that activates the application feature for use.
IMPORTANT. The obtained feature is not delivered to the end users.
Execute steps to protect repository object from editing with the obtained application feature.
After the application system is developed, embed the lsinit.exe utility startup in the installation, if the application system is installed with the installer. If the system is installed in a different way, before its use start the lsinit.exe utility once at each developer workstation. Start the utility under the user who has administrator permissions. The utility does not have interface and does not return messages about executed result.
After executing the operations, the source codes of application system will be protected from editing by the end user.
The whole application system can be protected, one application feature is allocated for it. If separate functional blocks can be defined in an application system, it is recommended to use an application feature per block to protect each block.
To get application features and protect application system use:
Select the functional blocks in the application system, which will be licensed separately. A functional block may include either one procedure, or several Foresight Analytics Platform development environment units.
Determine a set of application features. Create names of application features and map them with the defined functional blocks. The names should consist of digits and Latin letters without spaces in the range ASCII 32-127. Name length should not be longer than 24 characters.
Send request to technical support to support@fsight.ru to request application features. In the request determine the purpose of application features use and created features names. After that, the technical support prepares and provides you application features with the lsinit.exe utility that activates the application features for use.
Add a license check for application feature for each functional block by means of the RequestLicense method. Add links to the Forms, Host, Ui system assemblies. Place the Button component named Button1 on the form. Set the OnClick event handler for the Button1 component and execute the example without debugging:
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
LicManager: ILicenseManager;
Feature: String;
Lic: ILicense;
StatusCode: UiLicenseStatusCode;
Settings: IUiLicenseRequestSettings;
Begin
LicManager := WinApplication.Instance.LicenseManager;
Feature := "ApplicationFeature";
Settings := New UiLicenseRequestSettings.Create;
Settings.ShowActivationWizard := True;
StatusCode := LicManager.RequestLicense(Feature, Lic, Settings);
If StatusCode = UiLicenseStatusCode.Success Then
Lic.LicenseUpdate;
Else
// licensing errors handling
//...
End If;
//Working with licensed block
//...
//After work is finished, check in license
If Lic <> Null Then
Lic.LicenseRelease;
End If;
End Sub Button1OnClick;
Clicking the button requests the ApplicationFeature feature. If the feature is unavailable, the Activation of Unit dialog box opens.
NOTE. To check license for an application feature in the web application, call the and LicenseRelease methods via the web service using the ForeExec operation.
Embed startup of the lsinit.exe utility into the application installation, if it is installed by means of installer. If the application system is installed differently, before using it start the lsinit.exe utility once at each customer workstation. Start the utility under the user who has administrator permissions. The utility does not have interface and does not return messages about executed result.
Install an application system on customer side.
NOTE. To avoid modification of the application system source code, use the Standard distribution file at the customer side or allocate one application feature for it.
Get the license with parameters of application development use for customer via technical support support@fsight.ru: the number of simultaneously working users, the period of application development use and other license parameters.
Activate Foresight Analytics Platform and the application system on the customer side using the obtained license. To activate the desktop application by means of stand-alone license, use Foresight Analytics Platform activation wizard. To use the network license, install license server, if required, determine license search settings.
After executing the actions, when the application system is running, it will check if there are valid licenses by predefined and application features.
See also:
Activation of Foresight Analytics Platform | Unit Activation | License Server and Features of Its Use