forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathportlet-app_1_0.xsd
632 lines (630 loc) · 22 KB
/
portlet-app_1_0.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:portlet="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0" xml:lang="en">
<annotation>
<documentation>
This is the XML Schema for the Portlet 1.0 deployment descriptor.
</documentation>
</annotation>
<annotation>
<documentation>
The following conventions apply to all J2EE
deployment descriptor elements unless indicated otherwise.
- In elements that specify a pathname to a file within the
same JAR file, relative filenames (i.e., those not
starting with "/") are considered relative to the root of
the JAR file's namespace. Absolute filenames (i.e., those
starting with "/") also specify names in the root of the
JAR file's namespace. In general, relative names are
preferred. The exception is .war files where absolute
names are preferred for consistency with the Servlet API.
</documentation>
</annotation>
<!-- *********************************************************** -->
<import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
<element name="portlet-app" type="portlet:portlet-appType">
<annotation>
<documentation>
The portlet-app element is the root of the deployment descriptor
for a portlet application. This element has a required attribute version
to specify to which version of the schema the deployment descriptor
conforms.
</documentation>
</annotation>
<unique name="portlet-name-uniqueness">
<annotation>
<documentation>
The portlet element contains the name of a portlet.
This name must be unique within the portlet application.
</documentation>
</annotation>
<selector xpath="portlet:portlet"/>
<field xpath="portlet:portlet-name"/>
</unique>
<unique name="custom-portlet-mode-uniqueness">
<annotation>
<documentation>
The custom-portlet-mode element contains the portlet-mode.
This portlet mode must be unique within the portlet application.
</documentation>
</annotation>
<selector xpath="portlet:custom-portlet-mode"/>
<field xpath="portlet:portlet-mode"/>
</unique>
<unique name="custom-window-state-uniqueness">
<annotation>
<documentation>
The custom-window-state element contains the window-state.
This window state must be unique within the portlet application.
</documentation>
</annotation>
<selector xpath="portlet:custom-window-state"/>
<field xpath="portlet:window-state"/>
</unique>
<unique name="user-attribute-name-uniqueness">
<annotation>
<documentation>
The user-attribute element contains the name the attribute.
This name must be unique within the portlet application.
</documentation>
</annotation>
<selector xpath="portlet:user-attribute"/>
<field xpath="portlet:name"/>
</unique>
</element>
<complexType name="portlet-appType">
<sequence>
<element name="portlet" type="portlet:portletType" minOccurs="0" maxOccurs="unbounded">
<unique name="init-param-name-uniqueness">
<annotation>
<documentation>
The init-param element contains the name the attribute.
This name must be unique within the portlet.
</documentation>
</annotation>
<selector xpath="portlet:init-param"/>
<field xpath="portlet:name"/>
</unique>
<unique name="supports-mime-type-uniqueness">
<annotation>
<documentation>
The supports element contains the supported mime-type.
This mime type must be unique within the portlet.
</documentation>
</annotation>
<selector xpath="portlet:supports"/>
<field xpath="mime-type"/>
</unique>
<unique name="preference-name-uniqueness">
<annotation>
<documentation>
The preference element contains the name the preference.
This name must be unique within the portlet.
</documentation>
</annotation>
<selector xpath="portlet:portlet-preferences/portlet:preference"/>
<field xpath="portlet:name"/>
</unique>
<unique name="security-role-ref-name-uniqueness">
<annotation>
<documentation>
The security-role-ref element contains the role-name.
This role name must be unique within the portlet.
</documentation>
</annotation>
<selector xpath="portlet:security-role-ref"/>
<field xpath="portlet:role-name"/>
</unique>
</element>
<element name="custom-portlet-mode" type="portlet:custom-portlet-modeType" minOccurs="0" maxOccurs="unbounded"/>
<element name="custom-window-state" type="portlet:custom-window-stateType" minOccurs="0" maxOccurs="unbounded"/>
<element name="user-attribute" type="portlet:user-attributeType" minOccurs="0" maxOccurs="unbounded"/>
<element name="security-constraint" type="portlet:security-constraintType" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="version" type="string" use="required"/>
<attribute name="id" type="string" use="optional"/>
</complexType>
<complexType name="custom-portlet-modeType">
<annotation>
<documentation>
A custom portlet mode that one or more portlets in
this portlet application supports.
Used in: portlet-app
</documentation>
</annotation>
<sequence>
<element name="description" type="portlet:descriptionType" minOccurs="0" maxOccurs="unbounded"/>
<element name="portlet-mode" type="portlet:portlet-modeType"/>
</sequence>
<attribute name="id" type="string" use="optional"/>
</complexType>
<complexType name="custom-window-stateType">
<annotation>
<documentation>
A custom window state that one or more portlets in this
portlet application supports.
Used in: portlet-app
</documentation>
</annotation>
<sequence>
<element name="description" type="portlet:descriptionType" minOccurs="0" maxOccurs="unbounded"/>
<element name="window-state" type="portlet:window-stateType"/>
</sequence>
<attribute name="id" type="string" use="optional"/>
</complexType>
<complexType name="expiration-cacheType">
<annotation>
<documentation>
Expriation-cache defines expiration-based caching for this
portlet. The parameter indicates
the time in seconds after which the portlet output expires.
-1 indicates that the output never expires.
Used in: portlet
</documentation>
</annotation>
<simpleContent>
<extension base="int"/>
</simpleContent>
</complexType>
<complexType name="init-paramType">
<annotation>
<documentation>
The init-param element contains a name/value pair as an
initialization param of the portlet
Used in:portlet
</documentation>
</annotation>
<sequence>
<element name="description" type="portlet:descriptionType" minOccurs="0" maxOccurs="unbounded"/>
<element name="name" type="portlet:nameType"/>
<element name="value" type="portlet:valueType"/>
</sequence>
<attribute name="id" type="string" use="optional"/>
</complexType>
<complexType name="keywordsType">
<annotation>
<documentation>
Locale specific keywords associated with this portlet.
The kewords are separated by commas.
Used in: portlet-info
</documentation>
</annotation>
<simpleContent>
<extension base="string"/>
</simpleContent>
</complexType>
<complexType name="mime-typeType">
<annotation>
<documentation>
MIME type name, e.g. "text/html".
The MIME type may also contain the wildcard
character '*', like "text/*" or "*/*".
Used in: supports
</documentation>
</annotation>
<simpleContent>
<extension base="string"/>
</simpleContent>
</complexType>
<complexType name="nameType">
<annotation>
<documentation>
The name element contains the name of a parameter.
Used in: init-param, ...
</documentation>
</annotation>
<simpleContent>
<extension base="string"/>
</simpleContent>
</complexType>
<complexType name="portletType">
<annotation>
<documentation>
The portlet element contains the declarative data of a portlet.
Used in: portlet-app
</documentation>
</annotation>
<sequence>
<element name="description" type="portlet:descriptionType" minOccurs="0" maxOccurs="unbounded"/>
<element name="portlet-name" type="portlet:portlet-nameType"/>
<element name="display-name" type="portlet:display-nameType" minOccurs="0" maxOccurs="unbounded"/>
<element name="portlet-class" type="portlet:portlet-classType"/>
<element name="init-param" type="portlet:init-paramType" minOccurs="0" maxOccurs="unbounded"/>
<element name="expiration-cache" type="portlet:expiration-cacheType" minOccurs="0"/>
<element name="supports" type="portlet:supportsType" maxOccurs="unbounded"/>
<element name="supported-locale" type="portlet:supported-localeType" minOccurs="0" maxOccurs="unbounded"/>
<choice>
<sequence>
<element name="resource-bundle" type="portlet:resource-bundleType"/>
<element name="portlet-info" type="portlet:portlet-infoType" minOccurs="0"/>
</sequence>
<element name="portlet-info" type="portlet:portlet-infoType"/>
</choice>
<element name="portlet-preferences" type="portlet:portlet-preferencesType" minOccurs="0"/>
<element name="security-role-ref" type="portlet:security-role-refType" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="id" type="string" use="optional"/>
</complexType>
<simpleType name="portlet-classType">
<annotation>
<documentation>
The portlet-class element contains the fully
qualified class name of the portlet.
Used in: portlet
</documentation>
</annotation>
<restriction base="portlet:fully-qualified-classType"/>
</simpleType>
<complexType name="portlet-collectionType">
<annotation>
<documentation>
The portlet-collectionType is used to identify a subset
of portlets within a portlet application to which a
security constraint applies.
Used in: security-constraint
</documentation>
</annotation>
<sequence>
<element name="portlet-name" type="portlet:portlet-nameType" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="portlet-infoType">
<sequence>
<element name="title" type="portlet:titleType"/>
<element name="short-title" type="portlet:short-titleType" minOccurs="0"/>
<element name="keywords" type="portlet:keywordsType" minOccurs="0"/>
</sequence>
<attribute name="id" type="string" use="optional"/>
</complexType>
<complexType name="portlet-modeType">
<annotation>
<documentation>
Portlet modes. The specification pre-defines the following values
as valid portlet mode constants:
"edit", "help", "view".
Portlet mode names are not case sensitive.
Used in: custom-portlet-mode, supports
</documentation>
</annotation>
<simpleContent>
<extension base="string"/>
</simpleContent>
</complexType>
<complexType name="portlet-nameType">
<annotation>
<documentation>
The portlet-name element contains the canonical name of the
portlet. Each portlet name is unique within the portlet
application.
Used in: portlet, portlet-mapping
</documentation>
</annotation>
<simpleContent>
<extension base="string"/>
</simpleContent>
</complexType>
<complexType name="portlet-preferencesType">
<annotation>
<documentation>
Portlet persistent preference store.
Used in: portlet
</documentation>
</annotation>
<sequence>
<element name="preference" type="portlet:preferenceType" minOccurs="0" maxOccurs="unbounded"/>
<element name="preferences-validator" type="portlet:preferences-validatorType" minOccurs="0"/>
</sequence>
<attribute name="id" type="string" use="optional"/>
</complexType>
<complexType name="preferenceType">
<annotation>
<documentation>
Persistent preference values that may be used for customization
and personalization by the portlet.
Used in: portlet-preferences
</documentation>
</annotation>
<sequence>
<element name="name" type="portlet:nameType"/>
<element name="value" type="portlet:valueType" minOccurs="0" maxOccurs="unbounded"/>
<element name="read-only" type="portlet:read-onlyType" minOccurs="0"/>
</sequence>
<attribute name="id" type="string" use="optional"/>
</complexType>
<simpleType name="preferences-validatorType">
<annotation>
<documentation>
The class specified under preferences-validator implements
the PreferencesValidator interface to validate the
preferences settings.
Used in: portlet-preferences
</documentation>
</annotation>
<restriction base="portlet:fully-qualified-classType"/>
</simpleType>
<simpleType name="read-onlyType">
<annotation>
<documentation>
read-only indicates that a setting cannot
be changed in any of the standard portlet modes
("view","edit" or "help").
Per default all preferences are modifiable.
Valid values are:
- true for read-only
- false for modifiable
Used in: preferences
</documentation>
</annotation>
<restriction base="portlet:string">
<enumeration value="true"/>
<enumeration value="false"/>
</restriction>
</simpleType>
<complexType name="resource-bundleType">
<annotation>
<documentation>
Filename of the resource bundle containing the language specific
portlet informations in different languages.
Used in: portlet-info
</documentation>
</annotation>
<simpleContent>
<extension base="string"/>
</simpleContent>
</complexType>
<complexType name="role-linkType">
<annotation>
<documentation>
The role-link element is a reference to a defined security role.
The role-link element must contain the name of one of the
security roles defined in the security-role elements.
Used in: security-role-ref
</documentation>
</annotation>
<simpleContent>
<extension base="string"/>
</simpleContent>
</complexType>
<complexType name="security-constraintType">
<annotation>
<documentation>
The security-constraintType is used to associate
intended security constraints with one or more portlets.
Used in: portlet-app
</documentation>
</annotation>
<sequence>
<element name="display-name" type="portlet:display-nameType" minOccurs="0" maxOccurs="unbounded"/>
<element name="portlet-collection" type="portlet:portlet-collectionType"/>
<element name="user-data-constraint" type="portlet:user-data-constraintType"/>
</sequence>
<attribute name="id" type="string" use="optional"/>
</complexType>
<complexType name="security-role-refType">
<annotation>
<documentation>
The security-role-ref element contains the declaration of a
security role reference in the code of the web application. The
declaration consists of an optional description, the security
role name used in the code, and an optional link to a security
role. If the security role is not specified, the Deployer must
choose an appropriate security role.
The value of the role name element must be the String used
as the parameter to the
EJBContext.isCallerInRole(String roleName) method
or the HttpServletRequest.isUserInRole(String role) method.
Used in: portlet
</documentation>
</annotation>
<sequence>
<element name="description" type="portlet:descriptionType" minOccurs="0" maxOccurs="unbounded"/>
<element name="role-name" type="portlet:role-nameType"/>
<element name="role-link" type="portlet:role-linkType" minOccurs="0"/>
</sequence>
<attribute name="id" type="string" use="optional"/>
</complexType>
<complexType name="short-titleType">
<annotation>
<documentation>
Locale specific short version of the static title.
Used in: portlet-info
</documentation>
</annotation>
<simpleContent>
<extension base="string"/>
</simpleContent>
</complexType>
<complexType name="supportsType">
<annotation>
<documentation>
Supports indicates the portlet modes a
portlet supports for a specific content type. All portlets must
support the view mode.
Used in: portlet
</documentation>
</annotation>
<sequence>
<element name="mime-type" type="portlet:mime-typeType"/>
<element name="portlet-mode" type="portlet:portlet-modeType" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="id" type="string" use="optional"/>
</complexType>
<complexType name="supported-localeType">
<annotation>
<documentation>
Indicated the locales the portlet supports.
Used in: portlet
</documentation>
</annotation>
<simpleContent>
<extension base="string"/>
</simpleContent>
</complexType>
<complexType name="titleType">
<annotation>
<documentation>
Locale specific static title for this portlet.
Used in: portlet-info
</documentation>
</annotation>
<simpleContent>
<extension base="string"/>
</simpleContent>
</complexType>
<simpleType name="transport-guaranteeType">
<annotation>
<documentation>
The transport-guaranteeType specifies that
the communication between client and portlet should
be NONE, INTEGRAL, or CONFIDENTIAL.
NONE means that the portlet does not
require any transport guarantees. A value of
INTEGRAL means that the portlet requires that the
data sent between the client and portlet be sent in
such a way that it can't be changed in transit.
CONFIDENTIAL means that the portlet requires
that the data be transmitted in a fashion that
prevents other entities from observing the contents
of the transmission.
In most cases, the presence of the INTEGRAL or
CONFIDENTIAL flag will indicate that the use
of SSL is required.
Used in: user-data-constraint
</documentation>
</annotation>
<restriction base="portlet:string">
<enumeration value="NONE"/>
<enumeration value="INTEGRAL"/>
<enumeration value="CONFIDENTIAL"/>
</restriction>
</simpleType>
<complexType name="user-attributeType">
<annotation>
<documentation>
User attribute defines a user specific attribute that the
portlet application needs. The portlet within this application
can access this attribute via the request parameter USER_INFO
map.
Used in: portlet-app
</documentation>
</annotation>
<sequence>
<element name="description" type="portlet:descriptionType" minOccurs="0" maxOccurs="unbounded"/>
<element name="name" type="portlet:nameType"/>
</sequence>
<attribute name="id" type="string" use="optional"/>
</complexType>
<complexType name="user-data-constraintType">
<annotation>
<documentation>
The user-data-constraintType is used to indicate how
data communicated between the client and portlet should be
protected.
Used in: security-constraint
</documentation>
</annotation>
<sequence>
<element name="description" type="portlet:descriptionType" minOccurs="0" maxOccurs="unbounded"/>
<element name="transport-guarantee" type="portlet:transport-guaranteeType"/>
</sequence>
<attribute name="id" type="string" use="optional"/>
</complexType>
<complexType name="valueType">
<annotation>
<documentation>
The value element contains the value of a parameter.
Used in: init-param
</documentation>
</annotation>
<simpleContent>
<extension base="string"/>
</simpleContent>
</complexType>
<complexType name="window-stateType">
<annotation>
<documentation>
Portlet window state. Window state names are not case sensitive.
Used in: custom-window-state
</documentation>
</annotation>
<simpleContent>
<extension base="string"/>
</simpleContent>
</complexType>
<!--- everything below is copied from j2ee_1_4.xsd -->
<complexType name="descriptionType">
<annotation>
<documentation>
The description element is used to provide text describing the
parent element. The description element should include any
information that the portlet application war file producer wants
to provide to the consumer of the portlet application war file
(i.e., to the Deployer). Typically, the tools used by the
portlet application war file consumer will display the
description when processing the parent element that contains the
description. It has an optional attribute xml:lang to indicate
which language is used in the description according to
RFC 1766 (http://www.ietf.org/rfc/rfc1766.txt). The default
value of this attribute is English(“en”).
Used in: init-param, portlet, portlet-app, security-role
</documentation>
</annotation>
<simpleContent>
<extension base="string">
<attribute ref="xml:lang"/>
</extension>
</simpleContent>
</complexType>
<complexType name="display-nameType">
<annotation>
<documentation>
The display-name type contains a short name that is intended
to be displayed by tools. It is used by display-name
elements. The display name need not be unique.
Example:
...
<display-name xml:lang="en">Employee Self Service</display-name>
It has an optional attribute xml:lang to indicate
which language is used in the description according to
RFC 1766 (http://www.ietf.org/rfc/rfc1766.txt). The default
value of this attribute is English(“en”).
</documentation>
</annotation>
<simpleContent>
<extension base="portlet:string">
<attribute ref="xml:lang"/>
</extension>
</simpleContent>
</complexType>
<simpleType name="fully-qualified-classType">
<annotation>
<documentation>
The elements that use this type designate the name of a
Java class or interface.
</documentation>
</annotation>
<restriction base="portlet:string"/>
</simpleType>
<simpleType name="role-nameType">
<annotation>
<documentation>
The role-nameType designates the name of a security role.
The name must conform to the lexical rules for an NMTOKEN.
</documentation>
</annotation>
<restriction base="NMTOKEN"/>
</simpleType>
<simpleType name="string">
<annotation>
<documentation>
This is a special string datatype that is defined by J2EE
as a base type for defining collapsed strings. When
schemas require trailing/leading space elimination as
well as collapsing the existing whitespace, this base
type may be used.
</documentation>
</annotation>
<restriction base="string">
<whiteSpace value="collapse"/>
</restriction>
</simpleType>
</schema>