Package de.hybris.platform.licence
Class Licence
java.lang.Object
de.hybris.platform.licence.Licence
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LicenseFactory.InvalidLicence,SAPLicense
The hybris licence object.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final voidcheckLicenceForExtension(String name, String licencekey) Check licence for the extension.intprotected org.joda.time.format.DateTimeFormatterReturns remaining days for this license or null in case of unlimited license.static final LicenceintReturns maximum number of days for which demo license is valid.getID()intgetItemCount(String itemName) abstract PropertiesgetLicenceProperty(String key) getName()abstract byte[]booleanbooleanbooleanbooleanbooleanstatic booleanisUnrestrictedForAllExtensions(Licence license) Deprecated, for removal: This API element is subject to removal in a future version.toString()validate()
-
Constructor Details
-
Licence
public Licence()
-
-
Method Details
-
getLicenceProperties
-
getSignature
public abstract byte[] getSignature() -
getDefaultLicence
-
validateDemoExpiration
-
validate
-
isMasterServerEnabled
public boolean isMasterServerEnabled() -
getLicenceProperty
-
getExpirationDate
-
getDateTimeFormatter
protected org.joda.time.format.DateTimeFormatter getDateTimeFormatter() -
getID
-
getName
-
getItemCount
-
isAdvancedSecurityPermitted
public boolean isAdvancedSecurityPermitted() -
isClusteringPermitted
public boolean isClusteringPermitted() -
isHighPerformanceOptionPermitted
public boolean isHighPerformanceOptionPermitted() -
getCacheLimit
public int getCacheLimit() -
toString
-
getDaysLeft
Returns remaining days for this license or null in case of unlimited license. -
getDemoLicenseDays
public int getDemoLicenseDays()Returns maximum number of days for which demo license is valid. -
checkLicenceForExtension
Check licence for the extension. If no licence found the method throws an error and print an info in the error console.- Parameters:
name- The name of the Extensionlicencekey- licenceconstant from the extension, needed for getLicenceProperty- Throws:
Error- throws if no valid licence- Since:
- 2.10
-
isDemoOrDevelopLicence
public boolean isDemoOrDevelopLicence() -
isUnrestrictedForAllExtensions
@Deprecated(since="ages", forRemoval=true) public static boolean isUnrestrictedForAllExtensions(Licence license) Deprecated, for removal: This API element is subject to removal in a future version.since ages - useisDemoOrDevelopLicence()Checks whether license is valid demo or develop
-
isDemoOrDevelopLicence()