Wiki source code of XWiki API Reference

Version 455.3 by Vincent Massol on 2015/03/16

Hide last authors
Vincent Massol 346.1 1 {{velocity}}
Guillaume Delhumeau 453.1 2 #set($versionStable = "6.4.2")
Thomas Mortagne 319.1 3 #set($nameStable = $versionStable)
Marius Dumitru Florea 454.1 4 #set($versionDev = "7.0-milestone-2")
5 #set($nameDev = "7.0 Milestone 2")
Vincent Massol 452.1 6 ##set($versionOldStable = "5.4.7")
7 ##set($nameOldStable = $versionOldStable)
Thomas Mortagne 319.1 8
Thomas Mortagne 305.1 9 #macro(coreJavadocUrl $version)
Caleb James DeLisle 339.6 10 http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/org/xwiki/platform/xwiki-platform-oldcore/${version}/xwiki-platform-oldcore-${version}-javadoc.jar/!/index.html
11 #end
Caleb James DeLisle 339.7 12 #macro(renderingJavadocUrl $version)
13 http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/org/xwiki/rendering/xwiki-rendering-api/${version}/xwiki-rendering-api-${version}-javadoc.jar/!/index.html
14 #end
Vincent Massol 346.1 15 {{/velocity}}
Thomas Mortagne 305.1 16
Vincent Massol 346.1 17 XWiki's APIs are the methods that the XWiki development team consider safe for you to use (i.e. for which backward compatibility is guaranteed). They can be called from Java or directly from your wiki pages [[using a scripting language>>DevGuide.Scripting]] (Velocity, Groovy, Python, Ruby, etc).
18
Vincent Massol 390.1 19 {{info}}
20 As users of the XWiki API you need to be aware of some important points:
21 * You should never use a class having ##internal## in its package. It means this class is not a public API and XWiki developers can change it at any time. If you depend on such a class you're on your own and the XWiki Development Team doesn't guarantee its stability.
22 * You should pay attention to the ##@Unstable## annotation. When you see code marked with this annotation it means it's a new public API that it still considered unstable and that can change at any time too. See [[Unstable Annotation>>dev:Community.DevelopmentPractices||anchor="H40UnstableAnnotation"]] for more details.
23 {{/info}}
24
Ludovic Dubost 381.1 25 == Scripting Reference Documentation ==
Ludovic Dubost 371.1 26
Vincent Massol 455.1 27 * For XWiki versions >= 6.2.5+ you should install the [[Scripting Documentation Application>>extensions:Extension.Scripting Documentation Application]] in your wiki. You can [[browse a version of it installed on xwiki.org>>ScriptingDocumentation.WebHome]] (but beware, it'll show the Scripting API available on the XWiki version installed for xwiki.org, which may differ from your locally installed XWiki version).
Vincent Massol 455.2 28 * For XWiki versions <= 5.0.x you can browse the old [[Scripting Reference Documentation>>SRD.Navigation||queryString="xpage=embed"]] (a.k.a SRD).
Ludovic Dubost 381.1 29
Thomas Mortagne 419.1 30 == How to find a class ==
31
Thomas Mortagne 446.1 32 You can get the maven module where to find a Java class by using [[XWiki Nexus Search page>>http://nexus.xwiki.org/nexus/index.html#nexus-search;classname~~]]. Put the complete class name and you will get all modules containing it. Nexus also allows you to see what's in those artifacts and read the javadoc.
Thomas Mortagne 419.1 33
Ludovic Dubost 371.1 34 == Other documentations ==
35
Vincent Massol 455.3 36 The latest API documentation is available as JavaDoc:
Silvia Macovei 239.1 37
Vincent Massol 346.1 38 {{velocity}}
39 * [[Javadoc for XWiki Platform Core - $nameStable>>#coreJavadocUrl($versionStable)]] (stable)
Thomas Mortagne 305.1 40 #if ($versionDev)
Vincent Massol 346.1 41 * [[Javadoc for XWiki Platform Core - $nameDev>>#coreJavadocUrl($versionDev)]] (dev)
Thomas Mortagne 305.1 42 #end
43 #if ($versionOldStable)
Eduard Moraru 430.1 44 * [[Javadoc for XWiki Platform Core - $nameOldStable>>#coreJavadocUrl($versionOldStable)]] (super stable)#end
Vincent Massol 346.1 45 {{/velocity}}
Thomas Mortagne 420.1 46
Manuel Smeria 376.2 47 * [[Full Javadoc>>http://maven.xwiki.org/site/docs/]]
Thomas Mortagne 189.1 48
Vincent Massol 348.1 49 You might also be interested in the [[Rendering Engine API JavaDoc>>rendering:Main.JavaDoc]].
Jerome 104.2 50
Manuel Smeria 376.2 51 Older Javadocs of XWiki can be found in our [[Maven Release repository>>http://maven.xwiki.org/releases/]]. For example for XWiki Platform Core Javadocs, check the files suffixed by ##javadoc## for the version you wish under [[this directory>>http://maven.xwiki.org/releases/org/xwiki/platform/xwiki-platform-oldcore/]].

Get Connected