Wiki source code of XWiki Architecture

Version 7.4 by Denis Gervalle on 2015/12/11

Show last authors
1 {{box cssClass="floatinginfobox" title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
4
5 = What is XWiki? =
6
7 XWiki is a [[Second Generation Wiki>>platform:Main.SecondGenerationWiki]] and as such it's a runtime platform for developing collaborative web applications. It's very versatile and you can modify any part of the XWiki runtime to match your requirements.
8
9 = General Architecture =
10
11 Architecture Concepts:
12 * XWiki is a webapp that is deployed into a [[Servlet Container>>http://en.wikipedia.org/wiki/Web_container]].
13 * XWiki is made of [[Extensions>>extensions:Extension.WebHome]].
14 * Some Extensions are Core Extensions and they are required for XWiki to execute properly.
15 * Other Extensions can be installed into a running XWiki installation to provide additional features.
16 * The [[Extension Manager>>extensions:Extension.Extension Manager Application]] is a Core Extension that allows installing, upgrading or removing other Extensions.
17 * An XWiki runtime is thus made of Core Extensions + non-Core ones.
18 * A set of Extensions working together to achieve a goal is called a Flavor.
19 * XWiki Enterprise is a generic Flavor that allow users to collaboratively author content. In the near future, several other Flavors will be available.
20 * There are 2 types of Extensions (and it's possible to extends Extension Manager to support other kinds):
21 ** Extensions containing wiki pages. They are packaged as XAR files (a ZIP file with some metadata).
22 ** Extensions containing Java classes. They are packaged as JAR files.
23 * An Extension can depend on other Extensions. A Flavor is itself a top level Extension that depends on several other Extensions.
24
25 The full list of available Extensions can be seen on the [[Extensions Wiki>>extensions:Extension.WebHome]].
26
27 = Integrating XWiki =
28
29 There are two options for integrating XWiki into your environment:
30 * Accessing your environment (other software for example) from XWiki and displaying information inside XWiki's UI. This can be achieved by [[scripting>>platform:DevGuide.Scripting]] inside Wiki pages or by developing Java code. See also the following [[Integration Extensions>>extensions:Main.Tags||queryString="do=viewTag&tag=integration"]].
31 * Access XWiki's content (wiki pages, user data, etc) from other software by accessing XWiki remotely using [[REST APIs>>platform:Features.XWikiRESTfulAPI]] (It's also possible to use [[XMLRPC>>extensions:Extension.XML-RPC Integration]] or {{scm path="xwiki-platform-core/xwiki-platform-gwt/xwiki-platform-gwt-api/src/main/java/com/xpn/xwiki/gwt/api/server/XWikiServiceImpl.java"}}GWT{{/scm}}).
32
33 = Extending XWiki =
34
35 XWiki being a development platform for web applications there are plenty of ways to extend XWiki. The most obvious one is to [[look for an Extension and install it>>extensions:Extension.WebHome]].
36
37 However if there's no Extension for what you wish to achieve, here are main options:
38 * Use [[scripts>>platform:DevGuide.Scripting]] in wiki pages and access all APIs made available by other Extensions. This allows you to develop Applications in your wiki. Make sure to check the [[FAQ Tutorial>>platform:DevGuide.FAQTutorial]] which shows how to do this.
39 * Develop some Java code to make available [[Java APIs>>platform:DevGuide.API]] which can then be accessed from wiki pages using Scripting. [[XWiki uses a Component-approach to develop Java code>>platform:DevGuide.WritingComponents]]. It's also possible to override any existing XWiki Component with your own implementation, thus changing the default behavior of whatever portion of XWiki that you wish.
40 * [[Create some Macros>>platform:DevGuide.WritingMacros]] to use in your wiki pages.
41 * [[Create new Skins>>platform:DevGuide.Skins]] or modify existing one to match your needs.
42 * [[Create or modify Skin Themes>>extensions:Extension.Flamingo Theme Application]].
43 * Use [[Skin Extensions>>platform:DevGuide.SkinExtensionsTutorial]] to customize the CSS or JavaScript used to display wiki pages.
44 * Configure what is displayed in various locations of the screen by contributing content for existing [[UI Extension Points>>platform:ExtensionPoint.WebHome]].
45
46 Check the [[Developer Guide>>platform:DevGuide.WebHome]] to learn about all this and more.

Get Connected