public class UpdateService extends Object implements IUpdateService
STATUS_CRITICAL_UPDATE, STATUS_NO_UPDATE, STATUS_REGULAR_UPDATE
Constructor and Description |
---|
UpdateService() |
Modifier and Type | Method and Description |
---|---|
void |
checkUpdate(Collection<fr.paris.lutece.portal.service.plugin.Plugin> listPlugins)
Check for updates and update the status
|
void |
deployPlugin(String strPluginName,
String strVersion)
Deploy a plugin (downloaded => deploy)
|
void |
downloadPlugin(String strPluginName,
String strVersion)
Download a plugin release
|
void |
downloadPluginUpgrade(String strPluginName,
String strVersion,
String strVersionFrom)
Download a plugin release
|
int |
getCriticalUpdateCount()
Returns the number of critical updates available
|
List<NewInfos> |
getNewPluginsInfos(Collection<fr.paris.lutece.portal.service.plugin.Plugin> listPlugins)
Gets available plugins not already installed
|
int |
getRegularUpdateCount()
Returns the number of regular updates available
|
int |
getStatus()
Returns the updater status : (no update available, regular updates
available or critical updates available.
|
List<UpdateInfos> |
getUpdateInfos(Collection<fr.paris.lutece.portal.service.plugin.Plugin> listPlugins)
Gets available update for a list of plugins
|
public List<UpdateInfos> getUpdateInfos(Collection<fr.paris.lutece.portal.service.plugin.Plugin> listPlugins)
getUpdateInfos
in interface IUpdateService
listPlugins
- The list of installed pluginspublic List<NewInfos> getNewPluginsInfos(Collection<fr.paris.lutece.portal.service.plugin.Plugin> listPlugins)
getNewPluginsInfos
in interface IUpdateService
listPlugins
- The list of installed pluginspublic void deployPlugin(String strPluginName, String strVersion)
deployPlugin
in interface IUpdateService
strPluginName
- The plugin namestrVersion
- The update versionpublic int getStatus()
getStatus
in interface IUpdateService
public int getRegularUpdateCount()
getRegularUpdateCount
in interface IUpdateService
public int getCriticalUpdateCount()
getCriticalUpdateCount
in interface IUpdateService
public void checkUpdate(Collection<fr.paris.lutece.portal.service.plugin.Plugin> listPlugins)
checkUpdate
in interface IUpdateService
listPlugins
- The list of installed pluginspublic void downloadPlugin(String strPluginName, String strVersion) throws UpdaterDownloadException
downloadPlugin
in interface IUpdateService
strPluginName
- The plugin namestrVersion
- The versionUpdaterDownloadException
- If an exception occurs during downloadpublic void downloadPluginUpgrade(String strPluginName, String strVersion, String strVersionFrom) throws UpdaterDownloadException
downloadPluginUpgrade
in interface IUpdateService
strPluginName
- The plugin namestrVersion
- The versionstrVersionFrom
- The version from which to upgradeUpdaterDownloadException
- If an exception occurs during downloadCopyright © 2016 Mairie de Paris. All Rights Reserved.