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 SummaryModifier and TypeMethodDescriptionstatic PropertiescheckLegals(String userNo) Check the legals available for a given licensestatic PropertiescheckPatches(String userNo) Checks the existence of a patch for the given licensestatic PropertiescheckUpdate(String userNo) Checks the existence of an update for the given licensestatic Stringstatic Stringstatic FilegetPatchFile(String fileName, boolean temp) static FilegetUpdateFile(String fileName, boolean temp) static booleanisPatchFileName(String fileName) static booleanisUpdateFileName(String fileName) static booleanmatchesCurrentRelease(Properties localUpdatePackage) static PropertiesreadPatchFile(File patchFile) Reads a local patch package and extracts the same metadata as they were obtained from the remote LMstatic PropertiesreadUpdateFile(File updateFile) Reads a local update package and extracts the same metadata as they were obtained from the remote LM
- 
Method Details- 
getBaseUrl
- 
checkUpdateChecks 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
- 
readUpdateFileReads 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 archive
- ParseException- Error parsing the file name
 
- 
readPatchFileReads 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 archive
- ParseException- Error parsing the file name
 
- 
getUpdateFile
- 
isUpdateFileName
- 
isPatchFileName
- 
checkPatchesChecks the existence of a patch for the given license- Parameters:
- userNo- UserNo of the license
- Returns:
- A fieldsMap with the patches details
 
- 
checkLegalsCheck the legals available for a given license- Parameters:
- userNo- UserNo of the license
- Returns:
- A fieldsMap with the legals details
 
- 
getPatchFile
 
-