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 String
activate(String userNo, boolean sync)
int
countTrials(String userNo)
String
generateRequest(String userNo)
static LicenseClient
get()
File
getLicenseFile()
boolean
mustSync(String userNo)
void
startPolling()
void
stopPolling()
String
storeLicenseFile(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.ClientProtocolException
IOException
-
countTrials
public int countTrials(String userNo)
-
startPolling
public void startPolling()
-
stopPolling
public void stopPolling()
-
-