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
Hide line numbers
1: #set($Appmanager = $services.applicationmanager) 2: #set($Exception = $Appmanager.DefaultException) 3: ## 4: #set($object = $doc.getObject("XAppClasses.XWikiApplicationClass")) 5: ## 6: #if($object) 7: #set($class = $object.xWikiClass) 8: #set($appname = $doc.getValue("appname", $object)) 9: #end 10: ## 11: ############################################################################# 12: ## 13: #if($appname && $appname.length() > 0) 14: ## 15: #set($app = $Appmanager.getApplicationDocument($doc.getValue("appname", $object))) 16: ## 17: #if($xcontext.action == "view") 18: 1 Application \"#if($app.appprettyname && $app.appprettyname.trim() != "")$app.appprettyname#else$app.appname#end\" 19: #end 20: ## 21: <dl> 22: #foreach($prop in $class.properties) 23: <dt> ${prop.prettyName} </dt> 24: #if($xcontext.action == "view" && $prop.name == "documents") 25: <dd> 26: #foreach($docfullname in $app.getDocumentsNames(false, false)) 27: [$docfullname>$docfullname] 28: #end 29: </dd> 30: #elseif($xcontext.action == "view" && $prop.name == "docstoinclude") 31: <dd> 32: #foreach($docfullname in $app.getDocsNameToInclude(false)) 33: [$docfullname>$docfullname] 34: #end 35: </dd> 36: #elseif($xcontext.action == "view" && $prop.name == "docstolink") 37: <dd> 38: #foreach($docfullname in $app.getDocsNameToLink(false)) 39: [$docfullname>$docfullname] 40: #end 41: </dd> 42: #elseif($xcontext.action == "view" && $prop.name == "translationdocs") 43: <dd> 44: #foreach($docfullname in $app.getTranslationDocs()) 45: [$docfullname>$docfullname] 46: #end 47: </dd> 48: #elseif($xcontext.action == "view" && $prop.name == "applications") 49: <dd> 50: #foreach($appname in $app.getApplications()) 51: [$appname>$Appmanager.getApplicationDocument($appname).fullName] 52: #end 53: </dd> 54: #else 55: <dd>$doc.display($prop.getName())</dd> 56: #end 57: #end 58: </dl> 59: #else 60: 1 Document \"$doc.name\" 61: #end