biz.c24.api
Class License

java.lang.Object
  extended by biz.c24.api.License

public final class License
extends Object

C24 License reader.

Main class that is responsible for a C24 license reading and checking

Version:
$Revision: 18168 $ $Date: 2011-12-20 09:05:43 -0500 (Tue, 20 Dec 2011) $

Nested Class Summary
 class License.ProductLicense
           
 
Field Summary
static String C24_TECHNOLOGIES
           
static SimpleDateFormat DATE_FORMAT
           
static String FREE_SWIFTMT
           
static int STATUS_DISABLED
           
static int STATUS_ENABLED
           
static int STATUS_GREYED
           
 
Constructor Summary
License(boolean openEdition)
           
 
Method Summary
 void checkProductLicenseVersion(ProductType type, VersionNumber vn)
           
 int daysUntilExpiry(int max)
           
 String getChecksum()
           
 Date getExpiryDate()
           
 String getExpiryDateStr()
           
 File getFile()
           
 String getLicensee()
           
 String getLicenseeDescription()
           
 License.ProductLicense.ComponentLicense getProductComponentLicense(ProductType prodType, ComponentType compType)
           
 License.ProductLicense getProductLicense(int index)
           
 License.ProductLicense getProductLicense(ProductType type)
           
 int getProductLicenseCount()
           
 String getPurchaseKey()
          Deprecated. Removed as of v3.9.0
 boolean isC24Licensee()
           
 boolean isDesigntime()
           
 boolean isEvaluation()
           
 boolean isProductComponentLicenseDisabled(ProductType prodType, ComponentType compType)
           
 boolean isProductComponentLicenseEnabled(ProductType prodType, ComponentType compType)
           
 boolean isProductComponentLicenseGreyed(ProductType prodType, ComponentType compType)
           
 boolean isReferenceImplementation()
           
 boolean isRuntime()
           
static License load()
           
static License load(File file)
           
static License load(InputStream stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

C24_TECHNOLOGIES

public static final String C24_TECHNOLOGIES
See Also:
Constant Field Values

DATE_FORMAT

public static final SimpleDateFormat DATE_FORMAT

STATUS_GREYED

public static final int STATUS_GREYED
See Also:
Constant Field Values

STATUS_ENABLED

public static final int STATUS_ENABLED
See Also:
Constant Field Values

STATUS_DISABLED

public static final int STATUS_DISABLED
See Also:
Constant Field Values

FREE_SWIFTMT

public static final String FREE_SWIFTMT
See Also:
Constant Field Values
Constructor Detail

License

public License(boolean openEdition)
Method Detail

load

public static License load()
                    throws LicenseException
Throws:
LicenseException

load

public static License load(File file)
                    throws LicenseException
Throws:
LicenseException

load

public static License load(InputStream stream)
                    throws LicenseException
Throws:
LicenseException

daysUntilExpiry

public int daysUntilExpiry(int max)

isC24Licensee

public boolean isC24Licensee()

getLicensee

public String getLicensee()

getLicenseeDescription

public String getLicenseeDescription()

getExpiryDate

public Date getExpiryDate()

getExpiryDateStr

public String getExpiryDateStr()

isEvaluation

public boolean isEvaluation()

isReferenceImplementation

public boolean isReferenceImplementation()

isRuntime

public boolean isRuntime()

isDesigntime

public boolean isDesigntime()

getPurchaseKey

public String getPurchaseKey()
Deprecated. Removed as of v3.9.0


getChecksum

public String getChecksum()

getProductLicenseCount

public int getProductLicenseCount()

getProductLicense

public License.ProductLicense getProductLicense(int index)

getProductLicense

public License.ProductLicense getProductLicense(ProductType type)

checkProductLicenseVersion

public void checkProductLicenseVersion(ProductType type,
                                       VersionNumber vn)
                                throws LicenseException
Throws:
LicenseException

getProductComponentLicense

public License.ProductLicense.ComponentLicense getProductComponentLicense(ProductType prodType,
                                                                          ComponentType compType)

getFile

public File getFile()

isProductComponentLicenseEnabled

public boolean isProductComponentLicenseEnabled(ProductType prodType,
                                                ComponentType compType)

isProductComponentLicenseDisabled

public boolean isProductComponentLicenseDisabled(ProductType prodType,
                                                 ComponentType compType)

isProductComponentLicenseGreyed

public boolean isProductComponentLicenseGreyed(ProductType prodType,
                                               ComponentType compType)


C24 Technologies © 2002-2012: All Rights Reserved.