Class LicenseAPI


  • public class LicenseAPI
    extends ASubAPI
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • LicenseAPI

        public LicenseAPI()
    • Method Detail

      • getSystemLicenseAccess

        public LicenseAccess getSystemLicenseAccess()
        Gets the access for the system license only!
        Returns:
        the access to the system license
      • getLicenseKey

        public String getLicenseKey​(Mandant scope)
        Gets the license key for the given client or system scope. When a client license is assigned to the client, the license key from that license is returned. Otherwise, the license key from the system license is returned.
        Parameters:
        scope - Client scope for which to get the license key. Use null for the system scope.
        Returns:
        The license key for the given scope, or null when no license was found (e.g. when the system was installed for the first time and no license was uploaded yet.)
      • getLicenseAccess

        public LicenseAccess getLicenseAccess​(Mandant client)
        Gets the license access based on the given client
        Parameters:
        client - the client to get the client license model for
        Returns:
        the access with client and system license
      • getSystemLicenseVersionState

        public ELicenseVersionState getSystemLicenseVersionState​(UserContext uc)
        Gets the version state of the system license
        Parameters:
        uc - The user context for accessing the database.
        Returns:
        the license version state
      • getUnchachedLicenseModel

        public LicenseModel getUnchachedLicenseModel​(UserContext uc,
                                                     String licenseKey)
        Gets the uncached model of an license
        Parameters:
        uc - The user context of the user who requested the license.
        licenseKey - the key of the license to get the model from
        Returns:
        the license model or null
      • getUnchachedSystemLicenseModel

        public LicenseModel getUnchachedSystemLicenseModel​(UserContext uc)
        Gets the uncached model of the system license
        Parameters:
        uc - The user context of the user who requested the license.
        Returns:
        the system license model or null
      • getLicenseType

        @Deprecated
        public ELizenzTyp getLicenseType()
        Deprecated.
        The new license management handles license types differently.
        Returns:
        Always null.