planetj.license
Interface ILicense

All Superinterfaces:
ILicenseEditions, java.io.Serializable
All Known Implementing Classes:
License, RuntimeLicense

public interface ILicense
extends java.io.Serializable, ILicenseEditions

Serializable representation of license - trial, professional, enterprise. Only trial license can expire, other licenses may have disabled features.


Field Summary
 
Fields inherited from interface planetj.license.ILicenseEditions
ENTERPRISE, ENTERPRISE_EDITION, ENTRY, ENTRY_EDITION, INVALID, INVALID_EDITION, PROFESSIONAL, PROFESSIONAL_EDITION, STANDARD, STANDARD_EDITION, TRIAL, TRIAL_EDITION
 
Method Summary
 int getFeatureLevel()
          Gets the feature level for this license
 java.lang.String getKey()
          Return the license key.
 int getOperationCount()
          Get the number of operations that are allowed under this license.
 java.lang.String getStatusMessage(int messageType)
          Convenience method for getting a message from the license about it current state.
 java.lang.String getType()
          Return the type of license.
 java.lang.String getURI()
          Get URI location that license should be stored / retrieved.
 java.lang.String getVersion()
          Get version of Wow that this license was created for.
 boolean hasStateChanged()
          Suggests that something significant has changed in the license and it should be stored again.
 boolean isValid()
          Creation date: (5/6/2003 11:48:30 PM)
 void restore()
          Sets internal variables when the license is restored from a serialized state.
 

Method Detail

getStatusMessage

public java.lang.String getStatusMessage(int messageType)
Convenience method for getting a message from the license about it current state. Creation date: (5/7/2003 12:29:31 AM)

Returns:
java.lang.String

getType

public java.lang.String getType()
Return the type of license. Creation date: (1/8/2003 12:55:38 PM)

Returns:
java.lang.String

getURI

public java.lang.String getURI()
Get URI location that license should be stored / retrieved.


getVersion

public java.lang.String getVersion()
Get version of Wow that this license was created for.


restore

public void restore()
Sets internal variables when the license is restored from a serialized state. Creation date: (1/8/2003 12:55:38 PM)

Returns:
void

getFeatureLevel

public int getFeatureLevel()
Gets the feature level for this license


getKey

public java.lang.String getKey()
Return the license key. The key uniquely identifies this license. Keys should not be the same for any licenses. Creation date: (4/8/2003 1:45:52 PM)

Returns:
java.lang.String

hasStateChanged

public boolean hasStateChanged()
Suggests that something significant has changed in the license and it should be stored again. It is expected that once this method is called it resets to false - similar to Thread.interrupted. Creation date: (4/8/2003 1:55:26 PM)

Returns:
boolean

isValid

public boolean isValid()
Creation date: (5/6/2003 11:48:30 PM)

Returns:
boolean

getOperationCount

public int getOperationCount()
Get the number of operations that are allowed under this license.