Class UpdateUtil


  • public class UpdateUtil
    extends Object
    Utility class to check available updates
    Since:
    7.3.1
    Author:
    Marco Meschieri - LogicalDOC
    • Constructor Detail

      • UpdateUtil

        public UpdateUtil()
    • 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 license
        currentRelease - The current release
        timeout - 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
      • getUpdateFile

        public static File getUpdateFile​(String fileName,
                                         boolean temp)
      • 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 license
        currentRelease - The current release
        timeout - The timeout in seconds
        Returns:
        A fieldsMap with the license details
      • getPatchFile

        public static File getPatchFile​(String fileName,
                                        boolean temp)