public abstract class Licence
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
Licence() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkLicenceForExtension(java.lang.String name,
java.lang.String licencekey)
Check licence for the extension.
|
int |
getCacheLimit() |
protected DateTimeFormatter |
getDateTimeFormatter() |
java.lang.Integer |
getDaysLeft()
Returns remaining days for this license or null in case of unlimited license.
|
static Licence |
getDefaultLicence() |
int |
getDemoLicenseDays()
Returns maximum number of days for which demo license is valid.
|
java.util.Date |
getExpirationDate() |
java.lang.String |
getID() |
int |
getItemCount(java.lang.String itemName) |
abstract java.util.Properties |
getLicenceProperties() |
java.lang.String |
getLicenceProperty(java.lang.String key) |
java.lang.String |
getName() |
abstract byte[] |
getSignature() |
boolean |
isAdvancedSecurityPermitted() |
boolean |
isClusteringPermitted() |
boolean |
isDemoOrDevelopLicence() |
boolean |
isHighPerformanceOptionPermitted() |
boolean |
isMasterServerEnabled() |
static boolean |
isUnrestrictedForAllExtensions(Licence license)
Deprecated.
since ages - use
isDemoOrDevelopLicence() |
java.lang.String |
toString() |
ValidationResult |
validate() |
ValidationResult |
validateDemoExpiration() |
public abstract java.util.Properties getLicenceProperties()
public abstract byte[] getSignature()
public static final Licence getDefaultLicence()
public ValidationResult validateDemoExpiration()
public ValidationResult validate()
public boolean isMasterServerEnabled()
public java.lang.String getLicenceProperty(java.lang.String key)
public java.util.Date getExpirationDate()
protected DateTimeFormatter getDateTimeFormatter()
public java.lang.String getID()
public java.lang.String getName()
public int getItemCount(java.lang.String itemName)
public boolean isAdvancedSecurityPermitted()
public boolean isClusteringPermitted()
public boolean isHighPerformanceOptionPermitted()
public int getCacheLimit()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Integer getDaysLeft()
public int getDemoLicenseDays()
public static final void checkLicenceForExtension(java.lang.String name,
java.lang.String licencekey)
throws java.lang.Error
name - The name of the Extensionlicencekey - licenceconstant from the extension, needed for getLicencePropertyjava.lang.Error - throws if no valid licencepublic boolean isDemoOrDevelopLicence()
@Deprecated public static boolean isUnrestrictedForAllExtensions(Licence license)
isDemoOrDevelopLicence()Copyright © 2018 SAP SE. All Rights Reserved.