Introduction
Web2.0 XML storage modules
mainly provide the user customized workplace layout and runtime widget
instance data storage capabilities. This data is organized in .xml format data on the server side, then this data can
be stored into many kinds of storage medium such as files on hard
disk or date base. When the user log in the system again, the user environment which
saved before log off last time can be recovered by regaining the storage
data which stored on the server side.
The part data mainly can be separated into two parts
for both two layout style, layout data and widget instance data. Following will give you a bribe introduction.
- For iPanel:
- Layout.xml: Save the iPanel layout information on client side runtime, such as the tabs, columns, opened windows.
- WidgetInstance.xml: Save the widget runtime instance parameters
of each widget in the widget window. These parameters contain the
widget attributes, customized attributes, and some instance attributes.
- For iWindow:
- Layout.xml: Like the iPanel layout xml, save the layout information
of client side runtime. But the .xml structure has much difference between this
two layout style, due to the different look and feel between this two layout style.
- WidgetInstance.xml: Like the iPanel widgetInstance xml, it save
the widget runtime instance parameters of each widget in the widget
window.
XML structure
- For iPanel:
- Layout.xml:
Table 1. Layout.xml tag
descriptionXML Tag |
Parent Tag |
isUnique |
Description |
PageFormatter |
|
Yes |
Root element of layout xml. |
Page |
PageFormatter |
Yes |
Root element of iPanel page, each page may contain many tabs. Currently there will be only one page in one layout xml. |
Tab |
Page |
No |
Represent one tab in the iPanel layout. |
Column |
Tab |
No |
Child of tab, represent one column in the iPanel layout. |
Row |
Column |
No |
Child of column, represent one row in the column. Currently there will be only one row in each column. |
- WidgetInstance.xml
Table 2. WidgetInstance.xml tag descriptionXML Tag |
Parent Tag |
isUnique |
Description |
Portal |
|
Yes |
Root element of widget instance xml. |
Portlet |
Portal |
No |
Represent one service instance on the client side. |
Widget |
Portlet |
No |
Represent the widget which is referred by the
service. |
Attribute |
Widget |
No |
Represent runtime parameter of the widget instance
in the client side. |
- For iWindow:
- Layout.xml:
Table 3. Layout.xml tag
descriptionXML Tag |
Parent Tag |
isUnique |
Description |
Desktop |
|
Yes |
Root element of layout xml. |
WindowGroup |
Desktop |
Yes |
Parent of all windows which contains all the
windows on the iWindow layout. |
Window |
WindowGroup |
No |
Represent a window layout information on the desktop. |
IconGroup |
Desktop |
Yes |
Parent of all icons which contains all the icons
on the iWindow layout. |
Icon |
IconGroup |
No |
Represent a icon layout information on the desktop. |
Settings |
Desktop |
Yes |
Save some desktop local setting. |
WallPaper |
Settings |
Yes |
Save the wall paper picture location. |
Theme |
Settings |
Yes |
Save the current used theme. |
- WidgetInstance.xml
Table 4. XML Tag |
Parent Tag |
isUnique |
Description |
Portal |
|
Yes |
Root element of widget instance xml |
Portlet |
Portal |
No |
Represent one service instance on the client side |
Widget |
Portlet |
No |
Represent the widget which is referred by the
service |
Attribute |
Widget |
No |
Represent runtime parameter of the widget instance
in the client side. |