Package de.hybris.platform.licence.sap
Class SAPLicense
java.lang.Object
de.hybris.platform.licence.Licence
de.hybris.platform.licence.sap.SAPLicense
- All Implemented Interfaces:
Serializable
Wraps original SAP LicenseKey into hybris Licence interface.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.joda.time.format.DateTimeFormatterReturns remaining days for this license or null in case of unlimited license.intReturns maximum number of days for which demo license is valid.byte[]com.sap.security.core.server.likey.LicenseKeybooleantoString()validate()Methods inherited from class de.hybris.platform.licence.Licence
checkLicenceForExtension, getCacheLimit, getDefaultLicence, getExpirationDate, getID, getItemCount, getLicenceProperty, getName, isAdvancedSecurityPermitted, isClusteringPermitted, isHighPerformanceOptionPermitted, isMasterServerEnabled, isUnrestrictedForAllExtensions
-
Constructor Details
-
SAPLicense
public SAPLicense(com.sap.security.core.server.likey.LicenseKey licenseKey)
-
-
Method Details
-
getLicenceProperties
- Specified by:
getLicencePropertiesin classLicence
-
getSignature
public byte[] getSignature()- Specified by:
getSignaturein classLicence
-
validateDemoExpiration
- Overrides:
validateDemoExpirationin classLicence
-
validate
-
isDemoOrDevelopLicence
public boolean isDemoOrDevelopLicence()- Overrides:
isDemoOrDevelopLicencein classLicence
-
getDateTimeFormatter
protected org.joda.time.format.DateTimeFormatter getDateTimeFormatter()- Overrides:
getDateTimeFormatterin classLicence
-
toString
-
getSource
public com.sap.security.core.server.likey.LicenseKey getSource() -
getDaysLeft
Description copied from class:LicenceReturns remaining days for this license or null in case of unlimited license.- Overrides:
getDaysLeftin classLicence
-
getDemoLicenseDays
public int getDemoLicenseDays()Description copied from class:LicenceReturns maximum number of days for which demo license is valid.- Overrides:
getDemoLicenseDaysin classLicence
-