To protect application systems developed basing on Foresight Analytics Platform, the application features are used. The feature protects in two directions:
application system source codes are protected from editing by end user. To provide it, the application feature is created that is used by software developer and it is not provided to the end users.
Application system use protection. To provide it, the application feature with defined parameters of application development use for a specific user is created: the number of simultaneously working users, application development use period and others license parameters. On opening application system 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 to it. If it is available in application system to separate functional blocks, then to protect each of them it is recommended to use an application feature per block.
To protect source codes of application system from editing , one application feature is allocated.
To get application feature and protect source codes of 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 must not be more than 24 characters.
Send request to technical support to support@fsight.ru to request an application feature. In the request determine 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 specific utility that activates the use of application feature.
IMPORTANT. The obtained feature is not sent to the end users.
Execute steps to protect repository object from editing obtained application feature.
After the application system is developed, build the lsinit.exe utility start in the installation process, 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 one time at each workplace of the developer. 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 those actions, 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 to it. If it is available in application system to separate functional blocks, then to protect each of them it is recommended to use an application feature per 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 licensing units and map them with selected functional blocks. The names must consist of digits and Latin letters without spaces in the range ASCII 32-127. Name length must not be more 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 specific utility that activates the use of application features.
Add checking if there is a license 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 with the Button1 name on the form. Set 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 processing
//...
End If;
//Working with licensed block
//...
//After work is finished, check in license
If Lic <> Null Then
Lic.LicenseRelease;
End If;
End Sub Button1OnClick;
On clicking the button the ApplicationFeature feature will be requested. If the feature is not available, 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 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's premises.
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's premises 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 whether 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