|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.updater.service.UpdateService
public class UpdateService
UpdateService
| Field Summary |
|---|
| Fields inherited from interface fr.paris.lutece.plugins.updater.service.IUpdateService |
|---|
STATUS_CRITICAL_UPDATE, STATUS_NO_UPDATE, STATUS_REGULAR_UPDATE |
| Constructor Summary | |
|---|---|
UpdateService()
|
|
| 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 a plugin release |
void |
downloadPluginUpgrade(java.lang.String strPluginName,
java.lang.String strVersion,
java.lang.String strVersionFrom)
Download a plugin release |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UpdateService()
| Method Detail |
|---|
public java.util.List<UpdateInfos> getUpdateInfos(java.util.Collection<fr.paris.lutece.portal.service.plugin.Plugin> listPlugins)
getUpdateInfos in interface IUpdateServicelistPlugins - The list of installed plugins
public java.util.List<NewInfos> getNewPluginsInfos(java.util.Collection<fr.paris.lutece.portal.service.plugin.Plugin> listPlugins)
getNewPluginsInfos in interface IUpdateServicelistPlugins - The list of installed plugins
public void deployPlugin(java.lang.String strPluginName,
java.lang.String strVersion)
deployPlugin in interface IUpdateServicestrPluginName - The plugin namestrVersion - The update versionpublic int getStatus()
getStatus in interface IUpdateServicepublic void checkUpdate(java.util.Collection<fr.paris.lutece.portal.service.plugin.Plugin> listPlugins)
checkUpdate in interface IUpdateServicelistPlugins - The list of installed plugins
public void downloadPlugin(java.lang.String strPluginName,
java.lang.String strVersion)
throws UpdaterDownloadException
downloadPlugin in interface IUpdateServicestrPluginName - The plugin namestrVersion - The version
UpdaterDownloadException - If an exception occurs during download
public void downloadPluginUpgrade(java.lang.String strPluginName,
java.lang.String strVersion,
java.lang.String strVersionFrom)
throws UpdaterDownloadException
downloadPluginUpgrade in interface IUpdateServicestrPluginName - The plugin namestrVersion - The versionstrVersionFrom - The version from which to upgrade
UpdaterDownloadException - If an exception occurs during download
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||