public final class PluginManagerService extends Object
Modifier and Type | Method and Description |
---|---|
void |
backupPlugin(String strPluginName)
Backup the plugin
|
void |
cancelInstallInProgress(String strPluginName)
Cancel an installation
|
boolean |
checkInstallInProgress(String strPluginName)
Checks if the installation is in progress
|
boolean |
checkRestorable(String strPluginName)
Checks if a backup is available for a restore process
|
void |
cleanPlugin(String strPluginName,
int nDeleteMode,
boolean bBackup)
Clean an installed version of a plugin in the webapp.
|
void |
cleanPluginsMarkedForUpdate(int nDeleteMode)
Clean plugins before update
|
String |
getDeploySqlPath(String strPluginName)
Return the PATH to deploy webapp files of a plugin
|
String |
getDeployWebappPath(String strPluginName)
Return the PATH to deploy webapp files of a plugin
|
static PluginManagerService |
getInstance()
Returns the unique instance of the service
|
String |
getWebAppPath()
Returns the WebAppPath
|
void |
installPlugins()
Install new plugins or updates (deploy => webapp)
|
void |
removePlugin(String strPluginName,
int nDeleteMode)
Remove a plugin from the webapp
|
void |
restorePlugin(String strPluginName)
Restore a plugin (backup => webapp)
|
void |
setWebAppPath(String strWebAppPath)
Sets the WebAppPath
|
public static PluginManagerService getInstance()
public String getWebAppPath()
public void setWebAppPath(String strWebAppPath)
strWebAppPath
- The WebAppPathpublic void cleanPluginsMarkedForUpdate(int nDeleteMode)
nDeleteMode
- The deletion modepublic void installPlugins()
public void cleanPlugin(String strPluginName, int nDeleteMode, boolean bBackup)
strPluginName
- The plugin namenDeleteMode
- The deletion modebBackup
- Backup before cleaningpublic void removePlugin(String strPluginName, int nDeleteMode)
strPluginName
- The plugin namenDeleteMode
- The deletion modepublic void backupPlugin(String strPluginName)
strPluginName
- The plugin namepublic void restorePlugin(String strPluginName)
strPluginName
- The plugin namepublic boolean checkRestorable(String strPluginName)
strPluginName
- The plugin namepublic boolean checkInstallInProgress(String strPluginName)
strPluginName
- The plugin namepublic void cancelInstallInProgress(String strPluginName)
strPluginName
- The plugin namepublic String getDeployWebappPath(String strPluginName)
strPluginName
- The pluginCopyright © 2016 Mairie de Paris. All Rights Reserved.