|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jp.protection.pub.pro.integration.IssueResolverSupport
com.jp.protection.pub.pro.integration.HeadlessLicenseReaderIssueResolver
public class HeadlessLicenseReaderIssueResolver
Headless implementation of the LicenseReaderIssueResolver interface
that tries to resolve license reader 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 | |
|---|---|
HeadlessLicenseReaderIssueResolver(ProductInfo aProductInfo,
dev.entities.Customer aCustomer)
Creates a new instance of the license reader issue resolver |
|
| Method Summary | |
|---|---|
boolean |
resolveLicenseCorrupted(LicenseReader aSource)
This method is responsible for resolving an issue when license is corrupted. |
boolean |
resolveLicenseMissing(LicenseReader aSource)
This method is responsible for resolving an issue when license is missing. |
boolean |
updateLicense(LicenseReader aSource)
This method is responsible for updating a license to keep it up-to-date. |
static boolean |
updateLicenseFromLicensingServer(LicenseReader aLicenseReader,
LicenseHostPro aLicenseHost,
ProductInfo aProductInfo)
Utility method that allows to update license from 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 |
|---|
public HeadlessLicenseReaderIssueResolver(ProductInfo aProductInfo,
dev.entities.Customer aCustomer)
aProductInfo - product informationaCustomer - customer information| Method Detail |
|---|
public boolean resolveLicenseMissing(LicenseReader aSource)
This method is responsible for resolving an issue when license is missing. Implementation of this method does:
resolveLicenseMissing in interface LicenseReaderIssueResolveraSource - identifies license reader calling this method
true if issue is resolved; false otherwisepublic boolean resolveLicenseCorrupted(LicenseReader aSource)
This method is responsible for resolving an issue when license is corrupted. Implementation of this method does:
resolveLicenseCorrupted in interface LicenseReaderIssueResolveraSource - identifies the license reader calling this method
true if issue is resolved; false otherwisepublic boolean updateLicense(LicenseReader aSource)
LicenseReaderIssueResolverExtThis method is responsible for updating a license to keep it up-to-date. Implementation of this method should:
updateLicense in interface LicenseReaderIssueResolverExtaSource - identifies the license reader calling this method
true if license has been updated or removed; false otherwise
public static boolean updateLicenseFromLicensingServer(LicenseReader aLicenseReader,
LicenseHostPro aLicenseHost,
ProductInfo aProductInfo)
throws java.io.IOException
LicenseReader.getLicense(true) must be called explicitly to apply that change.
aLicenseReader - a LicenseReader to work withaLicenseHost - a LicenseHost to work withaProductInfo - a ProductInfo to work with
true if update was successful; false otherwise
java.io.IOException - if license saving was failed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||