com.jp.protection.gui.dialogs.pro
Class DefaultLicenseReaderIssueResolverPro

java.lang.Object
  extended by com.jp.protection.gui.dialogs.DefaultLicenseReaderIssueResolver
      extended by com.jp.protection.gui.dialogs.pro.DefaultLicenseReaderIssueResolverPro
All Implemented Interfaces:
LicenseReaderIssueResolver, LicenseReaderIssueResolverExt

public class DefaultLicenseReaderIssueResolverPro
extends DefaultLicenseReaderIssueResolver

Default implementation of "resolver" interface which introduces methods responsible for the resolving of the issues and conflicts occurring during the license locating and reading. It shows Licensing Wizard which provides ways to find or obtain licenses. It extends base implementation with ability to request licenses using Licensing Facade.


Field Summary
protected  LicenseHostPro fLicenseHost
           
protected  java.lang.String fLogin
           
protected  java.lang.String fPassword
           
 
Fields inherited from class com.jp.protection.gui.dialogs.DefaultLicenseReaderIssueResolver
fLicenseReader, fLicensingWizard, fOwner, fProductInfo
 
Constructor Summary
DefaultLicenseReaderIssueResolverPro(LicenseReader aLicenseReader)
          Creates a new instance of Issue Resolver with no owner
DefaultLicenseReaderIssueResolverPro(LicenseReader aLicenseReader, java.awt.Component anOwner)
          Creates a new instance of Issue Resolver
 
Method Summary
protected  LicensingWizard createLicensingWizard()
           
 LicenseHostPro getLicenseHost()
           
 java.lang.String getLicensingFacadeProviderName()
          Returns name of LicensingFacadeProvider is used by Licensing Wizard to get access to the licensing functionality
 LicensingWizard getLicensingWizard()
          Returns cached Licensing Wizard instance.
protected  LicensingWizardPro getLicensingWizardPro()
           
 java.lang.String getLogin()
          Returns login name should be passed to the Licensing Facade
 java.lang.String getPassword()
          Returns password should be passed to the Licensing Facade
 boolean isAutoUpdateLicenseFromLicensingServer()
          Returns whether automatic update of license from Licening Server is enabled.
 boolean isRequestEvalEnabled()
          Deprecated. since v2.0. Use setLicensingWizardOptions() instead.
 boolean isSkipCustomerInfoForSerialNumbers()
          Deprecated. since v2.0. Use setLicensingWizardOptions() instead.
 void setAutoUpdateLicenseFromLicensingServer(boolean autoUpdateLicenseFromLicensingServer)
          Specifies that automatic update of license from Licening Server is enabled.
 void setLicenseHost(LicenseHostPro aLicenseHost)
           
 void setLicensingFacadeProviderName(java.lang.String aName)
          Specifies name of LicensingFacadeProvider should be used by Licensing Wizard to get access to the licensing functionality
 void setLogin(java.lang.String aLogin)
          Specifies login name should be passed to the Licensing Facade
 void setPassword(java.lang.String aPassword)
          Specifies password should be passed to the Licensing Facade
 void setRequestEvalEnabled(boolean aValue)
          Deprecated. since v2.0. Use setLicensingWizardOptions() instead.
 void setSkipCustomerInfoForSerialNumbers(boolean aSkipCustomerInfoForSerialNumbers)
          Deprecated. since v2.0. Use setLicensingWizardOptions() instead.
 boolean updateLicense(LicenseReader aSource)
           This method is responsible for updating a license to keep it up-to-date.
 
Methods inherited from class com.jp.protection.gui.dialogs.DefaultLicenseReaderIssueResolver
getLicensingWizardOptions, getProductInfo, resolveLicenseCorrupted, resolveLicenseMissing, setLicensingWizardLogo, setLicensingWizardOptions, setProductInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fLicenseHost

protected LicenseHostPro fLicenseHost

fLogin

protected java.lang.String fLogin

fPassword

protected java.lang.String fPassword
Constructor Detail

DefaultLicenseReaderIssueResolverPro

public DefaultLicenseReaderIssueResolverPro(LicenseReader aLicenseReader,
                                            java.awt.Component anOwner)
Creates a new instance of Issue Resolver

Parameters:
aLicenseReader - License Reader instance used to properly find license location
anOwner - a component from which Licensing Wizard should be displayed

DefaultLicenseReaderIssueResolverPro

public DefaultLicenseReaderIssueResolverPro(LicenseReader aLicenseReader)
Creates a new instance of Issue Resolver with no owner

