  
                    





                
                
  
  



<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de">
  <head>
                    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
                                    <title>Sheet for XWikiServerClass</title>
                        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
                <link rel="shortcut icon" href="resources/icons/xwiki/favicon.ico" />
        <link rel="icon" href="resources/icons/xwiki/favicon16.png" type="image/png" />
        <link rel="icon" href="resources/icons/xwiki/favicon.svg" type="image/svg+xml" />
        <link rel="apple-touch-icon" href="resources/icons/xwiki/favicon144.png" />
                <meta http-equiv="Content-Script-Type" content="text/javascript" />
                        <meta http-equiv="imagetoolbar" content="no"/>
                                <link rel="canonical" href="xwiki.XWiki.XWikiServerClassSheet.html" />
                            <meta name="document" content="XWiki.XWikiServerClassSheet"/>
    <meta name="wiki" content="xwiki"/>
    <meta name="space" content="XWiki"/>
    <meta name="page" content="XWikiServerClassSheet"/>
    <meta name="version" content="1.1"/>
    <meta name="restURL" content="/rest/wikis/xwiki/spaces/XWiki/pages/XWikiServerClassSheet"/>
    <meta name="form_token" content="8ZYmtu0Kb0ieVyQAxBHNqA"/>
                <meta name="gwt:property" content="locale=de" />
                <meta name="revisit-after" content="7 days" />
<meta name="description" content="Sheet for XWikiServerClass" />
<meta name="keywords" content="wiki" />
<meta name="distribution" content="GLOBAL" />
<meta name="rating" content="General" />
<meta name="author" content="Administrator" />
<meta http-equiv="reply-to" content="" />
<meta name="language" content="de" />
<meta name="google-site-verification" content="qE1BFB2hw6qPJgzEuttEuj-GlvC4aWOtFVY4rJKYhWw" />
<link rel="icon" href="attachment/xwiki.XWiki.DefaultSkin.favicon.ico" type="image/x-icon"/>
<link rel="shortcut icon" href="attachment/xwiki.XWiki.DefaultSkin.favicon.ico" type="image/x-icon"/>
<link rel="alternate" type="application/rss+xml" title="Wiki Feed RSS" href="http://ci.bytebang.at/Main/WebRss?xpage=rdf" />
<link rel="alternate" type="application/rss+xml" title="Blog RSS Feed" href="http://ci.bytebang.at/Blog/GlobalBlogRss?xpage=plain" />

                <!-- com.xpn.xwiki.plugin.skinx.LinkExtensionPlugin -->
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
<link href="skins/colibri/style.css?colorTheme=ColorThemes.DefaultColorTheme" rel="stylesheet" type="text/css" media="all" />
<link href="skins/colibri/print.css?colorTheme=ColorThemes.DefaultColorTheme" rel="stylesheet" type="text/css" media="print" />
        <!--[if IE]>
  <link href="skins/colibri/ie-all.css?colorTheme=ColorThemes.DefaultColorTheme" rel="stylesheet" type="text/css" />
<![endif]-->
    <!-- com.xpn.xwiki.plugin.skinx.CssResourceSkinExtensionPlugin -->
  <!-- com.xpn.xwiki.plugin.skinx.CssSkinExtensionPlugin -->
  <!-- com.xpn.xwiki.plugin.skinx.CssSkinFileExtensionPlugin -->

                                                                                                                                                                                                                                                        <!-- com.xpn.xwiki.plugin.skinx.JsResourceSkinExtensionPlugin -->
    <!-- com.xpn.xwiki.plugin.skinx.JsSkinFileExtensionPlugin -->
    <!-- com.xpn.xwiki.plugin.skinx.JsSkinExtensionPlugin -->

