planetj.license
Interface ILicense

All Superinterfaces:
Serializable
All Known Implementing Classes:
License

public interface ILicense
extends Serializable

Serializable representation of license - trial, professional, enterprise. Only trial license can expire, other licenses may have disabled features. Creation date: (1/8/2003 12:18:48 PM)


Method Summary
 int getFeatureLevel()
          Gets the feature level for this license
 String getKey()
          Return the license key.
 String getStatusMessage(int messageType)
          Convenience method for getting a message from the license about it current state.
 String getType()
          Return the type of license.
 String getURI()
          Get URI location that license should be stored / retrieved.
 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 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 String getType()
Return the type of license. Creation date: (1/8/2003 12:55:38 PM)

Returns:
java.lang.String

getURI

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


getVersion

public 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 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