com.dlsc.flexgantt.util
Class License

java.lang.Object
  extended by com.dlsc.flexgantt.util.License

public class License
extends java.lang.Object

Handles anything related to licensing. The license information can either be provided in a file called flexgantt.properties that needs to be placed somewhere in the classpath or the licensee and the license key can be set directly on the license object.

Since:
1.0
Author:
Dirk Lemmermann

Method Summary
static License getInstance()
          Returns the singleton instance of the license.
 java.lang.String getLicensee()
          Returns the licensee's name.
 java.lang.String getLicenseKey()
          Returns the license key.
 long getLoadTime()
          Returns the time point when the license was loaded.
 boolean isLicensed()
          Determines if the product has been licensed or not.
 void setLicensee(java.lang.String licensee)
          Sets the name of the licensee.
 void setLicenseKey(java.lang.String key)
          Sets the license key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLoadTime

public long getLoadTime()
Returns the time point when the license was loaded.

Returns:
the license load time
Since:
1.0

getInstance

public static License getInstance()
Returns the singleton instance of the license.

Returns:
the license singleton instance
Since:
1.0

isLicensed

public boolean isLicensed()
Determines if the product has been licensed or not.

Returns:
TRUE if the product is licensed
Since:
1.0

setLicensee

public void setLicensee(java.lang.String licensee)
Sets the name of the licensee.

Parameters:
licensee - the name of the licensee
Since:
1.0

getLicensee

public java.lang.String getLicensee()
Returns the licensee's name.

Returns:
the name of the licensee
Since:
1.0

setLicenseKey

public void setLicenseKey(java.lang.String key)
Sets the license key.

Parameters:
key - the license key
Since:
1.0

getLicenseKey

public java.lang.String getLicenseKey()
Returns the license key.

Returns:
the key of the license
Since:
1.0