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:
java.io.Serializable
public class SAPLicense extends Licence
Wraps original SAP LicenseKey into hybris Licence interface.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SAPLicense(com.sap.security.core.server.likey.LicenseKey licenseKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.joda.time.format.DateTimeFormattergetDateTimeFormatter()java.lang.IntegergetDaysLeft()Returns remaining days for this license or null in case of unlimited license.intgetDemoLicenseDays()Returns maximum number of days for which demo license is valid.java.util.PropertiesgetLicenceProperties()byte[]getSignature()com.sap.security.core.server.likey.LicenseKeygetSource()booleanisDemoOrDevelopLicence()java.lang.StringtoString()ValidationResultvalidate()ValidationResultvalidateDemoExpiration()-
Methods inherited from class de.hybris.platform.licence.Licence
checkLicenceForExtension, getCacheLimit, getDefaultLicence, getExpirationDate, getID, getItemCount, getLicenceProperty, getName, isAdvancedSecurityPermitted, isClusteringPermitted, isHighPerformanceOptionPermitted, isMasterServerEnabled, isUnrestrictedForAllExtensions
-
-
-
-
Method Detail
-
getLicenceProperties
public java.util.Properties getLicenceProperties()
- Specified by:
getLicencePropertiesin classLicence
-
getSignature
public byte[] getSignature()
- Specified by:
getSignaturein classLicence
-
validateDemoExpiration
public ValidationResult validateDemoExpiration()
- Overrides:
validateDemoExpirationin classLicence
-
validate
public ValidationResult validate()
-
isDemoOrDevelopLicence
public boolean isDemoOrDevelopLicence()
- Overrides:
isDemoOrDevelopLicencein classLicence
-
getDateTimeFormatter
protected org.joda.time.format.DateTimeFormatter getDateTimeFormatter()
- Overrides:
getDateTimeFormatterin classLicence
-
getSource
public com.sap.security.core.server.likey.LicenseKey getSource()
-
getDaysLeft
public java.lang.Integer 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
-
-