Class Licence

java.lang.Object
de.hybris.platform.licence.Licence
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LicenseFactory.InvalidLicence, SAPLicense

public abstract class Licence extends Object implements Serializable
The hybris licence object.
See Also:
  • Constructor Details

    • Licence

      public Licence()
  • Method Details

    • getLicenceProperties

      public abstract Properties getLicenceProperties()
    • getSignature

      public abstract byte[] getSignature()
    • getDefaultLicence

      public static final Licence getDefaultLicence()
    • validateDemoExpiration

      public ValidationResult validateDemoExpiration()
    • validate

      public ValidationResult validate()
    • isMasterServerEnabled

      public boolean isMasterServerEnabled()
    • getLicenceProperty

      public String getLicenceProperty(String key)
    • getExpirationDate

      public Date getExpirationDate()
    • getDateTimeFormatter

      protected org.joda.time.format.DateTimeFormatter getDateTimeFormatter()
    • getID

      public String getID()
    • getName

      public String getName()
    • getItemCount

      public int getItemCount(String itemName)
    • isAdvancedSecurityPermitted

      public boolean isAdvancedSecurityPermitted()
    • isClusteringPermitted

      public boolean isClusteringPermitted()
    • isHighPerformanceOptionPermitted

      public boolean isHighPerformanceOptionPermitted()
    • getCacheLimit

      public int getCacheLimit()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDaysLeft

      public Integer 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

      public static final void checkLicenceForExtension(String name, String licencekey) throws Error
      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 Extension
      licencekey - 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