|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xpn.xwiki.plugin.applicationmanager.ApplicationPackager
public class ApplicationPackager
Provide method to install export applications.
| Constructor Summary | |
|---|---|
ApplicationPackager(XWikiPluginMessageTool messageTool)
|
|
| Method Summary | |
|---|---|
void |
exportApplicationXAR(String appName,
boolean recurse,
boolean withDocHistory,
XWikiContext context)
Export an application into XAR using Packaging plugin. |
XWikiPluginMessageTool |
getMessageTool(XWikiContext context)
Get the XWikiPluginMessageTool to use with ApplicationManager. |
void |
importApplication(XWikiDocument packageDoc,
String packageName,
String comment,
XWikiContext context)
Import attached application XAR into current wiki and do all actions needed to installation an application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationPackager(XWikiPluginMessageTool messageTool)
messageTool - the message tool| Method Detail |
|---|
public XWikiPluginMessageTool getMessageTool(XWikiContext context)
XWikiPluginMessageTool to use with ApplicationManager.
context - the XWiki context.
public void exportApplicationXAR(String appName,
boolean recurse,
boolean withDocHistory,
XWikiContext context)
throws XWikiException,
IOException
appName - the name of the application to export.recurse - indicate if dependencies applications has to be included in the package.withDocHistory - indicate if history of documents is exported.context - the XWiki context.
XWikiException - error when :
IOException - error when apply export.
public void importApplication(XWikiDocument packageDoc,
String packageName,
String comment,
XWikiContext context)
throws XWikiException
#reloadApplication(XWikiApplication, String, XWikiContext) for more.
packageDoc - the document where package to import is attached.packageName - the name of the attached XAR file to import.comment - a comment used update XWiki.XWikiPreferences.context - the XWiki context.
XWikiException - error when :
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||