Changes for page Data Model

Last modified by Vincent Massol on 2023/12/01

<
From version < 16.5 >
edited by Vincent Massol
on 2009/08/13
To version < 17.1 >
edited by Silvia Macovei
on 2010/02/25
>
Change comment: Document converted from syntax xwiki/1.0 to syntax xwiki/2.0

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.VincentMassol
1 +XWiki.SilviaRusu
Syntax
... ... @@ -1,1 +1,1 @@
1 -XWiki 1.0
1 +XWiki 2.0
Content
... ... @@ -1,19 +1,21 @@
1 -1 XWiki Data Model
1 += XWiki Data Model =
2 2  
3 3  XWiki is not just your average wiki engine; it exposes a flexible data model that can be leveraged at the presentation level. Combined with its powerful presentation level scripting capabilities, XWiki's data model can help you build simple to complex Web applications with little or no need to access the XWiki core. In other words, you can build custom applications through the XWiki web interface without having to compile, package, and deploy software components.
4 4  
5 5  This area explains XWiki's data model of Classes, Properties, and Objects for those users who want to build applications primarily at the presentation level. It will help you understand how you can achieve significant features by programming at this level alone.
6 6  
7 -For information about XWiki's underlying database schema (tables and fields), see: [XWiki's Database Schema>DevGuide.DatabaseSchema].
8 -1.1 XWiki Classes, Objects, and Properties
7 +For information about XWiki's underlying database schema (tables and fields), see: [[XWiki's Database Schema>>DevGuide.DatabaseSchema]].
9 9  
9 +== XWiki Classes, Objects, and Properties ==
10 +
10 10  If you are familiar with object oriented programming, you understand the concept of classes, properties, and objects. The presentation level data model that XWiki exposes is much the same.
11 11  
13 +{{html clean="false" wiki="true"}}
12 12  <dl>
13 -<dt>*Classes*</dt>
15 +<dt>**Classes**</dt>
14 14  <dd>An XWiki class is like a template that defines a unique type of object. It defines what properties an object can have. When you define a custom class, you are saying that your application may need to create one or many objects (instances) of that class. The class itself is like a cookie cutter and the objects are unique instances of that class. So, in this analogy, if the class is the cookie cutter, the objects are the cookies (and we are talking about real edible cookies in this analogy; not Web cookies).</dd>
15 15  <dd>A class is attached to a page. There can be at most one class per page. The class name is the name of the document it is attached to.</dd>
16 -<dt>*Properties*</dt>
18 +<dt>**Properties**</dt>
17 17  <dd>Properties are the characteristics that an object can have. In a class definition, the properties define the data fields that each unique instance of the class can have values for.</dd>
18 18  <dd>
19 19  XWiki currently supports the following kinds of properties (datatypes) which will be explained later in greater detail:
... ... @@ -28,17 +28,17 @@
28 28  * Date
29 29  * User List
30 30  * Group List
33 +<p/>
31 31  </dd>
32 -<dt>*Objects*</dt>
35 +<dt>**Objects**</dt>
33 33  <dd>Objects are unique instances of a class with unique values defined for each of the properties that make up the class.</dd>
34 34  <dd>An object is attached to a specific page. Each page can have multiple objects.</dd>
35 -<dd>Using objects, you insert *structured* information in the wiki, while in a traditional wiki you can only enter unstructured information (plain text). This is one of the reasons why XWiki is a second generation wiki.</dd>
38 +<dd>Using objects, you insert **structured** information in the wiki, while in a traditional wiki you can only enter unstructured information (plain text). This is one of the reasons why XWiki is a second generation wiki.</dd>
36 36  </dl>
40 +{{/html}}
37 37  
38 -~~In summary~~:
42 +//In summary//:
39 39  
40 40  * Classes define an object type and the properties that are possible for an object of that type to have.
41 41  * Properties define the types of data that unique objects can have. The property types (datatypes) are defined for the class, but the actual values for the properties are defined for the objects when the objects are instantiated from the class.
42 42  * Objects are unique instances of a class with unique values for all of the properties that the class definition allows the objects to have.
43 -
44 -
XWiki.XWikiComments[1]
Comment
... ... @@ -1,3 +1,3 @@
1 -I see above all the properties/datatypes that are supported by XWiki, however where can we find more documentation on these. It is mentioned that "Xwiki supports the following kinds of properties (datatypes) which will be explained later in greater detail."
1 +I see above all the properties/datatypes that are supported by XWiki, however where can we find more documentation on these. It is mentioned that "Xwiki supports the following kinds of properties (datatypes) which will be explained later in greater detail."
2 2  
3 3  Where exactly can we find this more in depth look at the datatypes, their respective options and how to configure them?
XWiki.XWikiComments[2]
Comment
... ... @@ -1,3 +1,3 @@
1 1  Hi Brian,
2 2  
3 -The best way to ask question is through our [mailing list/forum>dev:Community.MailingLists]
3 +The best way to ask question is through our [[mailing list/forum>>dev:Community.MailingLists]]

Get Connected