<script type="text/javascript" src="resources/js/xwiki/compatibility.js" defer="defer"></script>
<script type="text/javascript" src="resources/js/xwiki/markerScript.js" defer="defer"></script>
<script type="text/javascript">
// <![CDATA[
require.config({
  baseUrl: '/',
    paths: { 'jquery': "resources/js/amd/jquery" },
  map: {
    '*': { 'jquery': 'jQueryNoConflict' },
    'jQueryNoConflict': { 'jquery': 'jquery' }
  }
});
define('jQueryNoConflict', ['jquery'], function($) { $.noConflict(); return $; });
XWiki.webapppath = "";
XWiki.servletpath = "bin/";
XWiki.contextPath = "";
XWiki.mainWiki = "xwiki";
XWiki.currentWiki = "xwiki";
XWiki.currentSpace = "XWiki";
XWiki.currentPage = "XWikiServerClassSheet";
XWiki.editor = "";
XWiki.viewer = "";
XWiki.contextaction = "export";
XWiki.docisnew = false;
XWiki.docsyntax = "xwiki/2.1";
XWiki.docvariant = "";
XWiki.blacklistedSpaces = [ "Import","Panels","Scheduler","Stats","XAppClasses","XAppSheets","XAppTemplates","XWiki","WatchCode","WatchSheets","XApp","WatchAdmin","Watch","ColorThemes","AnnotationCode" ];
XWiki.hasEdit = false;
XWiki.hasProgramming = false;
XWiki.hasBackupPackImportRights = false;
XWiki.hasRenderer = true;
window.docviewurl = "xwiki.XWiki.XWikiServerClassSheet.html";
window.docediturl = "http://ci.bytebang.at/bin/edit/XWiki/XWikiServerClassSheet";
window.docsaveurl = "http://ci.bytebang.at/bin/save/XWiki/XWikiServerClassSheet";
window.docgeturl = "http://ci.bytebang.at/bin/get/XWiki/XWikiServerClassSheet";
// ]]>
</script>

  </head>
  <body id="body" class="skin-colibri wiki-xwiki space-XWiki viewbody hidelefthideright">
<div id="xwikimaincontainer">
<div id="xwikimaincontainerinner">

  <div id="menuview">
    <div id="mainmenu" class="layoutsubsection actionmenu">
<div class="gradientfilterIE"></div>
<div class="componentcontainer">
<strong id="xwikimenutitle" class="hidden">Allgemeine Aktionen:</strong>
<div class="rightmenu">
      <div id="tmLogin" class="tmLogin topmenuentry ">
   <a class="tme" href="http://ci.bytebang.at/bin/login/XWiki/XWikiLogin?xredirect=http%3A%2F%2Fci.bytebang.at%2Fbin%2Fexport%2FXWiki%2FXWikiServerClassSheet%3Fformat%3Dhtml%26viewer%3Dcode%26xpage%3Dprint"><strong>Anmelden</strong></a>
  </div>
    <div id="tmRegister" class="tmRegister topmenuentry ">
   <a class="tme" href="http://ci.bytebang.at/bin/register/XWiki/Register"><strong>Registrieren</strong></a>
  </div>
</div>
<div class="leftmenu">
  <div id="tmMainWiki" class="tmMainWiki topmenuentry dropdownmenuentry  hasIcon" onmouseover="showsubmenu(this);" onmouseout="hidesubmenu(this);">
<span class="tme-extensible">
   <a class="tme" href="http://ci.bytebang.at/bin/Main/"><strong>Start</strong></a>
    <span class="menuarrow">&#9660;</span><span class="hidden menucolon">: </span>
</span><span class="submenu hidden">
        <span class="submenuitem "><a href="http://ci.bytebang.at/bin/WikiManager/" id="tmWikiIndex" class="tmWikiIndex">Wiki Verzeichnis</a></span>
      </span></div>
<div class="topmenuentry"><span class="separator">&raquo;</span></div>
  <div id="tmSpace" class="tmSpace topmenuentry hasIcon">
      <span class="tmetype">Bereich: </span><a class="tme hastype" href="http://ci.bytebang.at/bin/XWiki/"><strong>XWiki</strong></a>
  </div>
