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
      • 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 usercontext
        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 usercontext
        Returns:
        the system license model or null
      • getLicenseId

        @Deprecated
        public String getLicenseId()
        Deprecated.
        The new license management uses keys instead of IDs
        {will be removed in next major version}
        use #getSystemLicense() and #getClientLicenseKey() instead
      • getFrontendServerCount

        @Deprecated
        public int getFrontendServerCount()
        Deprecated.
      • getLicenseType

        @Deprecated
        public ELizenzTyp getLicenseType()
        Deprecated.
        The new license management handles license types differently
        {will be removed in next major version}