Interface LicenseData

All Known Implementing Classes:
LicenseData.Disabled

public interface LicenseData
  • Field Details

  • Method Details

    • getLicensee

      String getLicensee()
    • getLicenseType

      StructureLicenseType getLicenseType()
    • getSerial

      @Nullable String getSerial()
    • getSerialNumber

      long getSerialNumber()
    • getExpirationTimestamp

      long getExpirationTimestamp()
      Returns:
      expiration date, <= 0 if no expiration
    • getMaintenanceExpirationDate

      long getMaintenanceExpirationDate()
      Returns:
      maintenance expiration date, <= 0 if no expiration
    • getLicensedServers

      Collection<String> getLicensedServers()
      Returns:
      collection of licensed server IDs, or null if not limited
    • isServerLocked

      boolean isServerLocked()
    • getMaximumNumberOfUsers

      int getMaximumNumberOfUsers()
    • isUnlimitedNumberOfUsers

      boolean isUnlimitedNumberOfUsers()
    • extraChecks

      void extraChecks() throws LicenseException
      Throws:
      LicenseException
    • hasExpiration

      boolean hasExpiration()
    • hasMaintenanceExpiration

      boolean hasMaintenanceExpiration()
    • isMarketplaceLicense

      boolean isMarketplaceLicense()
    • isValid

      boolean isValid()
    • getLicenseError

      @NotNull StructureLicenseError getLicenseError()
    • isDataCenterCompatible

      default boolean isDataCenterCompatible()
    • getLicenseHosting

      @NotNull default StructureLicenseHosting getLicenseHosting()
    • getLicenseSource

      @NotNull default LicenseSource getLicenseSource()