Interface LicenseDescriptor


  • public interface LicenseDescriptor
    Provides access to License information.
    Author:
    davidc
    • Method Detail

      • getIssued

        Date getIssued()
        Gets the date license was issued
        Returns:
        issue date
      • getValidUntil

        Date getValidUntil()
        Gets the date license is valid till
        Returns:
        valid until date (or null, if no time limit)
      • getDays

        Integer getDays()
        Gets the length (in days) of license validity
        Returns:
        length in days of license validity (or null, if no time limit)
      • getRemainingDays

        Integer getRemainingDays()
        Ges the number of remaining days left on license
        Returns:
        remaining days (or null, if no time limit)
      • getSubject

        String getSubject()
        Gets the subject of the license
        Returns:
        the subject
      • getHolder

        Principal getHolder()
        Gets the holder of the license
        Returns:
        the holder
      • getHolderOrganisation

        String getHolderOrganisation()
        Gets the Organisation that the license was granted to.
        Returns:
        the holder
      • getIssuer

        Principal getIssuer()
        Gets the issuer of the license
        Returns:
        the issuer
      • isHeartBeatDisabled

        boolean isHeartBeatDisabled()
        Does this license allow the heartbeat to be disabled?
        Returns:
        true if this license allow the heartbeat to be disabled
      • getHeartBeatUrl

        String getHeartBeatUrl()
        Gets an alternative URL that the heart beat should post data to, or null if the default URL is to be used.
        Returns:
        a URL or null
      • getMaxDocs

        Long getMaxDocs()
        Gets the maximum number of documents.
        Returns:
        the maximum number of documents or null if there is no limit
      • getMaxUsers

        Long getMaxUsers()
        Gets the maximum number of users.
        Returns:
        the maximum number of users or null if there is no limit
      • getLicenseMode

        RepoUsage.LicenseMode getLicenseMode()
        Get the license mode e.g TEAM or ENTERPRISE or any future license mode.
        Returns:
        the license mode.
      • isClusterEnabled

        boolean isClusterEnabled()
        Does this license allow clustering?
        Returns:
        true if the license allows clustering
      • isCryptodocEnabled

        boolean isCryptodocEnabled()
        Does this license allow cryptodoc
        Returns:
        true if the license allows cryptodoc
      • getTransformationServerExpiryDate

        String getTransformationServerExpiryDate()
        ATS Transformation Server Expiry Date
        Returns:
        the ATS Transformation Server Expiry Date or null
      • getExtras

        Map<String,​Object> getExtras()
        Get the extra public parameters in the license.
        Returns:
        the parameters