|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jp.protection.pub.LicenseAdapter
com.jp.protection.gui.dialogs.DefaultLicenseAdapter
public class DefaultLicenseAdapter
Default implementation of the LicenseAdapter. This implementation provides feedback regarding
any errors that have occurred during the license reading and validation. Feedback is proveded by
presenting the user with the LicenseErrorDialog
message dialog. In addition to showing errors and their descriptions the
LicenseErrorDialog dialog provides the links which aid the user in
sending e-mail regarding product's feedback and to view product's Web site.
| Field Summary | |
|---|---|
protected LicenseErrorDialog |
fLicenseErrorDialog
|
protected static java.text.MessageFormat |
FMT_ABOUT_EXPIRE
|
protected static java.text.MessageFormat |
FMT_NEED_ACTIVATION
|
protected static java.text.MessageFormat |
FMT_NEED_LOCK
|
protected static java.text.MessageFormat |
FMT_NOT_LOCKED
|
protected static java.text.MessageFormat |
FMT_NUMBER_COPIES_VIOLATION
|
protected static java.text.MessageFormat |
FMT_REASON
|
protected static java.text.MessageFormat |
FMT_USE_LIMIT
|
protected ProductInfo |
fProductInfo
|
(package private) static java.util.ResourceBundle |
res
|
| Fields inherited from class com.jp.protection.pub.LicenseAdapter |
|---|
fVerbose |
| Constructor Summary | |
|---|---|
DefaultLicenseAdapter()
Creates a new instance of the DefaultLicenseAdapter |
|
DefaultLicenseAdapter(java.awt.Component aOwner)
Creates a new instance of the DefaultLicenseAdapter and specifies
an owner for the LicenseErrorDialog |
|
| Method Summary | |
|---|---|
java.lang.String |
getFeedbackText()
Returns the feedback text displayed by the LicenseErrorDialog |
java.lang.String |
getFeedbackTooltipText()
Returns the feedback tooltip text displayed by the LicenseErrorDialog |
java.lang.String |
getFeedbackURL()
Returns the feedback URL displayed by the LicenseErrorDialog |
java.lang.String |
getMessage()
Returns the message displayed by the LicenseErrorDialog |
ProductInfo |
getProductInfo()
Returns the product information associated with the adapter |
java.lang.String |
getSiteText()
Returns the name of the site displayed by the LicenseErrorDialog |
java.lang.String |
getSiteTooltipText()
Returns the tooltip of the site displayed by the LicenseErrorDialog |
java.lang.String |
getSiteURL()
Returns the URL of the site displayed by the LicenseErrorDialog |
java.lang.String |
getTitle()
Returns the title for the LicenseErrorDialog |
void |
licenseAboutToExpire(LicenseHost aSource,
License aLicense,
int aDaysLeft)
The License Host calls this method to notify listener that license is about to expire in specified number of days. Note, this method can be used with Protection! Professional edition only. |
void |
licenseCorrupted(LicenseReader aSource,
java.lang.String aLicenseLocation)
Shows the message dialog notifying the user that the license is corrupted and therefore can not be read. |
void |
licenseExpired(LicenseHost aSource,
License aLicense)
Shows the message dialog notifying the user that the license is expired. |
void |
licenseInvalid(LicenseHost aSource,
License aLicense)
Shows the message dialog notifying the user that the license is invalid e.g. |
void |
licenseLockExpired(LicenseHost aSource,
License aLicense,
java.lang.String aReason)
The License Host calls this method to notify the listener that the license lock has expired. |
void |
licenseLockRevoked(LicenseHost aSource,
License aLicense,
java.lang.String aReason)
The License Host calls this method to notify the listener that the license lock revocation is requested by the Licensing Server administrator. |
void |
licenseLockViolation(LicenseHost aSource,
License aLicense)
The License Host calls this method to notify listener that license is activated for use on other computer. Note, this method can be used with Protection! Professional edition only. |
void |
licenseMissing(LicenseReader aSource,
java.lang.String aLicenseLocation)
Shows the message dialog notifying the user that the license is missing. |
void |
licenseNeedActivation(LicenseHost aSource,
License aLicense,
int aDaysLeft)
The License Host calls this method to notify listener that license need to be activated in aDaysLeft days.Note, this method can be used with Protection! Professional edition only. |
void |
licenseNeedLock(LicenseHost aSource,
License aLicense,
int aDaysLeft)
The License Host calls this method to notify the listener that the requirement to acquire license lock will be mandatory in aDaysLeft days.Note, this method can be used with Protection! Professional edition only and can be fired when license need to be locked through the Licensing Server. |
void |
licenseNotActivated(LicenseHost aSource,
License aLicense)
The License Host calls this method to notify listener that license is not activated. Note, this method can be used with Protection! Professional edition only. |
void |
licenseNotLocked(LicenseHost aSource,
License aLicense,
java.lang.String aReason)
The License Host calls this method to notify the listener that license lock has not been acquired. |
void |
licenseUseLimitAboutReach(LicenseHost aSource,
License aLicense,
int aUseLeft)
The License Host calls this method to notify listener that license is about to expire after specified number of usages. Note, this method can be used with Protection! Professional edition only. |
void |
numberCopiesViolation(LicenseHost aSource,
License aLicense,
int aNumberInUse)
The License Host calls this method to notify listener that the actual number of concurrently executing applications, which use the same license, exceed maximum allowed number. Note, this method can be used with Protection! Professional edition only. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
|
void |
setFeedbackText(java.lang.String aFeedbackText)
Specifies the feedback text to be displayed by the LicenseErrorDialog |
void |
setFeedbackTooltipText(java.lang.String aFeedbackTooltipText)
Specifies the feedback tooltip text to be displayed by the LicenseErrorDialog |
void |
setFeedbackURL(java.lang.String aFeedbackURL)
Specifies the feedback URL to be displayed by the LicenseErrorDialog |
void |
setMessage(java.lang.String aMessage)
Specifies the message to be displayed by the LicenseErrorDialog |
void |
setProductInfo(ProductInfo aProductInfo)
Specifies the product information associated to be associated with the adapter |
void |
setSiteText(java.lang.String aSiteText)
Specifies the name of the site to be displayed by the LicenseErrorDialog |
void |
setSiteTooltipText(java.lang.String aSiteTooltipText)
Specifies the tooltip of the site to be displayed by the LicenseErrorDialog |
void |
setSiteURL(java.lang.String aSiteURL)
Specifies the URL of the site to be displayed by the LicenseErrorDialog |
void |
setTitle(java.lang.String aTitle)
Specifies the title for the LicenseErrorDialog |
| Methods inherited from class com.jp.protection.pub.LicenseAdapter |
|---|
error, featureChecked, isVerbose, licenseAboutToRead, licenseAccepted, licenseAvailable, licenseOk, licenseRemoved, licenseUpdated, message, setVerbose |
| 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 LicenseErrorDialog fLicenseErrorDialog
protected ProductInfo fProductInfo
protected static final java.text.MessageFormat FMT_ABOUT_EXPIRE
protected static final java.text.MessageFormat FMT_USE_LIMIT
protected static final java.text.MessageFormat FMT_NUMBER_COPIES_VIOLATION
protected static final java.text.MessageFormat FMT_NEED_ACTIVATION
protected static final java.text.MessageFormat FMT_REASON
protected static final java.text.MessageFormat FMT_NOT_LOCKED
protected static final java.text.MessageFormat FMT_NEED_LOCK
| Constructor Detail |
|---|
public DefaultLicenseAdapter()
DefaultLicenseAdapter
public DefaultLicenseAdapter(java.awt.Component aOwner)
DefaultLicenseAdapter and specifies
an owner for the LicenseErrorDialog
aOwner - an owner for the LicenseErrorDialog| Method Detail |
|---|
public java.lang.String getTitle()
LicenseErrorDialog
LicenseErrorDialogpublic void setTitle(java.lang.String aTitle)
LicenseErrorDialog
aTitle - the title for the LicenseErrorDialogpublic java.lang.String getMessage()
LicenseErrorDialog
LicenseErrorDialogpublic void setMessage(java.lang.String aMessage)
LicenseErrorDialog
aMessage - the error message to be displayed by the LicenseErrorDialogpublic java.lang.String getSiteText()
LicenseErrorDialog
LicenseErrorDialogpublic void setSiteText(java.lang.String aSiteText)
LicenseErrorDialog
aSiteText - the name of the site to be displayed by the LicenseErrorDialogpublic java.lang.String getSiteTooltipText()
LicenseErrorDialog
LicenseErrorDialogpublic void setSiteTooltipText(java.lang.String aSiteTooltipText)
LicenseErrorDialog
aSiteTooltipText - the tooltip of the site to be displayed by the LicenseErrorDialogpublic java.lang.String getSiteURL()
LicenseErrorDialog
LicenseErrorDialogpublic void setSiteURL(java.lang.String aSiteURL)
LicenseErrorDialog
aSiteURL - the URL of the site to be displayed by the LicenseErrorDialogpublic java.lang.String getFeedbackText()
LicenseErrorDialog
LicenseErrorDialogpublic void setFeedbackText(java.lang.String aFeedbackText)
LicenseErrorDialog
aFeedbackText - the feedback text to be displayed by the LicenseErrorDialogpublic java.lang.String getFeedbackTooltipText()
LicenseErrorDialog
LicenseErrorDialogpublic void setFeedbackTooltipText(java.lang.String aFeedbackTooltipText)
LicenseErrorDialog
aFeedbackTooltipText - the feedback tooltip text to be displayed by the LicenseErrorDialogpublic java.lang.String getFeedbackURL()
LicenseErrorDialog
LicenseErrorDialogpublic void setFeedbackURL(java.lang.String aFeedbackURL)
LicenseErrorDialog
aFeedbackURL - the feedback URL to be displayed by the LicenseErrorDialog
public void licenseCorrupted(LicenseReader aSource,
java.lang.String aLicenseLocation)
licenseCorrupted in interface LicenseReaderListenerlicenseCorrupted in class LicenseAdapteraSource - the license reader.aLicenseLocation - full path to the license file.
public void licenseExpired(LicenseHost aSource,
License aLicense)
licenseExpired in interface LicenseHostListenerlicenseExpired in class LicenseAdapteraSource - the license host.aLicense - instance of the license.
public void licenseInvalid(LicenseHost aSource,
License aLicense)
licenseInvalid in interface LicenseHostListenerlicenseInvalid in class LicenseAdapteraSource - the license host.aLicense - instance of the license.
public void licenseMissing(LicenseReader aSource,
java.lang.String aLicenseLocation)
licenseMissing in interface LicenseReaderListenerlicenseMissing in class LicenseAdapteraSource - the license host.aLicenseLocation - instance of the license.
public void licenseNotActivated(LicenseHost aSource,
License aLicense)
LicenseHostListener
licenseNotActivated in interface LicenseHostListenerlicenseNotActivated in class LicenseAdapteraSource - the license host.aLicense - instance of the license.public ProductInfo getProductInfo()
public void setProductInfo(ProductInfo aProductInfo)
aProductInfo - the product information to be associated with the adapterpublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListener
public void licenseAboutToExpire(LicenseHost aSource,
License aLicense,
int aDaysLeft)
LicenseHostListener
licenseAboutToExpire in interface LicenseHostListenerlicenseAboutToExpire in class LicenseAdapteraSource - the license host.aLicense - instance of the license.aDaysLeft - days left to license expiration.
public void licenseUseLimitAboutReach(LicenseHost aSource,
License aLicense,
int aUseLeft)
LicenseHostListener
licenseUseLimitAboutReach in interface LicenseHostListenerlicenseUseLimitAboutReach in class LicenseAdapteraSource - the license host.aLicense - instance of the license.aUseLeft - usages left to license expiration.
public void licenseLockViolation(LicenseHost aSource,
License aLicense)
LicenseHostListener
licenseLockViolation in interface LicenseHostListenerlicenseLockViolation in class LicenseAdapteraSource - the license host.aLicense - instance of the license.
public void numberCopiesViolation(LicenseHost aSource,
License aLicense,
int aNumberInUse)
LicenseHostListener
numberCopiesViolation in interface LicenseHostListenernumberCopiesViolation in class LicenseAdapteraSource - the license host.aLicense - instance of the license.aNumberInUse - actual number of copies in use.
public void licenseNeedActivation(LicenseHost aSource,
License aLicense,
int aDaysLeft)
LicenseHostListeneraDaysLeft days.
licenseNeedActivation in interface LicenseHostListenerlicenseNeedActivation in class LicenseAdapteraSource - the license host.aLicense - instance of the license.aDaysLeft - number of days left till the license will be considered as
not activated one
public void licenseNotLocked(LicenseHost aSource,
License aLicense,
java.lang.String aReason)
LicenseHostListener
licenseNotLocked in interface LicenseHostListenerlicenseNotLocked in class LicenseAdapteraSource - the license host.aLicense - instance of the license.aReason - why license lock is not acquired
public void licenseNeedLock(LicenseHost aSource,
License aLicense,
int aDaysLeft)
LicenseHostListeneraDaysLeft days.
licenseNeedLock in interface LicenseHostListenerlicenseNeedLock in class LicenseAdapteraSource - the License Host.aLicense - instance of the license.aDaysLeft - number of days left untill the license will be considered as
not locked one
public void licenseLockExpired(LicenseHost aSource,
License aLicense,
java.lang.String aReason)
LicenseHostListener
licenseLockExpired in interface LicenseHostListenerlicenseLockExpired in class LicenseAdapteraSource - the license host.aLicense - instance of the license.aReason - why license is expired
public void licenseLockRevoked(LicenseHost aSource,
License aLicense,
java.lang.String aReason)
LicenseHostListener
licenseLockRevoked in interface LicenseHostListenerlicenseLockRevoked in class LicenseAdapteraSource - the license host.aLicense - instance of the license.aReason - why license lock revocation is requested.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||