<div class="topmenuentry"><span class="separator">&raquo;</span></div>
  <div id="tmPage" class="tmPage topmenuentry hasIcon">
      <span class="tmetype">Seite: </span><a class="tme hastype" href="xwiki.XWiki.XWikiServerClassSheet.html"><strong>XWikiServerClassSheet</strong></a>
  </div>
</div>
</div>
</div>

  </div>
 <div id="headerglobal" class="layoutsection">
<div class="minwidthd"></div>
  <div id="company">
  <div id="companylogo">
    <a href="http://ci.bytebang.at/bin/Main/" title="Home" rel="home">
    <img src="attachment/xwiki.ColorThemes.DefaultColorTheme.logo.png" alt="Wiki Logo"/>
    </a>
  </div>   </div>   <div id="globallinks">
      <span class="glink" id="headerlanguages">
            <a href="xwiki.XWiki.XWikiServerClassSheet.html" class="language-default language-current">default</a>
      </span>
  </div>   <div class="clearfloats"></div>
  </div> 

<div class="contenthidelefthideright" id="contentcontainer">
<div id="contentcontainerinner">
<div class="leftsidecolumns">
  <div id="contentcolumn"> 
        <div class="main layoutsubsection">
      <div id="contentmenu" class="actionmenu">
    <div class="gradientfilterIE"></div>
<div class="componentcontainer">
<strong id="xwikicontentmenutitle" class="hidden">Aktionen:</strong>
<div class="rightmenu">
</div>
<div class="leftmenu">
  <div id="tmExport" class="tmExport topmenuentry dropdownmenuentry dropdownnolink " onmouseover="showsubmenu(this);" onmouseout="hidesubmenu(this);">
<span class="tme-extensible">
   <a class="tme"><strong>Exportieren</strong></a>
    <span class="menuarrow">&#9660;</span><span class="hidden menucolon">: </span>
</span><span class="submenu hidden">
    <span class="submenuitem "><a href="xwiki.XWiki.XWikiServerClassSheet.html" id="tmExportPdf" class="tmExportPdf">Als PDF exportieren</a></span>
    <span class="submenuitem "><a href="http://ci.bytebang.at/bin/export/XWiki/XWikiServerClassSheet?format=rtf&amp;format=html&amp;viewer=code&amp;xpage=print" id="tmExportRtf" class="tmExportRtf">Als RTF exportieren</a></span>
  <span class="submenuitem "><a href="http://ci.bytebang.at/bin/export/XWiki/XWikiServerClassSheet?format=html&amp;format=html&amp;viewer=code&amp;xpage=print" id="tmExportHtml" class="tmExportHtml">Als HTML exportieren</a></span>
    </span></div>
  <div id="tmMoreActions" class="tmMoreActions topmenuentry dropdownmenuentry dropdownnolink " onmouseover="showsubmenu(this);" onmouseout="hidesubmenu(this);">
<span class="tme-extensible">
   <a class="tme"><strong>Weitere Aktionen</strong></a>
    <span class="menuarrow">&#9660;</span><span class="hidden menucolon">: </span>
</span><span class="submenu hidden">
  <span class="submenuitem "><a href="xwiki.XWiki.XWikiServerClassSheet.html" id="tmPrintPreview" class="tmPrintPreview">Druckvorschau</a></span>
  <span class="submenuitem "><a href="xwiki.XWiki.XWikiServerClassSheet.html" id="tmViewSource" class="tmViewSource">Zeige den Quellcode</a></span>
  </span></div>
  </div>
