Class LicenseClient

java.lang.Object
com.logicaldoc.enterprise.license.LicenseClient

public class LicenseClient extends Object
Client part for connecting with the LM.
Since:
7.5.3
Author:
Marco Meschieri - LogicalDOC
  • Method Details

    • get

      public static LicenseClient get()
    • getLicenseFile

      public File getLicenseFile()
    • storeLicenseFile

      public String storeLicenseFile(File tmpFile)
      Stores the new license file, and if is not formally valid or some errors occur the old license is left unchanged
      Parameters:
      tmpFile - temporary file with the license to import, it will be deleted at the end
      Returns:
      null if all went ok, or an error code
    • generateRequest

      public static String generateRequest(String userNo)
    • mustSync

      public boolean mustSync(String userNo) throws IOException
      Throws:
      IOException
    • activate

      public String activate(String userNo, boolean sync) throws IOException
      Throws:
      IOException
    • unbind

      public String unbind(String userNo) throws IOException
      Throws:
      IOException
    • countTrials

      public int countTrials(String userNo)
    • startPolling

      public void startPolling()
    • stopPolling

      public void stopPolling()
    • main

      public static void main(String[] args)