fr.paris.lutece.plugins.updater.service
Interface IUpdateService

All Known Implementing Classes:
UpdateService

public interface IUpdateService

Update Service Interface


Field Summary
static int STATUS_CRITICAL_UPDATE
           
static int STATUS_NO_UPDATE
           
static int STATUS_REGULAR_UPDATE
           
 
Method Summary
 void checkUpdate(java.util.Collection<fr.paris.lutece.portal.service.plugin.Plugin> listPlugins)
          Check for updates and update the status
 void deployPlugin(java.lang.String strPluginName, java.lang.String strVersion)
          Deploy a plugin (downloaded => deploy)
 void downloadPlugin(java.lang.String strPluginName, java.lang.String strVersion)
          Download the plugin package
 void downloadPluginUpgrade(java.lang.String strPluginName, java.lang.String strVersion, java.lang.String strVersionFrom)
          Download the plugin package
 java.util.List<NewInfos> getNewPluginsInfos(java.util.Collection<fr.paris.lutece.portal.service.plugin.Plugin> listPlugins)
          Gets available plugins not already installed
 int getStatus()
          Returns the updater status : (no update available, regular updates available or critical updates available.
 java.util.List<UpdateInfos> getUpdateInfos(java.util.Collection<fr.paris.lutece.portal.service.plugin.Plugin> listPlugins)
          Gets available update for a list of plugins
 

Field Detail

STATUS_NO_UPDATE

static final int STATUS_NO_UPDATE
See Also:
Constant Field Values

STATUS_REGULAR_UPDATE

static final int STATUS_REGULAR_UPDATE
See Also:
Constant Field Values

STATUS_CRITICAL_UPDATE

static final int STATUS_CRITICAL_UPDATE
See Also:
Constant Field Values
Method Detail

downloadPlugin

void downloadPlugin(java.lang.String strPluginName,
                    java.lang.String strVersion)
                    throws UpdaterDownloadException
Download the plugin package

Parameters:
strPluginName - The plugin name
strVersion - The plugin version
Throws:
UpdaterDownloadException - If an exception occurs during download

downloadPluginUpgrade

void downloadPluginUpgrade(java.lang.String strPluginName,
                           java.lang.String strVersion,
                           java.lang.String strVersionFrom)
                           throws UpdaterDownloadException
Download the plugin package

Parameters:
strPluginName - The plugin name
strVersion - The new plugin version
strVersionFrom - The current plugin version
Throws:
UpdaterDownloadException - If an exception occurs during download

getUpdateInfos

java.util.List<UpdateInfos> getUpdateInfos(java.util.Collection<fr.paris.lutece.portal.service.plugin.Plugin> listPlugins)
Gets available update for a list of plugins

Parameters:
listPlugins - The list of plugins
Returns:
A list of updates available for the given list of plugins

getNewPluginsInfos

java.util.List<NewInfos> getNewPluginsInfos(java.util.Collection<fr.paris.lutece.portal.service.plugin.Plugin> listPlugins)
Gets available plugins not already installed

Parameters:
listPlugins - The list of installed plugins
Returns:
New plugins infos list

getStatus

int getStatus()
Returns the updater status : (no update available, regular updates available or critical updates available.

Returns:
The status

checkUpdate

void checkUpdate(java.util.Collection<fr.paris.lutece.portal.service.plugin.Plugin> listPlugins)
Check for updates and update the status

Parameters:
listPlugins - The list of installed plugins

deployPlugin

void deployPlugin(java.lang.String strPluginName,
                  java.lang.String strVersion)
Deploy a plugin (downloaded => deploy)

Parameters:
strPluginName - The plugin name
strVersion - The update version


Copyright © 2009 Mairie de Paris. All Rights Reserved.