Class Licence

    • Constructor Detail

      • Licence

        public Licence()
    • Method Detail

      • getLicenceProperties

        public abstract java.util.Properties getLicenceProperties()
      • getSignature

        public abstract byte[] getSignature()
      • getDefaultLicence

        public static final Licence getDefaultLicence()
      • isMasterServerEnabled

        public boolean isMasterServerEnabled()
      • getLicenceProperty

        public java.lang.String getLicenceProperty​(java.lang.String key)
      • getExpirationDate

        public java.util.Date getExpirationDate()
      • getDateTimeFormatter

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

        public java.lang.String getID()
      • getName

        public java.lang.String getName()
      • getItemCount

        public int getItemCount​(java.lang.String itemName)
      • isAdvancedSecurityPermitted

        public boolean isAdvancedSecurityPermitted()
      • isClusteringPermitted

        public boolean isClusteringPermitted()
      • isHighPerformanceOptionPermitted

        public boolean isHighPerformanceOptionPermitted()
      • getCacheLimit

        public int getCacheLimit()
      • toString

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

        public java.lang.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​(java.lang.String name,
                                                          java.lang.String licencekey)
                                                   throws java.lang.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:
        java.lang.Error - throws if no valid licence
        Since:
        2.10
      • isDemoOrDevelopLicence

        public boolean isDemoOrDevelopLicence()
      • isUnrestrictedForAllExtensions

        @Deprecated
        public static boolean isUnrestrictedForAllExtensions​(Licence license)
        Deprecated.
        since ages - useisDemoOrDevelopLicence()
        Checks whether license is valid demo or develop