jrunx.license
Interface License

All Known Implementing Classes:
DeveloperLicense, JRun30License, NoLicense, JRun40License

public interface License

The MBean interface for an individual license service

Author:
Karl Moss

Method Summary
 java.lang.String getEdition()
          Returns the human readable description of the product edition
 int getEvalDays()
          Gets the number of days of the evaluation period, or 0 if this is not an evaluation license
 long getEvalDaysLeft()
          Gets the number of days left in the evaluation period
 java.util.Date getExpirationDate()
          Gets the date when this key will expire, or UNLIMITED_EXPIRATION if the key does not expire.
 java.lang.String getLastWarningMessage()
          Gets the last warning message generated.
 java.lang.String getLicenseType()
          Gets the license type description
 int getMajorVersion()
          Returns the major version number of JRun, such as 4
 boolean isEJBEnabled()
          Determines if the license supports EJB deployment
 boolean isExpired()
          Determines whether the current license has expired
 boolean isSingleIP()
          Determines if the license only supports access from a single IP
 boolean isUpgrade()
          Determines whether the current license is an upgrade from a previous product
 boolean isValid()
          Determines if the current license key is valid (internal checksums, etc).
 

Method Detail

isSingleIP

public boolean isSingleIP()
Determines if the license only supports access from a single IP
Returns:
true if the license only supports access from a single IP

isEJBEnabled

public boolean isEJBEnabled()
Determines if the license supports EJB deployment
Returns:
true if the license supports EJB deployment

isValid

public boolean isValid()
Determines if the current license key is valid (internal checksums, etc).
Returns:
true if the license is valid

getMajorVersion

public int getMajorVersion()
Returns the major version number of JRun, such as 4
Returns:
The major version number

getExpirationDate

public java.util.Date getExpirationDate()
Gets the date when this key will expire, or UNLIMITED_EXPIRATION if the key does not expire.
Returns:
The date when this key will expire

getEvalDays

public int getEvalDays()
Gets the number of days of the evaluation period, or 0 if this is not an evaluation license
Returns:
The number of days in the evaluation period

getEvalDaysLeft

public long getEvalDaysLeft()
Gets the number of days left in the evaluation period
Returns:
The number of days left in the evaluation period

isExpired

public boolean isExpired()
Determines whether the current license has expired
Returns:
true if the license has expired

getEdition

public java.lang.String getEdition()
Returns the human readable description of the product edition
Returns:
The pretty string for this product edition

isUpgrade

public boolean isUpgrade()
Determines whether the current license is an upgrade from a previous product
Returns:
true if the license is an upgrade

getLicenseType

public java.lang.String getLicenseType()
Gets the license type description
Returns:
The license type description

getLastWarningMessage

public java.lang.String getLastWarningMessage()
Gets the last warning message generated. The license provider may have generated a warning message (for example, an eval timeout that causes a reduced functionality). Getting the last warning message will clear it.
Returns:
message The last warning message, or null for none


Copyright � 2002 Macromedia Corporation. All Rights Reserved.