public class SoapuiProtectionSupport extends Object
SoapuiProtectionSupport support = new SoapuiProtectionSupport();
support.init("soapUI.launcher");
support.checkLicense();
Note, launcher can be generated via Products Screen | Build | Build Launcher.| Modifier and Type | Field and Description |
|---|---|
protected Component |
fOwner |
protected com.jp.protection.pub.launch.ProtectionLauncher |
fProtectionLauncher |
| Constructor and Description |
|---|
SoapuiProtectionSupport()
Creates and initializes a new instance of
SoapuiProtectionSupport and uses null as owner
component |
SoapuiProtectionSupport(Component anOwner)
Creates and initializes a new instance of
SoapuiProtectionSupport |
| Modifier and Type | Method and Description |
|---|---|
protected void |
changeToCourtesyMode() |
boolean |
checkForRenewal(Class aBaseCLass,
String aLauncherConfigResourceName,
InputStream licenseFileInputStream) |
boolean |
checkLicense()
Reads the license and check it against specified configuration
|
boolean |
checkLicense(boolean aForceLicenseRead)
Reads the license and check it against specified configuration
|
int |
deactivateLicense(Component anOwner)
Provides ability to deactivate license by use of Deactivation Assistant
|
com.jp.protection.pub.ProductInfo |
getProductInfo2() |
static com.jp.protection.pub.launch.ProtectionLauncher |
getProtectionLauncher(com.jp.protection.pub.launch.ProtectionLauncherConfigReader aReader,
Class aBaseCLass,
String aLauncherConfigResourceName,
Component anOwner)
this method is mailed by Gregory Ledenev as a example how to deal with
case sensitive usernames
|
void |
init()
Initializes the instance by loading configuration from the specified
resource
|
void |
init(Class aBaseCLass,
String aLauncherConfigResourceName)
Initializes the instance by loading configuration from the specified
resource
|
boolean |
isExpired(Class aBaseCLass,
String aLauncherConfigResourceName) |
protected void |
revokedLicenseSaveWorkspaceBeforeExit(String reason) |
protected void |
saveWorkspaceBeforeExit(String reason) |
void |
showAboutDialog()
Shows About dialog which displays product and company information, license
details, company logo and copyright note
|
boolean |
upgradeLicense(Component anOwner)
Provides ability to upgrade existing license by showing Licensing
Assistant to the user allowing him/her to use various ways to get upgrade.
|
protected Component fOwner
protected com.jp.protection.pub.launch.ProtectionLauncher fProtectionLauncher
public SoapuiProtectionSupport()
SoapuiProtectionSupport and uses null as owner
componentpublic SoapuiProtectionSupport(Component anOwner)
SoapuiProtectionSupportanOwner - a component should be used as an owner for various dialogs can
be shown during license reading and validationpublic boolean checkForRenewal(Class aBaseCLass, String aLauncherConfigResourceName, InputStream licenseFileInputStream) throws IOException, ExpireDateNotSetException
IOExceptionExpireDateNotSetExceptionpublic static com.jp.protection.pub.launch.ProtectionLauncher getProtectionLauncher(com.jp.protection.pub.launch.ProtectionLauncherConfigReader aReader,
Class aBaseCLass,
String aLauncherConfigResourceName,
Component anOwner)
throws IOException
aReader - aBaseCLass - aLauncherConfigResourceName - anOwner - IOExceptionpublic boolean isExpired(Class aBaseCLass, String aLauncherConfigResourceName) throws IOException
IOExceptionpublic void init(Class aBaseCLass, String aLauncherConfigResourceName) throws IOException, ExpireDateNotSetException
aBaseCLass - base class for resource loading via call of
aBaseCLass.getResourceAsStream(...)aLauncherConfigResourceName - resource nameIOException - if errors occurred during configuration readingExpireDateNotSetExceptionpublic void init()
public void showAboutDialog()
public com.jp.protection.pub.ProductInfo getProductInfo2()
public boolean checkLicense(boolean aForceLicenseRead)
aForceLicenseRead - forces LicenseReader to re-read licensetrue if license is properly read and validated;
false otherwisepublic boolean checkLicense()
true if license is properly read and validated;
false otherwisepublic boolean upgradeLicense(Component anOwner)
anOwner - a component from which Licensing Assistant should be displayedtrue if new license is acquired, properly read and
validated; false otherwisepublic int deactivateLicense(Component anOwner)
anOwner - a component from which Deactivation Assistant should be
displayedLicenseDeactivationWizard.DEACTIVATE_ constants.protected void saveWorkspaceBeforeExit(String reason)
protected void revokedLicenseSaveWorkspaceBeforeExit(String reason)
protected void changeToCourtesyMode()
Copyright © 2013. All Rights Reserved.