XAppManager
CreateApplication
en
0
XAppManager.WebHome
XWiki.superadmin
xwiki:XWiki.Admin
1192218584000
1529284852000
1529284852000
1.1

#

Imported from XAR
false
xwiki/1.0
false
XWiki.TagClass
0
0
input
1
tags
1
Tags
1
|
|,
30
0
com.xpn.xwiki.objects.classes.StaticListClass
XAppManager.CreateApplication
0
XWiki.TagClass
4c4cfe4e-2c23-4b83-ad23-92649a99c3d1
#set($AppManager = $xwiki.applicationmanager) #if(!$AppManager) #error($msg.get("xapp.pluginnotenabled")) #end ## #set($Exception = $AppManager.DefaultException) ## #set($appdocument = $AppManager.createApplicationDocument()) #set($appdocumentobject = $appdocument.updateObjectFromRequest("XAppClasses.XWikiApplicationClass")) ## #set($action = $request.getParameter("action")) ## ############################################################################# ## 1 $msg.get("xapp.createapplication") ## #if($action) #if($action == "create") #set($result = $AppManager.createApplication($appdocument, true)) #if ($result == $Exception.ERROR_NOERROR) <font color=green> $msg.get("xapp.successcreateapp", [$appdocument.appname, $appdocument.getFullName()]) </font> #else <font color=red> #if ($result == $Exception.ERROR_AM_APPDOCALREADYEXISTS) $msg.get("xapp.errorcreateapp.ERROR_AM_APPDOCALREADYEXISTS", [$appdocument.appname]) #else $msg.get("xapp.errorcreateapp", [$appdocument.appname, $result]) #end </font> #end #end #end ## <form method="get" action=""> <fieldset> <legend>$msg.get("xapp.legend.application")</legend> <input type="hidden" name="action" value="create" /> <table width="100%"> <tr> <td>$msg.get("xapp.appname")</td> <td>$appdocument.display("appname", "edit")</td> </tr> <tr> <td>$msg.get("xapp.description")</td> <td>$appdocument.display("description", "edit")</td> </tr> <tr> <td>$msg.get("version")</td> <td>$appdocument.display("appversion", "edit")</td> </tr> </table> </fieldset> <fieldset> <legend>$msg.get("xapp.legend.validate")</legend> <input type="submit" value="$msg.get("create")" /> </fieldset> </form>