public interface IUpdateService
| Modifier and Type | Field and Description |
|---|---|
static int |
STATUS_CRITICAL_UPDATE |
static int |
STATUS_NO_UPDATE |
static int |
STATUS_REGULAR_UPDATE |
| 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 the plugin package
|
void |
downloadPluginUpgrade(String strPluginName,
String strVersion,
String strVersionFrom)
Download the plugin package
|
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
|
static final int STATUS_NO_UPDATE
static final int STATUS_REGULAR_UPDATE
static final int STATUS_CRITICAL_UPDATE
void downloadPlugin(String strPluginName, String strVersion) throws UpdaterDownloadException
strPluginName - The plugin namestrVersion - The plugin versionUpdaterDownloadException - If an exception occurs during downloadvoid downloadPluginUpgrade(String strPluginName, String strVersion, String strVersionFrom) throws UpdaterDownloadException
strPluginName - The plugin namestrVersion - The new plugin versionstrVersionFrom - The current plugin versionUpdaterDownloadException - If an exception occurs during downloadList<UpdateInfos> getUpdateInfos(Collection<fr.paris.lutece.portal.service.plugin.Plugin> listPlugins)
listPlugins - The list of pluginsList<NewInfos> getNewPluginsInfos(Collection<fr.paris.lutece.portal.service.plugin.Plugin> listPlugins)
listPlugins - The list of installed pluginsint getStatus()
int getRegularUpdateCount()
int getCriticalUpdateCount()
void checkUpdate(Collection<fr.paris.lutece.portal.service.plugin.Plugin> listPlugins)
listPlugins - The list of installed pluginsCopyright © 2016 Mairie de Paris. All Rights Reserved.