</div>
    </div>
    <div id="mainContentArea">
  
   <div id="hierarchy">
                                                                  <a href='http://ci.bytebang.at/bin/Main/'>Willkommen bei bytebang</a> <span class='separator'>&#187;</span> <a href='http://ci.bytebang.at/bin/XWiki/'>XWiki Bereich</a> <span class='separator'>&#187;</span> <a href='http://ci.bytebang.at/bin/XWiki/XWikiClasses'>Data types</a> <span class='separator'>&#187;</span> <a href='http://ci.bytebang.at/bin/XWiki/XWikiServerClass'>XWiki Server Class</a> <span class='separator'>&#187;</span> <span class='current'>Sheet for XWikiServerClass</span>
                                  </div>

      <div id="document-title"><h1>Wiki-Quellcode von <a href="xwiki.XWiki.XWikiServerClassSheet.html">Sheet for XWikiServerClass</a></h1></div>
                    <div id="document-info">
    <div class="xdocLastModification">       Zuletzt geändert von <span class="wikilink"><a href="http://ci.bytebang.at/bin/XWiki/Admin">Administrator</a></span> am 2014/06/29 19:30
    </div>
    <div>
                      <span id="attachmentsshortcut"><a href="xwiki.XWiki.XWikiServerClassSheet.html">Anhänge</a> <span class="itemCount">(0)</span></span>
               <span class="separator">&#183;</span>         <span id="informationshortcut"><a href="xwiki.XWiki.XWikiServerClassSheet.html">Information</a></span>
          </div>
    <div class="clearfloats"></div>
  </div>

