Class LicenseClient


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

      • getLicenseFile

        public File getLicenseFile()
      • storeLicenseFile

        public String storeLicenseFile​(File tmpFile)
        Stores the new license file, and if is not valid or some error occurs the old license is used instead
        Parameters:
        tmpFile - temporary file with the license
        Returns:
        null if all went ok, or an error code
      • generateRequest

        public String generateRequest​(String userNo)
      • mustSync

        public boolean mustSync​(String userNo)
                         throws org.apache.http.client.ClientProtocolException,
                                IOException
        Throws:
        org.apache.http.client.ClientProtocolException
        IOException
      • countTrials

        public int countTrials​(String userNo)
      • startPolling

        public void startPolling()
      • stopPolling

        public void stopPolling()