public class CustomContentTestPluginInstaller extends Object
| Modifier and Type | Field and Description |
|---|---|
static ContentType |
CONTENT_TYPE |
| Constructor and Description |
|---|
CustomContentTestPluginInstaller()
call setConfluenceRpc before use
|
CustomContentTestPluginInstaller(ConfluenceRpc rpc) |
| Modifier and Type | Method and Description |
|---|---|
UploadablePlugin |
install() |
UploadablePlugin |
install(List<Class> additionalPluginClasses,
String pluginKey,
String pluginXml)
Used for installing a plugin with the test custom content type and any additional plugin classes.
|
void |
setConfluenceRpc(ConfluenceRpc rpc) |
void |
uninstall() |
public static final ContentType CONTENT_TYPE
public CustomContentTestPluginInstaller()
public CustomContentTestPluginInstaller(ConfluenceRpc rpc)
public void setConfluenceRpc(ConfluenceRpc rpc)
public UploadablePlugin install() throws IOException
IOExceptionpublic UploadablePlugin install(List<Class> additionalPluginClasses, String pluginKey, String pluginXml) throws IOException
The plugin xml must declare the custom content type as a plugin module.
Custom content type classes will be automatically registered
additionalPluginClasses - - additional plugin classes to include in the plugin jarpluginKey - - the plugin keypluginXml - - the atlassian-plugin.xml defining the modules to be registeredIOExceptionpublic void uninstall()
Copyright © 2003–2016 Atlassian. All rights reserved.