Wiki source code of XWiki API Reference

Version 434.1 by Thomas Mortagne on 2014/09/25

Hide last authors
Vincent Massol 346.1 1 {{velocity}}
Eduard Moraru 432.1 2 #set($versionStable = "6.2")
Thomas Mortagne 319.1 3 #set($nameStable = $versionStable)
Eduard Moraru 432.1 4 ##set($versionDev = "6.2-rc-1")
5 ##set($nameDev = "6.2 Release Candidate 1")
Thomas Mortagne 428.1 6 #set($versionOldStable = "5.4.5")
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
Ludovic Dubost 381.1 27 You can now browse the XWiki APIs using the **[[Scripting Reference Documentation>>SRD.Navigation||queryString="xpage=embed"]]**.
28
Thomas Mortagne 419.1 29 == How to find a class ==
30
Thomas Mortagne 434.1 31 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 32
Ludovic Dubost 371.1 33 == Other documentations ==
34
Sergiu Dumitriu 324.3 35 The latest scripting API documentation is available as JavaDoc:
Silvia Macovei 239.1 36
Vincent Massol 346.1 37 {{velocity}}
38 * [[Javadoc for XWiki Platform Core - $nameStable>>#coreJavadocUrl($versionStable)]] (stable)
Thomas Mortagne 305.1 39 #if ($versionDev)
Vincent Massol 346.1 40 * [[Javadoc for XWiki Platform Core - $nameDev>>#coreJavadocUrl($versionDev)]] (dev)
Thomas Mortagne 305.1 41 #end
42 #if ($versionOldStable)
Eduard Moraru 430.1 43 * [[Javadoc for XWiki Platform Core - $nameOldStable>>#coreJavadocUrl($versionOldStable)]] (super stable)#end
Vincent Massol 346.1 44 {{/velocity}}
Thomas Mortagne 420.1 45
Manuel Smeria 376.2 46 * [[Full Javadoc>>http://maven.xwiki.org/site/docs/]]
Thomas Mortagne 189.1 47
Vincent Massol 348.1 48 You might also be interested in the [[Rendering Engine API JavaDoc>>rendering:Main.JavaDoc]].
Jerome 104.2 49
Manuel Smeria 376.2 50 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