Interface IServerLicenseSystem

All Superinterfaces:
IBasicUserInfoDetailNames, IGenericLicenseSystem

public interface IServerLicenseSystem extends IGenericLicenseSystem
The license system interface of an iiziServer: what the server reads of its licence (LICENSE-V2-DESIGN.md sections 6 and 8) and what it reports (6.5).
Author:
Christopher Mindus
  • Method Details

    • getLicenseDocument

      LicenseDocument getLicenseDocument()
      Gets the current licence document: the verified document the server holds.
      Returns:
      The document, or null when the server holds none or the stored one is refused.
    • assignUsageSource

      void assignUsageSource(IServerLicenseSystem.IUsageSource source)
      Assigns the source of the usage the REFRESH reports (6.5).
      Parameters:
      source - The source, null for none.
    • getCounterState

      Gets the counting state the license file holds (6.3, 6.5, 8.4).
      Returns:
      The state, IServerLicenseSystem.CounterState.NONE when nothing is stored or the server keeps no license file (the development server, LV-21).
    • storeCounterState

      void storeCounterState(IServerLicenseSystem.CounterState state)
      Stores the counting state in the license file: a changed grace episode start or start of an unlicensed period is saved at once, the days with the file's next save. Ignored by a server that keeps no license file.
      Parameters:
      state - The state.
      Throws:
      NullPointerException - If state is null.