|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.it.rpc.RpcPluginHelper
public class RpcPluginHelper
Uses a ConfluenceRpc
to perform plugin operations. All operations are
performed through the ConfluenceRpc
and therefore are performed as the
user currently logged into ConfluenceRpc
.
This relies on the Rpc Functest Plugin being installed, so it's not much good for that.
Method Summary | |
---|---|
void |
disablePlugin(Plugin plugin)
Disable the plugin. |
void |
disablePluginModule(Plugin plugin,
java.lang.String moduleKey)
|
void |
enablePlugin(Plugin plugin)
Enable the plugin. |
void |
enablePluginModule(Plugin plugin,
java.lang.String moduleKey)
|
void |
installPlugin(UploadablePlugin plugin)
Install the plugin as the currently logged in User. |
void |
installPluginIfNotInstalled(UploadablePlugin plugin)
Equivalent of calling PluginHelper.isPluginInstalled(Plugin) and PluginHelper.installPlugin(UploadablePlugin) . |
boolean |
isPluginEnabled(Plugin plugin)
Returns true if the given plugin is currently enabled, otherwise false. |
boolean |
isPluginInstalled(Plugin plugin)
Returns true if the given plugin is currently installed, otherwise false. |
boolean |
isPluginModuleEnabled(Plugin plugin,
java.lang.String moduleKey)
|
void |
resetPluginEnablementState()
|
void |
uninstallPlugin(Plugin plugin)
Uninstall the plugin as the currently logged in User. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void installPluginIfNotInstalled(UploadablePlugin plugin) throws java.io.IOException
PluginHelper
PluginHelper.isPluginInstalled(Plugin)
and PluginHelper.installPlugin(UploadablePlugin)
.
installPluginIfNotInstalled
in interface PluginHelper
java.io.IOException
public void installPlugin(UploadablePlugin plugin) throws java.io.IOException
PluginHelper
installPlugin
in interface PluginHelper
java.io.FileNotFoundException
- if the plugin file does not exist locally
java.io.IOException
PluginHelper.isPluginInstalled(Plugin)
public void uninstallPlugin(Plugin plugin)
PluginHelper
uninstallPlugin
in interface PluginHelper
PluginHelper.isPluginInstalled(Plugin)
public boolean isPluginInstalled(Plugin plugin)
PluginHelper
isPluginInstalled
in interface PluginHelper
public void enablePlugin(Plugin plugin)
PluginHelper
enablePlugin
in interface PluginHelper
PluginHelper.isPluginEnabled(Plugin)
public void resetPluginEnablementState()
resetPluginEnablementState
in interface PluginHelper
public void disablePlugin(Plugin plugin)
PluginHelper
disablePlugin
in interface PluginHelper
PluginHelper.isPluginEnabled(Plugin)
public boolean isPluginEnabled(Plugin plugin)
PluginHelper
isPluginEnabled
in interface PluginHelper
public void enablePluginModule(Plugin plugin, java.lang.String moduleKey)
enablePluginModule
in interface PluginHelper
public void disablePluginModule(Plugin plugin, java.lang.String moduleKey)
disablePluginModule
in interface PluginHelper
public boolean isPluginModuleEnabled(Plugin plugin, java.lang.String moduleKey)
isPluginModuleEnabled
in interface PluginHelper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |