planetj.license
Class RuntimeLicense

java.lang.Object
  extended byplanetj.license.RuntimeLicense
All Implemented Interfaces:
ILicense, ILicenseEditions, java.io.Serializable

public final class RuntimeLicense
extends java.lang.Object
implements ILicense

Runtime license allows application's to run using WOW, but the WOW builder is not accessible.

See Also:
Serialized Form

Field Summary
static java.lang.String FILE_NAME
           
 
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
 
Constructor Summary
RuntimeLicense(int edition)
          Constructs a new license for the given edition
RuntimeLicense(java.lang.String edition)
          Constructs a new license for the given edition
 
Method Summary
 int getEdition()
          Get the edition of license.
 java.lang.String getEditionString()
          Gets the edition level for this license.
 int getFeatureLevel()
          Gets the feature level for this license.
 java.lang.String getFeatureLevelString()
          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 key)
          Convenience method for getting a message from the license about it current state.
 java.lang.String getType()
          Deprecated. the type is the class object itself
 java.lang.String getURI()
          Deprecated. - always 1 spot
 java.lang.String getVersion()
          Get version of Wow that this license was created for.
 int getVersionLevel()
          Get the version level of this license.
 boolean hasStateChanged()
          Deprecated. no longer used
 boolean is(int edition)
          Check to see if the given edition is the same as this license.
 boolean isExpired()
          Check if this license has expired.
 boolean isValid()
          Check if this license is still valid.
 void restore()
          Sets internal variables when the license is restored from a serialized state.
 java.lang.String toString()
          Gets details about the this license
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FILE_NAME

public static final java.lang.String FILE_NAME
See Also:
Constant Field Values
Constructor Detail

RuntimeLicense

public RuntimeLicense(int edition)
Constructs a new license for the given edition


RuntimeLicense

public RuntimeLicense(java.lang.String edition)
Constructs a new license for the given edition

Method Detail

getKey

public java.lang.String getKey()
Deprecated. no longer used

Description copied from interface: ILicense
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)

Specified by:
getKey in interface ILicense
Returns:
java.lang.String

getOperationCount

public final int getOperationCount()
Description copied from interface: ILicense
Get the number of operations that are allowed under this license.

Specified by:
getOperationCount in interface ILicense

getEdition

public int getEdition()
Get the edition of license.


getEditionString

public java.lang.String getEditionString()
Gets the edition level for this license.


getFeatureLevel

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

Specified by:
getFeatureLevel in interface ILicense

getFeatureLevelString

public java.lang.String getFeatureLevelString()
Gets the feature level for this license.


getStatusMessage

public java.lang.String getStatusMessage(int key)
Deprecated. - not used for anything

Description copied from interface: ILicense
Convenience method for getting a message from the license about it current state. Creation date: (5/7/2003 12:29:31 AM)

Specified by:
getStatusMessage in interface ILicense
Returns:
java.lang.String

getType

public java.lang.String getType()
Deprecated. the type is the class object itself

Gets the type of license this is

Specified by:
getType in interface ILicense
Returns:
java.lang.String

getURI

public java.lang.String getURI()
Deprecated. - always 1 spot

Gets the URI location to where this license file was read from.

Specified by:
getURI in interface ILicense

getVersion

public java.lang.String getVersion()
Description copied from interface: ILicense
Get version of Wow that this license was created for.

Specified by:
getVersion in interface ILicense

getVersionLevel

public int getVersionLevel()
Get the version level of this license.


hasStateChanged

public boolean hasStateChanged()
Deprecated. no longer used

Check to see if state of license has changed.

Specified by:
hasStateChanged in interface ILicense
Returns:
boolean

is

public boolean is(int edition)
Check to see if the given edition is the same as this license.


isExpired

public boolean isExpired()
Check if this license has expired.


isValid

public boolean isValid()
Check if this license is still valid.

Specified by:
isValid in interface ILicense
Returns:
boolean

restore

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

Specified by:
restore in interface ILicense
Returns:
void

toString

public final java.lang.String toString()
Gets details about the this license