General Actions:
Log-in
Register
Wiki:
Main wiki
▼
:
Document Index
»
Space:
XAppSheets
▼
:
Document Index
»
Page:
XWikiApplicationClassSheet
Search
default
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Main wiki
»
XWiki Space
»
Data types
»
XWikiApplicationClass
»
Application \"$app.appname\"
Wiki source code of
Application \"$app.appname\"
Last modified by
Administrator
on 2012/03/21 17:41
Content
·
Comments
(0)
·
Annotations
(0)
·
Attachments
(0)
·
History
·
Information
Show line numbers
#set($Appmanager = $services.applicationmanager) #set($Exception = $Appmanager.DefaultException) ## #set($object = $doc.getObject("XAppClasses.XWikiApplicationClass")) ## #if($object) #set($class = $object.xWikiClass) #set($appname = $doc.getValue("appname", $object)) #end ## ############################################################################# ## #if($appname && $appname.length() > 0) ## #set($app = $Appmanager.getApplicationDocument($doc.getValue("appname", $object))) ## #if($xcontext.action == "view") 1 Application \"#if($app.appprettyname && $app.appprettyname.trim() != "")$app.appprettyname#else$app.appname#end\" #end ## <dl> #foreach($prop in $class.properties) <dt> ${prop.prettyName} </dt> #if($xcontext.action == "view" && $prop.name == "documents") <dd> #foreach($docfullname in $app.getDocumentsNames(false, false)) [$docfullname>$docfullname] #end </dd> #elseif($xcontext.action == "view" && $prop.name == "docstoinclude") <dd> #foreach($docfullname in $app.getDocsNameToInclude(false)) [$docfullname>$docfullname] #end </dd> #elseif($xcontext.action == "view" && $prop.name == "docstolink") <dd> #foreach($docfullname in $app.getDocsNameToLink(false)) [$docfullname>$docfullname] #end </dd> #elseif($xcontext.action == "view" && $prop.name == "translationdocs") <dd> #foreach($docfullname in $app.getTranslationDocs()) [$docfullname>$docfullname] #end </dd> #elseif($xcontext.action == "view" && $prop.name == "applications") <dd> #foreach($appname in $app.getApplications()) [$appname>$Appmanager.getApplicationDocument($appname).fullName] #end </dd> #else <dd>$doc.display($prop.getName())</dd> #end #end </dl> #else 1 Document \"$doc.name\" #end