Package com.logicaldoc.enterprise.update
Class UpdateUtil
java.lang.Object
com.logicaldoc.enterprise.update.UpdateUtil
Utility class to check available updates
- Since:
- 7.3.1
- Author:
- Marco Meschieri - LogicalDOC
-
Method Summary
Modifier and TypeMethodDescriptionstatic Properties
checkPatches
(String userNo) Checks the existence of a patch for the given licensestatic Properties
checkUpdate
(String userNo) Checks the existence of an update for the given licensestatic String
static String
static File
getPatchFile
(String fileName, boolean temp) static File
getUpdateFile
(String fileName, boolean temp) static boolean
isPatchFileName
(String fileName) static boolean
isUpdateFileName
(String fileName) static boolean
matchesCurrentRelease
(Properties localUpdatePackage) static Properties
readPatchFile
(File patchFile) Reads a local patch package and extracts the same metadata as they were obtained from the remote LMstatic Properties
readUpdateFile
(File updateFile) Reads a local update package and extracts the same metadata as they were obtained from the remote LM
-
Method Details
-
getBaseUrl
-
checkUpdate
Checks the existence of an update for the given license- Parameters:
userNo
- UserNo of the license- Returns:
- A fieldsMap with the license details
- Throws:
ResourceUnavailableException
- thrown in case a resource exists but is not avaliable at the moment
-
matchesCurrentRelease
-
currentRelease
-
readUpdateFile
Reads a local update package and extracts the same metadata as they were obtained from the remote LM- Parameters:
updateFile
- The update package file- Returns:
- The metadata
- Throws:
IOException
- Error extracting the metadata from the compressed archiveParseException
- Error parsing the file name
-
readPatchFile
Reads a local patch package and extracts the same metadata as they were obtained from the remote LM- Parameters:
patchFile
- The patch package file- Returns:
- The metadata
- Throws:
IOException
- Error extracting the metadata from the compressed archiveParseException
- Error parsing the file name
-
getUpdateFile
-
isUpdateFileName
-
isPatchFileName
-
checkPatches
Checks the existence of a patch for the given license- Parameters:
userNo
- UserNo of the license- Returns:
- A fieldsMap with the patches details
-
getPatchFile
-