fr.paris.lutece.plugins.updater.service
Class PluginManagerService

java.lang.Object
  extended by fr.paris.lutece.plugins.updater.service.PluginManagerService

public final class PluginManagerService
extends java.lang.Object

Plugin Manager Service


Method Summary
 void backupPlugin(java.lang.String strPluginName)
          Backup the plugin
 void cancelInstallInProgress(java.lang.String strPluginName)
          Cancel an installation
 boolean checkInstallInProgress(java.lang.String strPluginName)
          Checks if the installation is in progress
 boolean checkRestorable(java.lang.String strPluginName)
          Checks if a backup is available for a restore process
 void cleanPlugin(java.lang.String strPluginName, int nDeleteMode, boolean bBackup)
          Clean an installed version of a plugin in the webapp.
 void cleanPluginsMarkedForUpdate(int nDeleteMode)
          Clean plugins before update
 java.lang.String getDeploySqlPath(java.lang.String strPluginName)
          Return the PATH to deploy webapp files of a plugin
 java.lang.String getDeployWebappPath(java.lang.String strPluginName)
          Return the PATH to deploy webapp files of a plugin
static PluginManagerService getInstance()
          Returns the unique instance of the service
 java.lang.String getWebAppPath()
          Returns the WebAppPath
 void installPlugins()
          Install new plugins or updates (deploy => webapp)
 void removePlugin(java.lang.String strPluginName, int nDeleteMode)
          Remove a plugin from the webapp
 void restorePlugin(java.lang.String strPluginName)
          Restore a plugin (backup => webapp)
 void setWebAppPath(java.lang.String strWebAppPath)
          Sets the WebAppPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static PluginManagerService getInstance()
Returns the unique instance of the service

Returns:
The unique instance of the service

getWebAppPath

public java.lang.String getWebAppPath()
Returns the WebAppPath

Returns:
The WebAppPath

setWebAppPath

public void setWebAppPath(java.lang.String strWebAppPath)
Sets the WebAppPath

Parameters:
strWebAppPath - The WebAppPath

cleanPluginsMarkedForUpdate

public void cleanPluginsMarkedForUpdate(int nDeleteMode)
Clean plugins before update

Parameters:
nDeleteMode - The deletion mode

installPlugins

public void installPlugins()
Install new plugins or updates (deploy => webapp)


cleanPlugin

public void cleanPlugin(java.lang.String strPluginName,
                        int nDeleteMode,
                        boolean bBackup)
Clean an installed version of a plugin in the webapp. The process backup and remove the current version of the plugin.

Parameters:
strPluginName - The plugin name
nDeleteMode - The deletion mode
bBackup - Backup before cleaning

removePlugin

public void removePlugin(java.lang.String strPluginName,
                         int nDeleteMode)
Remove a plugin from the webapp

Parameters:
strPluginName - The plugin name
nDeleteMode - The deletion mode

backupPlugin

public void backupPlugin(java.lang.String strPluginName)
Backup the plugin

Parameters:
strPluginName - The plugin name

restorePlugin

public void restorePlugin(java.lang.String strPluginName)
Restore a plugin (backup => webapp)

Parameters:
strPluginName - The plugin name

checkRestorable

public boolean checkRestorable(java.lang.String strPluginName)
Checks if a backup is available for a restore process

Parameters:
strPluginName - The plugin name
Returns:
true if the plugin can be restored

checkInstallInProgress

public boolean checkInstallInProgress(java.lang.String strPluginName)
Checks if the installation is in progress

Parameters:
strPluginName - The plugin name
Returns:
true if the installation is in progress

cancelInstallInProgress

public void cancelInstallInProgress(java.lang.String strPluginName)
Cancel an installation

Parameters:
strPluginName - The plugin name

getDeployWebappPath

public java.lang.String getDeployWebappPath(java.lang.String strPluginName)
Return the PATH to deploy webapp files of a plugin

Parameters:
strPluginName - The plugin
Returns:
The path

getDeploySqlPath

public java.lang.String getDeploySqlPath(java.lang.String strPluginName)
Return the PATH to deploy webapp files of a plugin

Parameters:
strPluginName - The plugin
Returns:
The path


Copyright © 2011 Mairie de Paris. All Rights Reserved.