com.jp.protection.pub.pro.integration
Class HeadlessLicenseHostIssueResolver

java.lang.Object
  extended by com.jp.protection.pub.pro.integration.IssueResolverSupport
      extended by com.jp.protection.pub.pro.integration.HeadlessLicenseHostIssueResolver
All Implemented Interfaces:
LicenseHostIssueResolver

public class HeadlessLicenseHostIssueResolver
extends IssueResolverSupport
implements LicenseHostIssueResolver

Headless implementation of the LicenseHostIssueResolver interface that tries to resolve license host issues without any involvement of the user.


Field Summary
 
Fields inherited from class com.jp.protection.pub.pro.integration.IssueResolverSupport
fArguments, fCustomer, fLicenseHost, fLicensingFacadeProviderName, fLogin, fPassword, fProductInfo, fSerialNumber, fVerbose, MSG_NO_LICENSING_FACADE, MSG_UNABLE_TO_ACTIVATE, MSG_UNABLE_TO_DEACTIVATE, MSG_UNABLE_TO_GET_EVAL, MSG_UNABLE_TO_GET_LICENSE_BY_S_N
 
Constructor Summary
HeadlessLicenseHostIssueResolver(ProductInfo aProductInfo, dev.entities.Customer aCustomer)
          Creates a new instance of license host issue resolver
 
Method Summary
 boolean resolveLicenseActivationLockViolation(LicenseHost aSource)
           This method is responsible for resolving issue when license activation lock is violated.
 boolean resolveLicenseCanNotBeUpgraded(LicenseHost aSource)
          This method is responsible for resolving an issue when upgrade license is invalid because no required license(s) of previous version was found
 boolean resolveLicenseExpired(LicenseHost aSource)
           This method is responsible for resolving issue when license is expired.
 boolean resolveLicenseInvalid(LicenseHost aSource)
           This method is responsible for resolving issue when license is invalid.
 boolean resolveLicenseMissingActivation(LicenseHost aSource, java.lang.String aLicenseKey)
           This method is responsible for resolving issue when license is not activated.
 boolean resolveLicenseNotLocked(LicenseHost aSource)
          This method is responsible for resolving an issue when lock for the license could not be acquired using the Licensing Server.
 
Methods inherited from class com.jp.protection.pub.pro.integration.IssueResolverSupport
activateLicense, deactivateLicense, error, error, getArguments, getCustomer, getEvaluationLicense, getEvaluationLicense, getEvaluationLicense, getEvaluationLicense, getEvaluationLicenseDescr, getLicenseBySerialNumber, getLicenseBySerialNumber, getLicenseBySerialNumber, getLicenseBytes, getLicenseHost, getLicensingFacadeProviderName, getLogin, getPassword, getProductInfo, getSerialNumber, isVerbose, saveLicense, setArguments, setLicenseHost, setLicensingFacadeProviderName, setLogin, setPassword, setSerialNumber, setVerbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeadlessLicenseHostIssueResolver

public HeadlessLicenseHostIssueResolver(ProductInfo aProductInfo,
                                        dev.entities.Customer aCustomer)
Creates a new instance of license host issue resolver

Parameters:
aProductInfo - product information
aCustomer - customer information
Method Detail

resolveLicenseActivationLockViolation

public boolean resolveLicenseActivationLockViolation(LicenseHost aSource)

This method is responsible for resolving issue when license activation lock is violated. Implementation of this method does:

Method's implementation uses Licensing Facade to obtain licenses.

Specified by:
resolveLicenseActivationLockViolation in interface LicenseHostIssueResolver
Parameters:
aSource - identifies license host calling this method
Returns:
boolean true if issue is resolved; false otherwise

resolveLicenseExpired

public boolean resolveLicenseExpired(LicenseHost aSource)

This method is responsible for resolving issue when license is expired. Implementation of this method does:

Method's implementation uses Licensing Facade to obtain licenses.

Specified by:
resolveLicenseExpired in interface LicenseHostIssueResolver
Parameters:
aSource - identifies the license host calling this method
Returns:
boolean true if issue is resolved; false otherwise

resolveLicenseInvalid

public boolean resolveLicenseInvalid(LicenseHost aSource)

This method is responsible for resolving issue when license is invalid. Implementation of this method does:

Method's implementation uses Licensing Facade to obtain licenses.

Specified by:
resolveLicenseInvalid in interface LicenseHostIssueResolver
Parameters:
aSource - identifies the license host calling this method
Returns:
boolean true if issue is resolved; false otherwise.

resolveLicenseMissingActivation

public boolean resolveLicenseMissingActivation(LicenseHost aSource,
                                               java.lang.String aLicenseKey)

This method is responsible for resolving issue when license is not activated. Implementation of this method does:

Method's implementation uses Licensing Facade to obtain licenses.

Specified by:
resolveLicenseMissingActivation in interface LicenseHostIssueResolver
Parameters:
aSource - identifies license host calling this method
aLicenseKey - license key to be put into the license
Returns:
boolean true if issue is resolved; false otherwise

resolveLicenseNotLocked

public boolean resolveLicenseNotLocked(LicenseHost aSource)
Description copied from interface: LicenseHostIssueResolver
This method is responsible for resolving an issue when lock for the license could not be acquired using the Licensing Server. Implementation of this method should take care of license lock acquiring e.g. by allowing the user to specify proper Licensing Server address or waiting for license lock availability.

Specified by:
resolveLicenseNotLocked in interface LicenseHostIssueResolver
Parameters:
aSource - identifies license host calling this method
Returns:
boolean true if issue is resolved; false otherwise

resolveLicenseCanNotBeUpgraded

public boolean resolveLicenseCanNotBeUpgraded(LicenseHost aSource)
Description copied from interface: LicenseHostIssueResolver
This method is responsible for resolving an issue when upgrade license is invalid because no required license(s) of previous version was found

Specified by:
resolveLicenseCanNotBeUpgraded in interface LicenseHostIssueResolver
Parameters:
aSource - identifies license host calling this method
Returns:
boolean true if issue is resolved; false otherwise