Interface LicenseDetails

  • All Superinterfaces:
    java.io.Serializable
    All Known Subinterfaces:
    ModuleLicense
    All Known Implementing Classes:
    LicenseDetailsImpl

    public interface LicenseDetails
    extends java.io.Serializable
    Represents the licensing details for a specific module
    • Field Detail

      • DETAIL_KEY_EXPIRATION

        static final java.lang.String DETAIL_KEY_EXPIRATION
        Common keyname for an expiration date restriction
        See Also:
        Constant Field Values
      • DETAIL_KEY_MIN_BUILD

        static final java.lang.String DETAIL_KEY_MIN_BUILD
        Common keyname for a minimum build-number restriction
        See Also:
        Constant Field Values
      • DETAIL_KEY_EDITION

        static final java.lang.String DETAIL_KEY_EDITION
        Common keyname for edition details
        See Also:
        Constant Field Values
    • Method Detail

      • getVersion

        int getVersion()
        The major version number that this license is good for
      • getLicenseDetail

        @Nullable
        java.lang.String getLicenseDetail​(java.lang.String key)
        The value of the LicenseRestriction with the given name.
        Returns:
        null if no license restriction with name==key is found.
      • getLicenseDetails

        java.util.List<LicenseRestriction> getLicenseDetails()
        Returns all of the license details as a list
      • getModuleId

        java.lang.String getModuleId()
        Get the module id this license applies to.
        Returns:
        the module id this license applies to.
      • isPlatformDetails

        default boolean isPlatformDetails()
      • checkFlag

        default boolean checkFlag​(java.lang.String key)
      • getExpirationDate

        default java.util.Optional<java.util.Date> getExpirationDate()