<div>
  <a href="xwiki.XWiki.XWikiServerClassSheet.html" id="toggleLineNumbers">Zeilennummern verstecken</a>
                                  <textarea readonly="readonly" class="wiki-code" rows="25" cols="80">
  1: {{velocity}}
  2: #############################
  3: ##        GLOBALS
  4: #############################
  5: #set ($wikiId = $doc.name.replaceAll('XWikiServer', '').toLowerCase())
  6: #set ($wiki = $services.wiki.getById($wikiId))
  7: #set ($descriptorObj = $doc.getObject('XWiki.XWikiServerClass'))
  8: #set ($templateObj = $doc.getObject('WikiManager.WikiTemplateClass'))
  9: #set ($aliases = $doc.getObjects('XWiki.XWikiServerClass'))
 10: #############################
 11: ##       CONTROLLER
 12: #############################
 13: #controller()
 14: #macro(controller)
 15:   #if ($doc.fullName == &quot;XWiki.XWikiServerClassSheet&quot; || $doc.fullName == &quot;XWiki.XWikiServerClassTemplate&quot;)
 16:     = Document &quot;$doc.name&quot; =
 17:   #elseif ($request.action == 'create' &amp;&amp; &quot;$!request.domain&quot; != '' &amp;&amp; $request.domain.trim().length() &gt; 0)
 18:     #createAlias()
 19:   #elseif ($request.action == 'delete' &amp;&amp; &quot;$!request.domain&quot; != '' &amp;&amp; $request.domain.trim().length() &gt; 0)
 20:     #deleteAlias()
 21:   #elseif ($xcontext.action == 'edit')
 22:     #edit()
 23:   #else
 24:     #view()
 25:   #end
 26: #end
 27: #############################
 28: ##         VIEW
 29: #############################
 30: #macro(view)
 31:   #set($adminPageRef = $services.model.createDocumentReference($wiki.id, 'XWiki', 'XWikiPreferences'))
 32:   #set($adminPageLink = &quot;[[$services.localization.render('platform.wiki.sheet.descriptor.admin')&gt;&gt;$adminPageRef]]&quot;)
 33:   {{translation key=&quot;platform.wiki.sheet.descriptor&quot; parameters=&quot;${wiki.id},${adminPageLink}&quot;/}} $adminPageLink
 34:   
 35:   {{toc /}}
 36:   #displaySettings()
 37:   #displayAliases()
 38:   #createAliasForm()
 39: #end
 40: #############################
 41: ##         EDIT
 42: #############################
 43: #macro(edit)
 44:   {{toc /}}
 45:   #displaySettings()
 46:   #displayAliases()
 47: #end
 48: #############################
 49: ##      CREATE ALIAS
 50: #############################
 51: #macro(createAlias)
 52:   #if (!${services.csrf.isTokenValid(&quot;$!{request.getParameter('form_token')}&quot;)})
 53: 
 54:     {{error}}{{translation key=&quot;notallowed&quot;/}}{{/error}}
 55: 
 56:   #elseif (!$wiki.aliases.contains($request.domain))
 57:     #set ($alias = $doc.newObject(&quot;XWiki.XWikiServerClass&quot;))
 58:     #set ($discard = $alias.set(&quot;server&quot;, $request.domain))
 59:     #set ($discard = $alias.set(&quot;homepage&quot;, &quot;Main.WebHome&quot;))
 60:     #set ($discard = $doc.save())
 61:     $response.sendRedirect($doc.getURL())
 62:   #else
 63: 
 64:     {{error}}{{translation key=&quot;platform.wiki.sheet.erroraliasalreadynotexists&quot; parameters=&quot;$request.domain&quot;/}}{{/error}}
 65: 
 66:   #end
 67: #end
 68: #############################
 69: ##      DELETE ALIAS
 70: #############################
 71: #macro(deleteAlias)
 72:   #if (!${services.csrf.isTokenValid(&quot;$!{request.getParameter('form_token')}&quot;)})
 73: 
 74:     {{error}}{{translation key=&quot;notallowed&quot;/}}{{/error}}
 75:     
 76:   #elseif ($wiki.aliases.contains($request.domain))
 77:     #set ($alias = $doc.getObject('XWiki.XWikiServerClass', 'server', $request.domain))
 78:     #set ($removed = $doc.removeObject($alias))
 79:     #set ($discard = $doc.save())
 80:     $response.sendRedirect($doc.getURL())
 81:   #else
 82:   
 83:     {{error}}{{translation key=&quot;platform.wiki.sheet.erroraliasdoesnotexists&quot; parameters=&quot;$request.domain&quot;/}}{{/error}}
 84:     
 85:   #end
 86: #end
 87: #############################
 88: ##    DISPLAY SETTINGS
 89: #############################
 90: #macro(displaySettings)
 91:   = {{translation key=&quot;platform.wiki.sheet.title.settings&quot;/}} =
 92:   {{html wiki=&quot;true&quot; clean=&quot;false&quot;}}
 93:   &lt;div class=&quot;xform&quot;&gt;
 94:   &lt;dl&gt;
 95:     #displayField('wikiprettyname', $descriptorObj)
 96:     #displayField('owner', $descriptorObj)
 97:     #displayField('secure', $descriptorObj)
 98:     #displayField('iswikitemplate', $templateObj)
 99:     #displayField('server', $descriptorObj)
