com.crystaldecisions.sdk.plugin.desktop.licensekey
Interface ILicenseKeyBase

All Known Subinterfaces:
ILicenseKey

public interface ILicenseKeyBase

The ILicenseKey interface provides metrics on the license keys you have purchased with the product and allows you to add new license keys.


Method Summary
 java.util.Date getExpiryDate()
           Returns the expiry date of the license key.
 java.util.Locale getLanguage()
           Returns the license key's valid language.
 int getLicenseCount()
           Returns the number of licenses provided by the license key.
 java.lang.String getLicenseKey()
           Returns a current license key value.
 int getProductLevel()
           Returns the product level.
 int getProductName()
           Returns the product name.
 int getProductVersion()
           Returns the product version.
 int getUserLicenseType()
           Returns the type of license key.
 void setLicenseKey(java.lang.String newLicenseKey)
           Sets the license key value for a new license key.
 

Method Detail

getLicenseKey

public java.lang.String getLicenseKey()

Returns a current license key value.

Returns:
A String containing a current license key value.

setLicenseKey

public void setLicenseKey(java.lang.String newLicenseKey)

Sets the license key value for a new license key.

Parameters:
newLicenseKey - A String containing a new license key value.

getProductName

public int getProductName()

Returns the product name.

Returns:
An int specifying the product name.

getProductLevel

public int getProductLevel()

Returns the product level.

Returns:
An int specifying the product level.

getProductVersion

public int getProductVersion()

Returns the product version.

Returns:
An int specifying the product version.

getUserLicenseType

public int getUserLicenseType()

Returns the type of license key. For example, possible types are Concurrent and Named.

Returns:
An int specifying the type of license key. 0 specifies that the license type is concurrent, while 1 specifies that it is named.

getLicenseCount

public int getLicenseCount()

Returns the number of licenses provided by the license key.

Returns:
An int specifying the number of licenses provided by the license key.

getExpiryDate

public java.util.Date getExpiryDate()

Returns the expiry date of the license key.

Returns:
A Date object containing the expiry date of the license key.

getLanguage

public java.util.Locale getLanguage()

Returns the license key's valid language.

Returns:
A Locale object specifying the license key's valid language.