Show last authors
1 {{velocity}}
2 #set($versionStable = "9.5.1")
3 #set($versionDev = "9.6-rc-1")
4 #set($versionOldStable = "8.4.5")
5 {{/velocity}}
6
7 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).
8
9 {{info}}
10 As users of the XWiki API you need to be aware of some important points:
11 * 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.
12 * 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.
13 {{/info}}
14
15 == Scripting Reference Documentation ==
16
17 * 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).
18 * For XWiki versions <= 5.0.x you can browse the old [[Scripting Reference Documentation>>SRD.Navigation||queryString="xpage=embed"]] (a.k.a SRD).
19
20 == How to find a class ==
21
22 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.
23
24 == JavaDoc ==
25
26 XWiki is made of various extensions/modules and each module offers API for both developers coding in Java and for Scripts written in wiki pages. In the future our goal is to have Javadoc links directly from each extension page located in the [[Extensions Wiki>>extensions:Main.WebHome]].
27
28 {{velocity}}
29 Right now we're providing all Javadocs for all modules:
30 * [[Javadoc for XWiki ${versionStable} (stable)>>Javadoc||queryString="versionId=$versionStable&versionName=stable"]]
31 #if ($versionDev)
32 * [[Javadoc for XWiki ${versionDev} (dev)>>Javadoc||queryString="versionId=$versionDev&versionName=dev"]]
33 #end
34 #if ($versionOldStable)
35 * [[Javadoc for XWiki ${versionOldStable} (LTS)>>Javadoc||queryString="versionId=$versionOldStable&versionName='LTS'"]]
36 #end
37 * (((
38 {{html}}
39 <form action="$xwiki.getURL('Javadoc')" class="xformInline">
40 <label for="javadocVersionId">Older version:</label>
41 <input id="javadocVersionId" type="text" size="30" name="versionId" class="withTip" value="e.g., 3.2.1, 4.1-milestone-1, 5.1-rc-1"/>
42 <input type="hidden" name="versionName" value="LTS"/>
43 <input class="button" type="submit" value="View"/>
44 </form>
45 {{/html}}
46 )))
47 {{/velocity}}
48
49 The [[full Javadoc>>http://maven.xwiki.org/site/docs/]] is also available ({{info}}but only for old versions, we need to fix this{{/info}}).
50
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