Package com.logicaldoc.enterprise.update
Class UpdateUtil
- java.lang.Object
-
- com.logicaldoc.enterprise.update.UpdateUtil
-
public class UpdateUtil extends Object
Utility class to check available updates- Since:
- 7.3.1
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description UpdateUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Properties
checkPatch(String userNo, String currentRelease)
static Properties
checkPatch(String userNo, String currentRelease, Integer timeout)
Checks the existence of a patch for the given licensestatic Properties
checkUpdate(String userNo, String currentRelease)
static Properties
checkUpdate(String userNo, String currentRelease, Integer timeout)
Checks the existence of an update for the given licensestatic String
getBaseUrl()
static File
getPatchFile(String fileName, boolean temp)
static File
getUpdateFile(String fileName, boolean temp)
-
-
-
Method Detail
-
getBaseUrl
public static String getBaseUrl()
-
checkUpdate
public static Properties checkUpdate(String userNo, String currentRelease, Integer timeout) throws ResourceUnavailableException
Checks the existence of an update for the given license- Parameters:
userNo
- UserNo of the licensecurrentRelease
- The current releasetimeout
- The timeout in seconds- Returns:
- A fieldsMap with the license details
- Throws:
ResourceUnavailableException
- thrown in case a resource exists but is not avaliable at the moment
-
checkUpdate
public static Properties checkUpdate(String userNo, String currentRelease) throws ResourceUnavailableException
- Throws:
ResourceUnavailableException
-
checkPatch
public static Properties checkPatch(String userNo, String currentRelease, Integer timeout)
Checks the existence of a patch for the given license- Parameters:
userNo
- UserNo of the licensecurrentRelease
- The current releasetimeout
- The timeout in seconds- Returns:
- A fieldsMap with the license details
-
checkPatch
public static Properties checkPatch(String userNo, String currentRelease)
-
-