|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--planetj.license.License
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.ILicenseConsts |
CP, EXPIRATION_NEVER, fs, INVALID_CREATION, INVALID_EXPIRED, INVALID_VERSION, MESSAGE_GENERIC, MESSAGE_INVALID, MESSAGE_INVALID_DETAIL, STORE_DEFAULT_URI, TRIAL_EXPIRATION_PERIOD_DAYS, TYPE_ENTERPRISE, TYPE_ENTRY, TYPE_INVALID, TYPE_PROFESSIONAL, TYPE_STANDARD, TYPE_TRIAL, VERSION_5_0, VERSION_6_0 |
| Constructor Summary | |
License(String pType)
Set expiration date based on creation date+expiration period |
|
| Method Summary | |
Feature |
addFeature(Feature pFeature)
Add feature to license Creation date: (1/8/2003 4:00:01 PM) |
String |
expirationString()
Creation date: (1/8/2003 8:05:11 PM) |
boolean |
featureIsEnabled(String pFeature)
Insert the method's description here. |
Date |
getCreated()
Insert the method's description here. |
Date |
getExpiration()
Insert the method's description here. |
String |
getExpirationString()
Return warning string for expiring license. |
int |
getFeatureLevel()
Gets the feature level for this license |
String |
getInvalidDetailString()
Creation date: (5/6/2003 11:50:36 PM) |
int |
getInvalidReason()
Creation date: (5/6/2003 11:50:36 PM) |
String |
getInvalidString()
Creation date: (5/6/2003 11:50:36 PM) |
String |
getKey()
Returns a key that uniquely identifies this license. |
String |
getStatusMessage(int messageType)
Creation date: (5/7/2003 12:29:31 AM) |
String |
getType()
Insert the method's description here. |
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()
Creation date: (4/8/2003 1:57:37 PM) |
boolean |
isDataEngineKeyMatched()
Returns a key that uniquely identifies this license. |
boolean |
isExpired()
|
boolean |
isStoredAsInvalid()
Insert the method's description here. |
boolean |
isValid()
Creation date: (5/6/2003 11:48:30 PM) |
void |
restore()
Called every time the license is retored & checks to see if the date has changed. |
void |
setStoreAsInvalidTrue()
Not a true setter - always stores as true. |
String |
toString()
Final since used as part of key Creation date: (1/8/2003 5:22:51 PM) |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public License(String pType)
| Method Detail |
public Feature addFeature(Feature pFeature)
public String expirationString()
public boolean featureIsEnabled(String pFeature)
public final Date getCreated()
public final Date getExpiration()
public String getExpirationString()
public int getFeatureLevel()
getFeatureLevel in interface ILicensepublic String getInvalidDetailString()
public int getInvalidReason()
public String getInvalidString()
public final String getKey()
getKey in interface ILicensepublic String getStatusMessage(int messageType)
getStatusMessage in interface ILicensepublic final String getType()
getType in interface ILicensepublic String getURI()
getURI in interface ILicensepublic final String getVersion()
ILicense
getVersion in interface ILicensepublic boolean hasStateChanged()
hasStateChanged in interface ILicensepublic final boolean isDataEngineKeyMatched()
public final boolean isExpired()
public final boolean isStoredAsInvalid()
public final boolean isValid()
isValid in interface ILicensepublic final void restore()
restore in interface ILicensepublic final void setStoreAsInvalidTrue()
public final String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||