Package com.logicaldoc.enterprise
Class LicenseClient
- java.lang.Object
-
- com.logicaldoc.enterprise.LicenseClient
-
public class LicenseClient extends Object
Client part for connecting with the LM.- Since:
- 7.5.3
- Author:
- Marco Meschieri - LogicalDOC
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringactivate(String userNo, boolean sync)intcountTrials(String userNo)StringgenerateRequest(String userNo)static LicenseClientget()FilegetLicenseFile()booleanmustSync(String userNo)voidstartPolling()voidstopPolling()StringstoreLicenseFile(File tmpFile)Stores the new license file, and if is not valid or some error occurs the old license is used instead
-
-
-
Method Detail
-
get
public static LicenseClient get()
-
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
-
mustSync
public boolean mustSync(String userNo) throws org.apache.http.client.ClientProtocolException, IOException
- Throws:
org.apache.http.client.ClientProtocolExceptionIOException
-
countTrials
public int countTrials(String userNo)
-
startPolling
public void startPolling()
-
stopPolling
public void stopPolling()
-
-