100:     #displayField('description', $descriptorObj)
101:     #displayField('homepage', $descriptorObj)
102:   &lt;/dl&gt;
103:   &lt;/div&gt;
104:   {{/html}}
105: #end
106: #############################
107: ##      DISPLAY FIELD
108: #############################
109: #macro(displayField $fieldName $object)
110:   #if (&quot;$!object&quot; != '')
111:     &lt;dt&gt;
112:       #if ($xcontext.action=='edit')
113:         &lt;label for=&quot;${object.xWikiClass.name}_${object.number}_${fieldName}&quot;&gt;
114:       #else
115:         &lt;label&gt;
116:       #end
117:       {{translation key=&quot;platform.wiki.sheet.prop.${fieldName}&quot; /}}:
118:       &lt;/label&gt;
119:       &lt;span class=&quot;xHint&quot;&gt;{{translation key=&quot;platform.wiki.sheet.desc.${fieldName}&quot; /}}&lt;/span&gt;
120:     &lt;/dt&gt;
121:     &lt;dd&gt;$object.get($fieldName)&lt;/dd&gt;
122:   #end
123: #end
124: #############################
125: ##    DISPLAY ALIASES
126: #############################
127: #macro(displayAliases)
128:   = {{translation key=&quot;platform.wiki.sheet.title.viewaliases&quot;/}} =
129:   {{translation key=&quot;platform.wiki.sheet.aliases&quot;/}}
130:   #if ($aliases.size() &gt; 1)
131:     #foreach ($alias in $aliases)
132:       #if ($velocityCount &gt; 1)
133:         == $alias.display('server', 'view') ==
134:         {{html wiki=&quot;true&quot; clean=&quot;false&quot;}}
135:         &lt;div class=&quot;xform&quot;&gt;
136:           &lt;dl&gt;
137:             #displayField('description', $alias)
138:             #displayField('homepage', $alias)
139:           &lt;/dl&gt;
140:         &lt;/div&gt;
141:         {{/html}}
142:         #if ($xcontext.action == 'view')
143:           #deleteButton($alias)
144:         #end
145:       #end
146:     #end 
147:   #end
148: #end
149: #############################
150: ##   DELETE ALIAS BUTTON
151: #############################
152: #macro(deleteButton $alias)
153:   #if($xcontext.action == 'view')
154: 
155:     {{html}}
156:       &lt;form method=&quot;get&quot; action=&quot;$doc.getURL('view')&quot;&gt;
157:         &lt;fieldset&gt;
158:           &lt;input type=&quot;hidden&quot; name=&quot;form_token&quot; value=&quot;$!{services.csrf.getToken()}&quot; /&gt;
159:           &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;delete&quot;/&gt;
160:           &lt;input type=&quot;hidden&quot; name=&quot;domain&quot; value=&quot;$alias.server&quot;/&gt;
161:           &lt;input type=&quot;submit&quot; class=&quot;button&quot; value=&quot;$services.localization.render('delete')&quot;/&gt;
162:         &lt;/fieldset&gt;
163:       &lt;/form&gt;
164:     {{/html}}
165: 
166:   #end
167: #end
168: #############################
169: ##   CREATE ALIAS FORM
170: #############################
171: #macro(createAliasForm)
172:   = {{translation key=&quot;platform.wiki.sheet.title.createnewalias&quot;/}} =
173:   
174:   {{html}}
175:     &lt;form method=&quot;get&quot; action=&quot;$doc.getURL('view')&quot;&gt;
176:       &lt;fieldset&gt;
177:         &lt;input type=&quot;hidden&quot; name=&quot;form_token&quot; value=&quot;$!{services.csrf.getToken()}&quot; /&gt;
178:         &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;create&quot;/&gt;
179:         &lt;label for=&quot;inputdomain&quot;&gt;$services.localization.render('platform.wiki.sheet.prop.server')&lt;/label&gt;:
180:         &lt;input id=&quot;inputdomain&quot; type=&quot;text&quot; name=&quot;domain&quot; class=&quot;wikialiasinput&quot;/&gt;
181:         &lt;input type=&quot;submit&quot; class=&quot;button&quot; value=&quot;$services.localization.render('create')&quot;/&gt;
182:       &lt;/fieldset&gt;
183:     &lt;/form&gt;
184:   {{/html}}
185:   
186: #end
187: {{/velocity}}
</textarea>
</div>

    <div class="clearfloats"></div>
  </div>    </div>      </div>
  </div>
<div class="clearfloats"></div>
  </div></div><div id="footerglobal" class="layoutsection">
<div class="minwidth"></div>
<hr/>
  <div id="xwikilicence">(c) 2026,  by bytebang e.U. - <a href="http://www.bytebang.at/About+us/Impressum">Impressum</a> - <a href="http://www.bytebang.at/About+us/PrivacyAndTermsOfUsage">Datenschutz / Nutzungsbedingungen</a></div>
          <div id="xwikiplatformversion">-</div>
<hr/>
</div>

</div></div></body>
</html>


