|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jp.protection.gui.dialogs.pro.DefaultLicenseHostIssueResolver
public class DefaultLicenseHostIssueResolver
Default implementation of the "resolver" interface which introduces methods responsible for the resolving of the issues and conflicts occurring during the license checking. This implementation will show the Licensing Wizard which aid the end-user in finding or obtaining the license or it will show the License Activation Wizard if the license need to be activated.
Field Summary | |
---|---|
protected LicenseActivationWizard |
fLicenseActivationWizard
|
protected LicenseHost |
fLicenseHost
|
protected LicenseLockWizard |
fLicenseLockWizard
|
protected LicenseUpgradeWizard |
fLicenseUpgradeWizard
|
protected LicensingWizardPro |
fLicensingWizard
|
protected java.lang.String |
fLogin
|
protected java.awt.Component |
fOwner
|
protected java.lang.String |
fPassword
|
protected ProductInfo |
fProductInfo
|
protected boolean |
fSilentActivation
|
(package private) static java.util.ResourceBundle |
res
|
Constructor Summary | |
---|---|
DefaultLicenseHostIssueResolver(LicenseHost aLicenseHost,
java.awt.Component anOwner)
Creates a new instance of Issue Resolver |
Method Summary | |
---|---|
protected LicenseLockWizard |
createLicenseLockWizard()
|
protected LicenseUpgradeWizard |
createLicenseUpgradeWizard()
|
protected LicensingWizardPro |
createLicensingWizard()
|
java.lang.String |
getActivationFacadeProviderName()
Returns name of the LicensingFacadeProvider that is used by the Activation Wizard to get access to
the license activation functionality |
int |
getActivationWizardOptions()
Returns options describing behavior of the Activation Wizard as a set of the LicenseActivationWizard.OPTION_ constants. |
LicenseActivationWizard |
getLicenseActivationWizard()
Returns cached License Activation Wizard instance. |
LicenseLockWizard |
getLicenseLockWizard()
Returns License Lock Wizard instance |
int |
getLicenseLockWizardOptions()
Returns options describing behavior of the License Lock Wizard as a set of the LicenseLockWizard.OPTION_ constants. |
protected LicenseUpgradeWizard |
getLicenseUpgradeWizard()
|
java.lang.String |
getLicensingFacadeProviderName()
Returns name of LicensingFacadeProvider is used by Licensing Wizard to get access to the
licensing functionality |
LicensingWizardPro |
getLicensingWizard()
Returns cached Licensing Wizard instance. |
int |
getLicensingWizardOptions()
Returns options that describes behavior of the Licensing Wizard as a set of LicensingWizard.OPTION_ constants. |
java.lang.String |
getLogin()
Returns login name that should be passed to the Licensing Facade |
java.lang.String |
getPassword()
Returns password that should be passed to the Licensing Facade |
ProductInfo |
getProductInfo()
Returns product information |
boolean |
isSilentActivation()
Returns whether resolver should silently try to activate license using Licensing Facade without showing any messages. |
boolean |
resolveLicenseActivationLockViolation(LicenseHost aSource)
This method is responsible for resolving an issue when license has been locked to a particular computer system but was moved to another computer system. |
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 an issue when license is expired. |
boolean |
resolveLicenseInvalid(LicenseHost aSource)
This method is responsible for resolving an issue when license is invalid e.g. |
boolean |
resolveLicenseMissingActivation(LicenseHost aSource,
java.lang.String aLicenseKey)
This method is responsible for resolving an issue when license should be, but not yet 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. |
void |
setActivationFacadeProviderName(java.lang.String aName)
Specifies name of LicensingFacadeProvider should be used by Activation Wizard to get access to the
activation functionality |
void |
setActivationWizardLogo(javax.swing.Icon anIcon)
Specifies logo icon shown of the left of License Activation Wizard |
void |
setActivationWizardOptions(int anOptions)
Specifies options describing behavior of the Activation Wizard as a set of the LicenseActivationWizard.OPTION_ constants. |
void |
setLicenseLockWizardLogo(javax.swing.Icon anIcon)
Specifies logo icon shown of the left of License Lock Wizard |
void |
setLicenseLockWizardOptions(int anOptions)
Specifies options describing behavior of the License Lock Wizard as a set of LicenseLockWizard.OPTION_ constants. |
void |
setLicensingFacadeProviderName(java.lang.String aName)
Specifies name of LicensingFacadeProvider should be used by Licensing Wizard to get access to the
licensing functionality |
void |
setLicensingWizardLogo(javax.swing.Icon anIcon)
Specifies logo icon shown of the left of License Wizard |
void |
setLicensingWizardOptions(int anOptions)
Specifies options that describes behavior of the Licensing Wizard as a set of LicensingWizard.OPTION_ constants. |
void |
setLogin(java.lang.String aLogin)
Specifies login name that should be passed to the Licensing Facade |
void |
setPassword(java.lang.String aPassword)
Specifies password that should be passed to the Licensing Facade |
void |
setProductInfo(ProductInfo aProductInfo)
Specifies product information |
void |
setSilentActivation(boolean aSilentActivation)
Specifies that the Resolver should silently try to activate the license using the Licensing Facade without showing of any messages to the end-user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static java.util.ResourceBundle res
protected LicenseHost fLicenseHost
protected LicensingWizardPro fLicensingWizard
protected LicenseLockWizard fLicenseLockWizard
protected java.lang.String fLogin
protected java.lang.String fPassword
protected LicenseActivationWizard fLicenseActivationWizard
protected java.awt.Component fOwner
protected ProductInfo fProductInfo
protected boolean fSilentActivation
protected LicenseUpgradeWizard fLicenseUpgradeWizard
Constructor Detail |
---|
public DefaultLicenseHostIssueResolver(LicenseHost aLicenseHost, java.awt.Component anOwner)
aLicenseHost
- License Host instance used to provide various utility methodsanOwner
- a component from which Licensing Wizard should be displayedMethod Detail |
---|
public LicensingWizardPro getLicensingWizard()
protected LicensingWizardPro createLicensingWizard()
public LicenseLockWizard getLicenseLockWizard()
protected LicenseLockWizard createLicenseLockWizard()
public ProductInfo getProductInfo()
public void setProductInfo(ProductInfo aProductInfo)
aProductInfo
- product informationpublic LicenseActivationWizard getLicenseActivationWizard()
public java.lang.String getLogin()
public void setLogin(java.lang.String aLogin)
aLogin
- login namepublic java.lang.String getPassword()
public void setPassword(java.lang.String aPassword)
aPassword
- passwordpublic int getLicensingWizardOptions()
LicensingWizard.OPTION_
constants.
public void setLicensingWizardOptions(int anOptions)
LicensingWizard.OPTION_
constants.
anOptions
- options to specifypublic java.lang.String getLicensingFacadeProviderName()
LicensingFacadeProvider
is used by Licensing Wizard to get access to the
licensing functionality
LicensingFacadeProvider
public void setLicensingFacadeProviderName(java.lang.String aName)
LicensingFacadeProvider
should be used by Licensing Wizard to get access to the
licensing functionality
aName
- name of LicensingFacadeProvider
public void setLicensingWizardLogo(javax.swing.Icon anIcon)
anIcon
- logo iconpublic int getActivationWizardOptions()
LicenseActivationWizard.OPTION_
constants.
public void setActivationWizardOptions(int anOptions)
LicenseActivationWizard.OPTION_
constants.
anOptions
- optionspublic void setLicenseLockWizardOptions(int anOptions)
LicenseLockWizard.OPTION_
constants.
anOptions
- optionspublic int getLicenseLockWizardOptions()
LicenseLockWizard.OPTION_
constants.
public java.lang.String getActivationFacadeProviderName()
LicensingFacadeProvider
that is used by the Activation Wizard to get access to
the license activation functionality
LicensingFacadeProvider
public void setActivationFacadeProviderName(java.lang.String aName)
LicensingFacadeProvider
should be used by Activation Wizard to get access to the
activation functionality
aName
- name of LicensingFacadeProvider
public void setActivationWizardLogo(javax.swing.Icon anIcon)
anIcon
- logo iconpublic void setLicenseLockWizardLogo(javax.swing.Icon anIcon)
anIcon
- logo iconpublic boolean resolveLicenseExpired(LicenseHost aSource)
LicenseHostIssueResolver
This method is responsible for resolving an issue when license is expired. Implementation of this method should:
resolveLicenseExpired
in interface LicenseHostIssueResolver
aSource
- identifies license host calling this method
true
if issue is resolved; false
otherwisepublic boolean resolveLicenseInvalid(LicenseHost aSource)
LicenseHostIssueResolver
This method is responsible for resolving an issue when license is invalid e.g. product or version is not match. Implementation of this method should:
resolveLicenseInvalid
in interface LicenseHostIssueResolver
aSource
- identifies license host calling this method
true
if issue is resolved; false
otherwisepublic boolean isSilentActivation()
true
if silent activation is enabled;
false
otherwise.public void setSilentActivation(boolean aSilentActivation)
aSilentActivation
- true
if silent activation should be
enabled; false
otherwise.public boolean resolveLicenseActivationLockViolation(LicenseHost aSource)
LicenseHostIssueResolver
This method is responsible for resolving an issue when license has been locked to a particular computer system but was moved to another computer system. Implementation of this method should:
resolveLicenseActivationLockViolation
in interface LicenseHostIssueResolver
aSource
- identifies license host calling this method
true
if issue is resolved; false
otherwisepublic boolean resolveLicenseMissingActivation(LicenseHost aSource, java.lang.String aLicenseKey)
LicenseHostIssueResolver
This method is responsible for resolving an issue when license should be, but not yet activated. Implementation of this method should:
resolveLicenseMissingActivation
in interface LicenseHostIssueResolver
aSource
- identifies license host calling this methodaLicenseKey
- a license key should be placed into a license
true
if issue is resolved; false
otherwisepublic boolean resolveLicenseNotLocked(LicenseHost aSource)
LicenseHostIssueResolver
resolveLicenseNotLocked
in interface LicenseHostIssueResolver
aSource
- identifies license host calling this method
true
if issue is resolved; false
otherwiseprotected LicenseUpgradeWizard getLicenseUpgradeWizard()
protected LicenseUpgradeWizard createLicenseUpgradeWizard()
public boolean resolveLicenseCanNotBeUpgraded(LicenseHost aSource)
LicenseHostIssueResolver
resolveLicenseCanNotBeUpgraded
in interface LicenseHostIssueResolver
aSource
- identifies license host calling this method
true
if issue is resolved; false
otherwise
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |