XWiki
XWikiServerClassSheet
en
0
XWiki.XWikiServerClass
XWiki.Admin
XWiki.superadmin
xwiki:XWiki.Admin
1187881143000
1529283494000
1529283494000
1.1

# XWikiServerClassSheet

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
XWiki.XWikiServerClassSheet
0
XWiki.TagClass
c84ecf05-3d2c-48e3-ac75-efbbccb43c34
#set ($WikiManager = $xwiki.wikimanager) #set ($Exception = $WikiManager.DefaultException) ## #set ($action = $request.getParameter("action")) #set ($domain = $request.getParameter("domain")) ## ############################################################################# ## #if ($doc.fullName == "XWiki.XWikiServerClassSheet" || $doc.fullName == "XWiki.XWikiServerClassTemplate") 1 Document "$doc.name" #else #set ($wiki = $WikiManager.getWikiFromDocumentName($doc.fullName)) ## #if ($action && ($action == "create") && $domain && ($domain.trim().length() > 0)) #if (!$wiki.containsWikiAlias($domain)) #set ($alias = $wiki.newObject("XWiki.XWikiServerClass")) $alias.set("server", $domain) $alias.set("homepage", "Main.WebHome") $wiki.save() #else #error($msg.get("wikimanager.erroraliasalreadynotexists", [$domain])) #end #end ## #if ($action && ($action == "delete") && $domain && ($domain.trim().length() > 0)) #if ($wiki.containsWikiAlias($domain)) #set ($alias = $wiki.getWikiAlias($domain)) #set ($removed = $wiki.removeObject($alias.objectApi)) $wiki.save() #else #error($msg.get("wikimanager.erroraliasdoesnotexists", [$domain])) #end #end ## ############################################################################# ## #set ($wikiAliasList = $wiki.wikiAliasList) ## #if ($wikiAliasList.size() > 0) 1 Wiki "$wiki.wikiName" ## #set ($firstalias = $wikiAliasList.get(0)) #if ($context.action == "view") 1.1 $msg.get("wikimanager.title.wikisettings") #else <fieldset> <legend>$msg.get("wikimanager.title.wikisettings")</legend> #end ## <dl> <dt>$msg.get("wikimanager.prop.wiki.wikiprettyname"):</dt> <dd> <p> $doc.display("wikiprettyname", $firstalias.objectApi)\\ $msg.get("wikimanager.doc.createwiki.desc.wikiprettyname") </p> </dd> <dt>$msg.get("wikimanager.prop.wiki.owner"):</dt> <dd> <p> $doc.display("owner", $firstalias.objectApi)\\ $msg.get("wikimanager.doc.createwiki.desc.owner") </p> </dd> <dt>$msg.get("wikimanager.prop.wiki.secure"):</dt> <dd> <p> $doc.display("secure", $firstalias.objectApi)\\ $msg.get("wikimanager.doc.createwiki.desc.secure") </p> </dd> <dt>$msg.get("wikimanager.prop.wiki.iswikitemplate"):</dt> <dd> <p> $doc.display("iswikitemplate", $firstalias.objectApi)\\ $msg.get("wikimanager.doc.createwiki.desc.iswikitemplate") </p> </dd> <dt>$msg.get("wikimanager.prop.wiki.language"):</dt> <dd> <p> $doc.display("language", $firstalias.objectApi)\\ $msg.get("wikimanager.doc.createwiki.desc.language") </p> </dd> <dt>$msg.get("wikimanager.prop.wiki.server"):</dt> <dd> <p> $doc.display("server", $firstalias.objectApi)\\ $msg.get("wikimanager.doc.createwiki.desc.server") </p> </dd> <dt>$msg.get("wikimanager.prop.wiki.description"):</dt> <dd> <p> $doc.display("description", $firstalias.objectApi)\\ $msg.get("wikimanager.doc.createwiki.desc.description") </p> </dd> <dt>$msg.get("wikimanager.prop.wiki.homepage"):</dt> <dd> <p> $doc.display("homepage", $firstalias.objectApi)\\ $msg.get("wikimanager.doc.createwiki.desc.homepage") </p> </dd> </dl> #if ($context.action != "view") </fieldset> #end ## #if ($context.action == "view") 1.1 $msg.get("wikimanager.title.createnewalias") ## <form method="get" action=""> <fieldset> <legend>Create new alias</legend> <input type="hidden" name="action" value="create"/> $msg.get("wikimanager.prop.alias.server"): <input type="text" name="domain" class="wikialiasinput"/> <input type="submit" class="button" value="$msg.get("create")"/> </fieldset> </form> #end ## #if ($wikiAliasList.size() > 1) #if ($context.action == "view") 1.1 $msg.get("wikimanager.title.viewaliases") #end ## #foreach($wikiAlias in $wikiAliasList.subList(1, $wikiAliasList.size())) #if ($context.action == "view") <form method="get" action="$doc.getURL("view")"> #end <fieldset> <legend>$doc.display("server", $wikiAlias.objectApi)</legend> ## <br /> <dl> <dt>$msg.get("wikimanager.prop.alias.description"):</dt> <dd> <p> $doc.display("description", $wikiAlias.objectApi)\\ $msg.get("wikimanager.doc.createwiki.desc.description") </p> </dd> <dt>$msg.get("wikimanager.prop.alias.homepage"):</dt> <dd> <p> $doc.display("homepage", $wikiAlias.objectApi)\\ $msg.get("wikimanager.doc.createwiki.desc.homepage") </p> </dd> </dl> #if ($context.action == "view") <br /> <input type="hidden" name="action" value="delete"/> <input type="hidden" name="domain" value="$wikiAlias.server"/> <input type="submit" class="button" value="$msg.get("delete")"/> #end </fieldset> #if ($context.action == "view") </form> #end #end #end #end #end