Parameters:
aLicenseReader - License Reader instance used to properly find license location
Method Detail

getLicenseHost

public LicenseHostPro getLicenseHost()

setLicenseHost

public void setLicenseHost(LicenseHostPro aLicenseHost)

createLicensingWizard

protected LicensingWizard createLicensingWizard()
Overrides:
createLicensingWizard in class DefaultLicenseReaderIssueResolver

isRequestEvalEnabled

public boolean isRequestEvalEnabled()
Deprecated. since v2.0. Use setLicensingWizardOptions() instead.

Returns whether getting evaluation licenses is enabled

Returns:
true if getting evaluation licenses is enabled; false otherwise.

setRequestEvalEnabled

public void setRequestEvalEnabled(boolean aValue)
Deprecated. since v2.0. Use setLicensingWizardOptions() instead.

Specifies that getting evaluation licenses is enabled.

Parameters:
aValue - true if getting evaluation licenses should be enabled; false otherwise.

getLicensingWizard

public LicensingWizard getLicensingWizard()
Description copied from class: DefaultLicenseReaderIssueResolver
Returns cached Licensing Wizard instance. If it is not created yet, creates and caches it.

Overrides:
getLicensingWizard in class DefaultLicenseReaderIssueResolver
Returns:
Licensing Wizard instance

getLicensingWizardPro

protected LicensingWizardPro getLicensingWizardPro()

getLicensingFacadeProviderName

public java.lang.String getLicensingFacadeProviderName()
Returns name of LicensingFacadeProvider is used by Licensing Wizard to get access to the licensing functionality

Returns:
name of LicensingFacadeProvider

setLicensingFacadeProviderName

public void setLicensingFacadeProviderName(java.lang.String aName)
Specifies name of LicensingFacadeProvider should be used by Licensing Wizard to get access to the licensing functionality

Parameters:
aName - name of LicensingFacadeProvider

getLogin

public java.lang.String getLogin()
Returns login name should be passed to the Licensing Facade

Returns:
login name

setLogin

public void setLogin(java.lang.String aLogin)
Specifies login name should be passed to the Licensing Facade

Parameters:
aLogin - login name

getPassword

public java.lang.String getPassword()
Returns password should be passed to the Licensing Facade

Returns:
password

setPassword

public void setPassword(java.lang.String aPassword)
Specifies password should be passed to the Licensing Facade

Parameters:
aPassword - password

isSkipCustomerInfoForSerialNumbers

public boolean isSkipCustomerInfoForSerialNumbers()
Deprecated. since v2.0. Use setLicensingWizardOptions() instead.

Returns whether entering customer information should be skipped during getting licenses for Serial Numbers

Returns:
true if entering customer information should be skipped during getting licenses for Serial Numbers; false otherwise.

setSkipCustomerInfoForSerialNumbers

public void setSkipCustomerInfoForSerialNumbers(boolean aSkipCustomerInfoForSerialNumbers)
Deprecated. since v2.0. Use setLicensingWizardOptions() instead.

Specifies that entering customer information should be skipped during getting licenses for Serial Numbers

Parameters:
aSkipCustomerInfoForSerialNumbers - true if entering customer information should be skipped during getting licenses for Serial Numbers; false otherwise.

updateLicense

public boolean updateLicense(LicenseReader aSource)
Description copied from interface: LicenseReaderIssueResolverExt

This method is responsible for updating a license to keep it up-to-date. Implementation of this method should:

Usual implementation should execute remote call to some backend service knowledgeable of the proper licenses generation procedure.

Specified by:
updateLicense in interface LicenseReaderIssueResolverExt
Overrides:
updateLicense in class DefaultLicenseReaderIssueResolver
Parameters:
aSource - identifies the license reader calling this method
Returns:
true if license has been updated or removed; false otherwise

setAutoUpdateLicenseFromLicensingServer

public void setAutoUpdateLicenseFromLicensingServer(boolean autoUpdateLicenseFromLicensingServer)
Specifies that automatic update of license from Licening Server is enabled.

Parameters:
autoUpdateLicenseFromLicensingServer - true if automatic update of license from Licening Server should be enabled; false otherwise.
Since:
v4.8

isAutoUpdateLicenseFromLicensingServer

public boolean isAutoUpdateLicenseFromLicensingServer()
Returns whether automatic update of license from Licening Server is enabled.

Returns:
true if automatic update of license from Licening Server is enabled; false otherwise.
Since:
v4.8