-
-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathplugin explorer.patch.expected
More file actions
793 lines (793 loc) · 42.7 KB
/
plugin explorer.patch.expected
File metadata and controls
793 lines (793 loc) · 42.7 KB
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
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
[
[
".classpath",
".classpath",
[
"Index: .classpath",
"===================================================================",
"--- .classpath",
"+++ .classpath",
"@@ -0,0 +1,48 @@",
"+<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
"+<classpath>",
"+\t<classpathentry kind=\"src\" path=\"main/plugin-explorer/src\"/>",
"+\t<classpathentry kind=\"con\" path=\"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6\"/>",
"+\t<classpathentry kind=\"con\" path=\"org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?ivyXmlPath=ivy.xml&confs=*\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/antlr3-maven-plugin-3.1.3-1.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/antlr-3.1.3.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/antlr-runtime-3.1.3.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/aopalliance-1.0.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/asm-3.0.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/aspectjrt-1.5.3.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/commons-beanutils-1.7.0.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/commons-codec-1.3.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/commons-collections-3.2.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/commons-digester-1.6.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/commons-httpclient-3.1.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/commons-io-1.4.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/commons-lang-2.4.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/commons-logging-1.1.1.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/commons-logging-api-1.1.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/commons-validator-1.2.0.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/concurrent-1.3.4.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/FastInfoset-1.2.3.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/gunit-3.1.3.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/htmlparser-1.0.5.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/jaxb-api-2.1.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/jaxb-impl-2.1.9.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/jaxen-1.1.1.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/jcr-1.0.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/jline-0.9.94.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/jsr311-api-1.0.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/junit-4.7.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/log4j-1.2.15.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/maven-gunit-plugin-3.1.3.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/nekohtml-1.9.7.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/servlet-api-2.4.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/stax-api-1.0.1.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/stringtemplate-3.2.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/wsdl4j-1.6.2.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/xercesImpl-2.9.1.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/celad/Mes documents/dependances/xml-apis-1.3.04.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/mmartin/Mes documents/jar_chemistry/chemistry-api-0.5-SNAPSHOT.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/mmartin/Mes documents/jar_chemistry/chemistry-atompub-0.5-SNAPSHOT.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/mmartin/Mes documents/jar_chemistry/chemistry-atompub-client-0.5-SNAPSHOT.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/mmartin/Mes documents/jar_chemistry/chemistry-commons-0.5-SNAPSHOT.jar\"/>",
"+\t<classpathentry kind=\"lib\" path=\"C:/Documents and Settings/mmartin/Mes documents/jar_chemistry/chemistry-shell-0.5-SNAPSHOT.jar\"/>",
"+\t<classpathentry kind=\"output\" path=\"bin\"/>",
"+</classpath>"
]
],
[
".project",
".project",
[
"Index: .project",
"===================================================================",
"--- .project",
"+++ .project",
"@@ -0,0 +1,23 @@",
"+<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
"+<projectDescription>",
"+\t<name>plugin explorer</name>",
"+\t<comment></comment>",
"+\t<projects>",
"+\t</projects>",
"+\t<buildSpec>",
"+\t\t<buildCommand>",
"+\t\t\t<name>org.eclipse.jdt.core.javabuilder</name>",
"+\t\t\t<arguments>",
"+\t\t\t</arguments>",
"+\t\t</buildCommand>",
"+\t\t<buildCommand>",
"+\t\t\t<name>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</name>",
"+\t\t\t<arguments>",
"+\t\t\t</arguments>",
"+\t\t</buildCommand>",
"+\t</buildSpec>",
"+\t<natures>",
"+\t\t<nature>org.eclipse.jdt.core.javanature</nature>",
"+\t\t<nature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</nature>",
"+\t</natures>",
"+</projectDescription>"
]
],
[
".settings/org.eclipse.jdt.core.prefs",
".settings/org.eclipse.jdt.core.prefs",
[
"Index: .settings/org.eclipse.jdt.core.prefs",
"===================================================================",
"--- .settings/org.eclipse.jdt.core.prefs",
"+++ .settings/org.eclipse.jdt.core.prefs",
"@@ -0,0 +1,12 @@",
"+#Tue Mar 02 11:21:55 CET 2010",
"+eclipse.preferences.version=1",
"+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled",
"+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6",
"+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve",
"+org.eclipse.jdt.core.compiler.compliance=1.6",
"+org.eclipse.jdt.core.compiler.debug.lineNumber=generate",
"+org.eclipse.jdt.core.compiler.debug.localVariable=generate",
"+org.eclipse.jdt.core.compiler.debug.sourceFile=generate",
"+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error",
"+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error",
"+org.eclipse.jdt.core.compiler.source=1.6"
]
],
[
".checkstyle",
".checkstyle",
[
"Index: .checkstyle",
"===================================================================",
"--- .checkstyle",
"+++ .checkstyle",
"@@ -0,0 +1,9 @@",
"+<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
"+<fileset-config file-format-version=\"1.2.0\" simple-config=\"true\">",
"+ <local-check-config name=\"any-content\" location=\"C:\\Documents and Settings\\mmartin\\Mes documents\\eclipse\\configuration\\AnyContent checkstyle.xml\" type=\"external\" description=\"\">",
"+ <additional-data name=\"protect-config-file\" value=\"false\"/>",
"+ </local-check-config>",
"+ <fileset name=\"tous\" enabled=\"true\" check-config-name=\"any-content\" local=\"true\">",
"+ <file-match-pattern match-pattern=\".\" include-pattern=\"true\"/>",
"+ </fileset>",
"+</fileset-config>"
]
],
[
"main/plugin-explorer/sitemap.xmap",
"main/plugin-explorer/sitemap.xmap",
[
"Index: main/plugin-explorer/sitemap.xmap",
"===================================================================",
"--- main/plugin-explorer/sitemap.xmap",
"+++ main/plugin-explorer/sitemap.xmap",
"@@ -19,6 +19,7 @@",
"<map:components>",
"",
"<map:actions>",
"+\t\t\t<map:action name=\"add-cmis-collection\" src=\"org.ametys.plugins.explorer.resources.actions.AddCMISCollectionAction\" logger=\"org.ametys.explorer.actions\" />",
"<map:action name=\"add-collection\" src=\"org.ametys.plugins.explorer.resources.actions.AddCollectionAction\" logger=\"org.ametys.explorer.actions\" />",
"<map:action name=\"move-object\" src=\"org.ametys.plugins.explorer.resources.actions.MoveObjectAction\" logger=\"org.ametys.explorer.actions\"/>",
"<map:action name=\"rename-object\" src=\"org.ametys.plugins.explorer.resources.actions.RenameObjectAction\" logger=\"org.ametys.explorer.actions\"/>",
"@@ -91,6 +92,17 @@",
"</map:act>",
"</map:match>",
"",
"+\t\t\t<map:match pattern=\"add-cmis-collection\">",
"+\t\t\t\t<map:act type=\"add-cmis-collection\">",
"+\t\t\t\t\t<map:generate type=\"action-result\">",
"+\t\t\t\t\t\t<map:parameter name=\"id\" value=\"{id}\"/>",
"+\t\t\t\t\t\t<map:parameter name=\"parentID\" value=\"{parentID}\"/>",
"+\t\t\t\t\t\t<map:parameter name=\"name\" value=\"{name}\"/>",
"+\t\t\t\t\t</map:generate>",
"+\t\t\t\t\t<map:serialize type=\"xml\" />",
"+\t\t\t\t</map:act>",
"+\t\t\t</map:match>",
"+",
"<map:match pattern=\"move-object\">",
"<map:act type=\"move-object\">",
"<map:generate type=\"action-result\">"
]
],
[
"main/plugin-explorer/i18n/messages_fr.xml",
"main/plugin-explorer/i18n/messages_fr.xml",
[
"Index: main/plugin-explorer/i18n/messages_fr.xml",
"===================================================================",
"--- main/plugin-explorer/i18n/messages_fr.xml",
"+++ main/plugin-explorer/i18n/messages_fr.xml",
"@@ -92,6 +92,13 @@",
"<message key=\"PLUGINS_EXPLORER_VIEW_DETAILS_DESCRIPTION\">Passe en mode de vue d\u00e9taill\u00e9e</message>",
"",
"<!-- Actions -->",
"+\t<message key=\"PLUGINS_EXPLORER_FOLDER_ADD_CMIS_REP_TITLE\">Ajout des identifiants de connexion</message>",
"+\t<message key=\"PLUGINS_EXPLORER_FOLDER_ADD_CMIS_REP_URL\">URL</message>",
"+\t<message key=\"PLUGINS_EXPLORER_FOLDER_ADD_CMIS_REP_USER\">Nom utilisateur</message>",
"+\t<message key=\"PLUGINS_EXPLORER_FOLDER_ADD_CMIS_REP_PWD\">Mot de passe</message>",
"+\t<message key=\"PLUGINS_EXPLORER_FOLDER_ADD_CMIS_REP_ERROR_TITLE\">Param\u00c3\u00a8tres manquants</message>",
"+\t<message key=\"PLUGINS_EXPLORER_FOLDER_ADD_CMIS_REP_ERROR_MESSAGE\">Merci de renseigner tous les champs.</message>",
"+",
"<message key=\"PLUGINS_EXPLORER_FOLDER_HANDLE_ADD\">Nouveau dossier</message>",
"<message key=\"PLUGINS_EXPLORER_FOLDER_HANDLE_ADD_NEWNAME\">Nouveau dossier</message>",
"<message key=\"PLUGINS_EXPLORER_FOLDER_NAME\">Nom</message>"
]
],
[
"main/plugin-explorer/i18n/messages_en.xml",
"main/plugin-explorer/i18n/messages_en.xml",
[
"Index: main/plugin-explorer/i18n/messages_en.xml",
"===================================================================",
"--- main/plugin-explorer/i18n/messages_en.xml",
"+++ main/plugin-explorer/i18n/messages_en.xml",
"@@ -92,6 +92,14 @@",
"<message key=\"PLUGINS_EXPLORER_VIEW_DETAILS_DESCRIPTION\">Switchs to detailed view</message>",
"",
"<!-- Actions -->",
"+\t<message key=\"PLUGINS_EXPLORER_FOLDER_ADD_CMIS_REP_TITLE\">Add the connection IDs</message>",
"+\t<message key=\"PLUGINS_EXPLORER_FOLDER_ADD_CMIS_REP_URL\">URL</message>",
"+\t<message key=\"PLUGINS_EXPLORER_FOLDER_ADD_CMIS_REP_USER\">User</message>",
"+\t<message key=\"PLUGINS_EXPLORER_FOLDER_ADD_CMIS_REP_PWD\">Password</message>",
"+\t<message key=\"PLUGINS_EXPLORER_FOLDER_ADD_CMIS_REP_ERROR_TITLE\">Missing Parameters</message>",
"+\t<message key=\"PLUGINS_EXPLORER_FOLDER_ADD_CMIS_REP_ERROR_MESSAGE\">Please fill in all fields</message>",
"+",
"+",
"<message key=\"PLUGINS_EXPLORER_FOLDER_HANDLE_ADD\">New folder</message>",
"<message key=\"PLUGINS_EXPLORER_FOLDER_HANDLE_ADD_NEWNAME\">New folder</message>",
"<message key=\"PLUGINS_EXPLORER_FOLDER_NAME\">Name</message>"
]
],
[
"main/plugin-explorer/src/org/ametys/plugins/explorer/resources/generators/ResourcesExplorerGenerator.java",
"main/plugin-explorer/src/org/ametys/plugins/explorer/resources/generators/ResourcesExplorerGenerator.java",
[
"Index: main/plugin-explorer/src/org/ametys/plugins/explorer/resources/generators/ResourcesExplorerGenerator.java",
"===================================================================",
"--- main/plugin-explorer/src/org/ametys/plugins/explorer/resources/generators/ResourcesExplorerGenerator.java",
"+++ main/plugin-explorer/src/org/ametys/plugins/explorer/resources/generators/ResourcesExplorerGenerator.java",
"@@ -28,10 +28,12 @@",
"import org.xml.sax.SAXException;",
"",
"import org.ametys.plugins.explorer.ExplorerNode;",
"+import org.ametys.plugins.explorer.resources.ModifiableResource;",
"import org.ametys.plugins.explorer.resources.Resource;",
"import org.ametys.plugins.repository.AmetysObject;",
"import org.ametys.plugins.repository.AmetysObjectIterable;",
"import org.ametys.plugins.repository.AmetysObjectResolver;",
"+import org.ametys.plugins.repository.ModifiableAmetysObject;",
"import org.ametys.plugins.repository.TraversableAmetysObject;",
"import org.ametys.runtime.user.User;",
"import org.ametys.runtime.user.UsersManager;",
"@@ -111,6 +113,16 @@",
"childAtts.addCDATAAttribute(\"name\", node.getName());",
"childAtts.addCDATAAttribute(\"icon\", node.getIcon());",
"childAtts.addCDATAAttribute(\"applicationId\", node.getApplicationId());",
"+",
"+ if (node instanceof ModifiableAmetysObject)",
"+ {",
"+ childAtts.addCDATAAttribute(\"isModifiable\", \"true\");",
"+ }",
"+ else",
"+ {",
"+ childAtts.addCDATAAttribute(\"isModifiable\", \"false\");",
"+ }",
"+",
"",
"boolean hasChildNodes = false;",
"boolean hasResources = false;",
"@@ -158,6 +170,16 @@",
"childAtts.addCDATAAttribute(\"size\", String.valueOf(resource.getLength()));",
"childAtts.addCDATAAttribute(\"author\", name);",
"childAtts.addCDATAAttribute(\"keywords\", resource.getKeywordsAsString());",
"+",
"+ if (resource instanceof ModifiableResource)",
"+ {",
"+ childAtts.addCDATAAttribute(\"isModifiable\", \"true\");",
"+ }",
"+ else",
"+ {",
"+ childAtts.addCDATAAttribute(\"isModifiable\", \"false\");",
"+ }",
"+",
"XMLUtils.createElement(contentHandler, \"Node\", childAtts);",
"}",
"}"
]
],
[
"main/plugin-explorer/src/org/ametys/plugins/explorer/resources/actions/AddCMISCollectionAction.java",
"main/plugin-explorer/src/org/ametys/plugins/explorer/resources/actions/AddCMISCollectionAction.java",
[
"Index: main/plugin-explorer/src/org/ametys/plugins/explorer/resources/actions/AddCMISCollectionAction.java",
"===================================================================",
"--- main/plugin-explorer/src/org/ametys/plugins/explorer/resources/actions/AddCMISCollectionAction.java",
"+++ main/plugin-explorer/src/org/ametys/plugins/explorer/resources/actions/AddCMISCollectionAction.java",
"@@ -0,0 +1,106 @@",
"+package org.ametys.plugins.explorer.resources.actions;",
"+",
"+import java.util.HashMap;",
"+import java.util.Map;",
"+",
"+import org.apache.avalon.framework.parameters.Parameters;",
"+import org.apache.avalon.framework.service.ServiceException;",
"+import org.apache.avalon.framework.service.ServiceManager;",
"+import org.apache.cocoon.acting.ServiceableAction;",
"+import org.apache.cocoon.environment.ObjectModelHelper;",
"+import org.apache.cocoon.environment.Redirector;",
"+import org.apache.cocoon.environment.Request;",
"+import org.apache.cocoon.environment.SourceResolver;",
"+import org.apache.commons.lang.IllegalClassException;",
"+import org.apache.jackrabbit.util.Text;",
"+",
"+import org.ametys.plugins.explorer.cmis.CMISRootResourcesCollection;",
"+import org.ametys.plugins.explorer.cmis.CMISTreeFactory;",
"+import org.ametys.plugins.explorer.observation.ExplorerEvent;",
"+import org.ametys.plugins.explorer.observation.ExplorerObservationManager;",
"+import org.ametys.plugins.explorer.observation.ExplorerEvent.EventType;",
"+import org.ametys.plugins.repository.AmetysObject;",
"+import org.ametys.plugins.repository.AmetysObjectResolver;",
"+import org.ametys.plugins.repository.ModifiableTraversableAmetysObject;",
"+import org.ametys.runtime.user.CurrentUserProvider;",
"+",
"+/**",
"+ * Action for adding a CMIS resource collection.",
"+ *",
"+ */",
"+public class AddCMISCollectionAction extends ServiceableAction",
"+{",
"+ private AmetysObjectResolver _resolver;",
"+ private CurrentUserProvider _userProvider;",
"+ private ExplorerObservationManager _obsManager;",
"+",
"+ @Override",
"+ public void service(ServiceManager sManager) throws ServiceException",
"+ {",
"+ super.service(sManager);",
"+",
"+ _resolver = (AmetysObjectResolver) sManager.lookup(AmetysObjectResolver.ROLE);",
"+ _userProvider = (CurrentUserProvider) sManager.lookup(CurrentUserProvider.ROLE);",
"+ _obsManager = (ExplorerObservationManager) sManager.lookup(ExplorerObservationManager.ROLE);",
"+ }",
"+",
"+ @Override",
"+ public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception",
"+ {",
"+ Request request = ObjectModelHelper.getRequest(objectModel);",
"+ Map<String, String> result = new HashMap<String, String>();",
"+",
"+ String id = request.getParameter(\"id\");",
"+ String originalName = request.getParameter(\"name\");",
"+",
"+ String url = request.getParameter(\"url\");",
"+ String user = request.getParameter(\"user\");",
"+ String password = request.getParameter(\"pwd\");",
"+",
"+ boolean renameIfExists = request.getParameter(\"renameIfExists\") == null ? false : Boolean.valueOf(request.getParameter(\"renameIfExists\"));",
"+ assert id != null;",
"+",
"+ String legalName = Text.escapeIllegalJcrChars(originalName);",
"+",
"+ AmetysObject object = _resolver.resolveById(id);",
"+ if (!(object instanceof ModifiableTraversableAmetysObject))",
"+ {",
"+ throw new IllegalClassException(ModifiableTraversableAmetysObject.class, object.getClass());",
"+ }",
"+",
"+ ModifiableTraversableAmetysObject collection = (ModifiableTraversableAmetysObject) object;",
"+ if (!renameIfExists && collection.hasChild(legalName))",
"+ {",
"+ getLogger().warn(\"The object '\" + object.getName() + \"' can not be renamed in '\" + originalName + \"' : a object of same name already exists.\");",
"+ result.put(\"message\", \"already-exist\");",
"+ return result;",
"+ }",
"+",
"+ int index = 1;",
"+ while (collection.hasChild(legalName))",
"+ {",
"+ legalName = Text.escapeIllegalJcrChars(originalName + \" (\" + index + \")\");",
"+ index++;",
"+ }",
"+",
"+ CMISRootResourcesCollection child = collection.createChild(legalName, CMISTreeFactory.RESOURCESCOLLECTION_NODETYPE);",
"+ child.setCMISURL(url);",
"+ child.setUser(user);",
"+ child.setPassword(password);",
"+ child.saveChanges();",
"+",
"+ result.put(\"id\", child.getId());",
"+ result.put(\"parentID\", id);",
"+ result.put(\"name\", legalName);",
"+",
"+ // Notify listeners",
"+ Map<String, Object> eventParams = new HashMap<String, Object>();",
"+ eventParams.put(\"parentID\", object.getId());",
"+ eventParams.put(\"name\", child.getName());",
"+ eventParams.put(\"path\", child.getPath());",
"+ _obsManager.notifyEvent(new ExplorerEvent (EventType.COLLECTION_CREATE, _userProvider.getUser(), child.getId(), eventParams));",
"+",
"+ return result;",
"+ }",
"+",
"+}"
]
],
[
"main/plugin-explorer/src/org/ametys/plugins/explorer/ExplorerNodeGenerator.java",
"main/plugin-explorer/src/org/ametys/plugins/explorer/ExplorerNodeGenerator.java",
[
"Index: main/plugin-explorer/src/org/ametys/plugins/explorer/ExplorerNodeGenerator.java",
"===================================================================",
"--- main/plugin-explorer/src/org/ametys/plugins/explorer/ExplorerNodeGenerator.java",
"+++ main/plugin-explorer/src/org/ametys/plugins/explorer/ExplorerNodeGenerator.java",
"@@ -27,6 +27,7 @@",
"import org.ametys.plugins.explorer.resources.generators.ResourcesExplorerGenerator;",
"import org.ametys.plugins.repository.AmetysObject;",
"import org.ametys.plugins.repository.AmetysObjectIterable;",
"+import org.ametys.plugins.repository.ModifiableAmetysObject;",
"import org.ametys.plugins.repository.TraversableAmetysObject;",
"",
"/**",
"@@ -86,6 +87,16 @@",
"childAtts.addCDATAAttribute(\"icon\", node.getIcon());",
"childAtts.addCDATAAttribute(\"applicationId\", node.getApplicationId());",
"",
"+ if (node instanceof ModifiableAmetysObject)",
"+ {",
"+ childAtts.addCDATAAttribute(\"isModifiable\", \"true\");",
"+ }",
"+ else",
"+ {",
"+ childAtts.addCDATAAttribute(\"isModifiable\", \"false\");",
"+ }",
"+",
"+",
"boolean hasChild = false;",
"",
"for (AmetysObject child : ((TraversableAmetysObject) node).getChildren())"
]
],
[
"main/plugin-explorer/plugin.xml",
"main/plugin-explorer/plugin.xml",
[
"Index: main/plugin-explorer/plugin.xml",
"===================================================================",
"--- main/plugin-explorer/plugin.xml",
"+++ main/plugin-explorer/plugin.xml",
"@@ -51,6 +51,15 @@",
"<scheme>resource</scheme>",
"<nodetype>ametys:resource</nodetype>",
"</extension>",
"+",
"+ <extension point=\"org.ametys.plugins.repository.AmetysObjectFactoryExtensionPoint\"",
"+\t\t\t id=\"org.ametys.plugins.explorer.cmis.CMISTreeFactory\"",
"+\t\t\t class=\"org.ametys.plugins.explorer.cmis.CMISTreeFactory\">",
"+ <scheme>cmis-root-collection</scheme>",
"+ <nodetype>ametys:cmis-root-collection</nodetype>",
"+ <nodetype-definition>resources_nodetypes.xml</nodetype-definition>",
"+ </extension>",
"+",
"</extensions>",
"</feature>",
""
]
],
[
"main/plugin-explorer/resources/js/org/ametys/explorer/ResourcesExplorer.i18n.js",
"main/plugin-explorer/resources/js/org/ametys/explorer/ResourcesExplorer.i18n.js",
[
"Index: main/plugin-explorer/resources/js/org/ametys/explorer/ResourcesExplorer.i18n.js",
"===================================================================",
"--- main/plugin-explorer/resources/js/org/ametys/explorer/ResourcesExplorer.i18n.js",
"+++ main/plugin-explorer/resources/js/org/ametys/explorer/ResourcesExplorer.i18n.js",
"@@ -554,7 +554,7 @@",
"var appId = node.attributes.applicationId;",
"if (this._applications[appId])",
"{",
"-\t\t\tthis._applications[appId].execCommand ('updateToolbar', {'id': node.id});",
"+\t\t\tthis._applications[appId].execCommand ('updateToolbar', {'id': node.id, 'isModifiable': node.attributes['isModifiable']});",
"}",
"}",
"}",
"@@ -607,7 +607,7 @@",
"var appId = node.attributes.applicationId;",
"if (this._applications[appId])",
"{",
"-\t\t\tthis._applications[appId].execCommand ('updateToolbar', {'id': node.id, 'files': records});",
"+\t\t\tthis._applications[appId].execCommand ('updateToolbar', {'id': node.id, 'files': records, 'isModifiable': node.attributes['isModifiable']});",
"}",
"}",
"}"
]
],
[
"main/plugin-explorer/resources/js/org/ametys/explorer/applications/resources/ResourcesActions.i18n.js",
"main/plugin-explorer/resources/js/org/ametys/explorer/applications/resources/ResourcesActions.i18n.js",
[
"Index: main/plugin-explorer/resources/js/org/ametys/explorer/applications/resources/ResourcesActions.i18n.js",
"===================================================================",
"--- main/plugin-explorer/resources/js/org/ametys/explorer/applications/resources/ResourcesActions.i18n.js",
"+++ main/plugin-explorer/resources/js/org/ametys/explorer/applications/resources/ResourcesActions.i18n.js",
"@@ -15,6 +15,7 @@",
"*/",
"",
"Ext.namespace('org.ametys.explorer.applications.resources');",
"+Ext.namespace('org.ametys.explorer.applications.resources.Folder.addCMIS');",
"Ext.namespace('org.ametys.explorer.applications.resources.Folder.add');",
"Ext.namespace('org.ametys.explorer.applications.resources.Folder.rename');",
"Ext.namespace('org.ametys.explorer.applications.resources.Folder.remove');",
"@@ -29,6 +30,50 @@",
"Ext.namespace('org.ametys.explorer.applications.resources.File.download');",
"/*------------------------------------------------------------------------*/",
"/**",
"+ * Create a new CMIS server",
"+ * @param {String} parentID The parent folder id",
"+ * @param {String} name The new folder name",
"+ * @param {function} callback The call back function",
"+ */",
"+org.ametys.explorer.applications.resources.Folder.addCMIS = function (parentID, name, callback, paramCon)",
"+{",
"+ // Appel Ajax",
"+ var params = {};",
"+ params.id = parentID;",
"+ params.name = name;",
"+ params.renameIfExists = true;",
"+ params.url = paramCon.url;",
"+ params.user = paramCon.user;",
"+ params.pwd = paramCon.pwd;",
"+",
"+ var serverMessage = new org.ametys.servercomm.ServerMessage('explorer', '/add-cmis-collection',",
"+ params,",
"+ org.ametys.servercomm.ServerComm.PRIORITY_MAJOR,",
"+ function (response, args) {",
"+ org.ametys.explorer.applications.resources.Folder.addCMISCb (response, args, callback);",
"+ },",
"+ this,",
"+ []);",
"+ org.ametys.servercomm.ServerComm.getInstance().send(serverMessage);",
"+}",
"+org.ametys.explorer.applications.resources.Folder.addCMISCb = function (response, args, callback)",
"+{",
"+\tif (org.ametys.servercomm.ServerComm.handleBadResponse(\"<i18n:text i18n:key=\"PLUGINS_EXPLORER_FOLDER_HANDLE_ADD_ERROR\"/>\", response, \"org.ametys.explorer.applications.resources.Folder.add\"))",
"+\t{",
"+\t\treturn;",
"+\t}",
"+",
"+\tvar id = response.selectSingleNode(\"ActionResult/id\")[org.ametys.servercomm.ServerComm.xmlTextContent];",
"+\tvar parentID = response.selectSingleNode(\"ActionResult/parentID\")[org.ametys.servercomm.ServerComm.xmlTextContent];",
"+\tvar name = response.selectSingleNode(\"ActionResult/name\")[org.ametys.servercomm.ServerComm.xmlTextContent];",
"+",
"+ if (typeof callback == 'function')",
"+ {",
"+ callback (parentID, id, name);",
"+ }",
"+}",
"+/*------------------------------------------------------------------------*/",
"+/**",
"* Create a new folder",
"* @param {String} parentID The parent folder id",
"* @param {String} name The new folder name"
]
],
[
"main/plugin-explorer/resources/js/org/ametys/explorer/applications/resources/toolbar/ToolbarActions.i18n.js",
"main/plugin-explorer/resources/js/org/ametys/explorer/applications/resources/toolbar/ToolbarActions.i18n.js",
[
"Index: main/plugin-explorer/resources/js/org/ametys/explorer/applications/resources/toolbar/ToolbarActions.i18n.js",
"===================================================================",
"--- main/plugin-explorer/resources/js/org/ametys/explorer/applications/resources/toolbar/ToolbarActions.i18n.js",
"+++ main/plugin-explorer/resources/js/org/ametys/explorer/applications/resources/toolbar/ToolbarActions.i18n.js",
"@@ -15,6 +15,7 @@",
"*/",
"",
"Ext.namespace('org.ametys.explorer.applications.resources.toolbar');",
"+Ext.namespace('org.ametys.explorer.applications.resources.toolbar.Folder.addCMIS');",
"Ext.namespace('org.ametys.explorer.applications.resources.toolbar.Folder.add');",
"Ext.namespace('org.ametys.explorer.applications.resources.toolbar.Folder.rename');",
"Ext.namespace('org.ametys.explorer.applications.resources.toolbar.Folder.remove');",
"@@ -29,6 +30,105 @@",
"",
"",
"/*------------------------------------------------------------------------*/",
"+org.ametys.explorer.applications.resources.toolbar.Folder.addCMIS = function (application)",
"+{",
"+\t//DialogBox when adding nodes",
"+\taddCMIS = new org.ametys.DialogBox ({",
"+",
"+\t\ttitle : '<i18n:text i18n:key=\"PLUGINS_EXPLORER_FOLDER_ADD_CMIS_REP_TITLE\"/>',",
"+",
"+ id: 'addCMISRep',",
"+ cls: 'text-dialog',",
"+ layout: 'form',",
"+ labelWidth: 100,",
"+",
"+ width: 420,",
"+ height: 180,",
"+ autoScroll: false,",
"+",
"+ items: [",
"+ new org.ametys.form.TextField ({",
"+ fieldLabel : '<i18n:text i18n:key=\"PLUGINS_EXPLORER_FOLDER_ADD_CMIS_REP_URL\"/>',",
"+ id: 'addCMIS-url',",
"+ width: 200,",
"+ allowBlank: true",
"+ }),",
"+ new org.ametys.form.TextField ({",
"+ fieldLabel : '<i18n:text i18n:key=\"PLUGINS_EXPLORER_FOLDER_ADD_CMIS_REP_USER\"/>',",
"+ id: 'addCMIS-user',",
"+ width: 200,",
"+ allowBlank: true",
"+ }),",
"+ new org.ametys.form.PasswordField ({",
"+ fieldLabel : '<i18n:text i18n:key=\"PLUGINS_EXPLORER_FOLDER_ADD_CMIS_REP_PWD\"/>',",
"+ id: 'addCMIS-password',",
"+ width: 200,",
"+ allowBlank: true",
"+ }),",
"+ ],",
"+ closeAction: 'destroy',",
"+ buttons : [{",
"+ text : \"OK\",",
"+ handler: _okAddCMISRep",
"+ },{",
"+ text : \"CANCEL\",",
"+ handler: _cancelAddCMISRep",
"+ }]",
"+ });",
"+",
"+\tExt.getCmp('addCMISRep').show();",
"+",
"+ function _okAddCMISRep(){",
"+",
"+ var urlCMIS = Ext.getCmp('addCMIS-url');",
"+ var userCMIS = Ext.getCmp('addCMIS-user');",
"+ var pwdCMIS = Ext.getCmp('addCMIS-password');",
"+ var url = urlCMIS.getValue();",
"+ var user = userCMIS.getValue();",
"+ var pwd = pwdCMIS.getValue();",
"+",
"+ if(url==\"\" || user==\"\" || pwd==\"\")",
"+ {",
"+ Ext.Msg.alert(\"<i18n:text i18n:key=\"PLUGINS_EXPLORER_FOLDER_ADD_CMIS_REP_ERROR_TITLE\"/>\",",
"+ \t\t\"<i18n:text i18n:key=\"PLUGINS_EXPLORER_FOLDER_ADD_CMIS_REP_ERROR_MESSAGE\"/>\");",
"+ }",
"+ else{",
"+ var el = Ext.getCmp('addCMISRep');",
"+ el.destroy();",
"+",
"+ var paramCon = {};",
"+ paramCon.url = url;",
"+ paramCon.user = user;",
"+ paramCon.pwd = pwd;",
"+",
"+ var node = application._explorer.getSelectedNode();",
"+ if (node == null)",
"+ return;",
"+",
"+ // Le noeud parent = id JCR du dossier qui va porter l'arborescence CMIS",
"+ var parentID = node.id;",
"+ org.ametys.explorer.applications.resources.Folder.addCMIS (parentID,",
"+ \"<i18n:text i18n:key=\"PLUGINS_EXPLORER_FOLDER_HANDLE_ADD_NEWNAME\"/>\",",
"+ function (parentID, id, name) {",
"+ org.ametys.explorer.applications.resources.toolbar.Folder._addCMISCb (parentID, id, name, application)",
"+ },",
"+ paramCon",
"+ );",
"+ }",
"+ }",
"+",
"+ function _cancelAddCMISRep(){",
"+ var el = Ext.getCmp('addCMISRep');",
"+ el.destroy();",
"+ }",
"+}",
"+org.ametys.explorer.applications.resources.toolbar.Folder._addCMISCb = function (parentID, id, name, application)",
"+{",
"+\t// Rafraichi le noeud parent",
"+ application._explorer._refreshNode (parentID, application._explorer.renameNode, [id]);",
"+}",
"+",
"+/*------------------------------------------------------------------------*/",
"org.ametys.explorer.applications.resources.toolbar.Folder.add = function (application)",
"{",
"var node = application._explorer.getSelectedNode();"
]
],
[
"main/plugin-explorer/resources/js/org/ametys/explorer/applications/resources/ResourcesApplication.i18n.js",
"main/plugin-explorer/resources/js/org/ametys/explorer/applications/resources/ResourcesApplication.i18n.js",
[
"Index: main/plugin-explorer/resources/js/org/ametys/explorer/applications/resources/ResourcesApplication.i18n.js",
"===================================================================",
"--- main/plugin-explorer/resources/js/org/ametys/explorer/applications/resources/ResourcesApplication.i18n.js",
"+++ main/plugin-explorer/resources/js/org/ametys/explorer/applications/resources/ResourcesApplication.i18n.js",
"@@ -107,6 +107,17 @@",
"this._toolbar = new Ext.Toolbar ({",
"region: 'north',",
"items : [{",
"+\t\t\t\t id: 'toolbar-btn-cmis-add',",
"+\t\t\t\t icon: getPluginResourcesUrl ('explorer') + '/img/resources/folder_new_32.png',",
"+\t\t\t\t tooltip : \"<i18n:text i18n:key=\"PLUGINS_EXPLORER_CMIS_ADD_DESCRIPTION\"/>\",",
"+\t\t\t\t scale: 'large',",
"+\t\t\t\t application: this,",
"+\t\t\t\t handler: function () {",
"+\t\t\t\t org.ametys.explorer.applications.resources.toolbar.CMIS.add (this.application);",
"+\t\t\t\t },",
"+\t\t\t\t disabled: true",
"+\t\t\t\t },",
"+\t\t {",
"id: 'toolbar-btn-folder-add',",
"icon: getPluginResourcesUrl ('explorer') + '/img/resources/folder_new_32.png',",
"tooltip : \"<i18n:text i18n:key=\"PLUGINS_EXPLORER_FOLDER_ADD_DESCRIPTION\"/>\",",
"@@ -225,20 +236,21 @@",
"return this._toolbar;",
"}",
"",
"-org.ametys.explorer.applications.resources.ResourcesApplication.prototype._updateToolbar = function (folder, files)",
"+org.ametys.explorer.applications.resources.ResourcesApplication.prototype._updateToolbar = function (folder, files, isModifiable)",
"{",
"var isRoot = this._explorer._tree.getRootNode().id == folder;",
"",
"-\tthis._toolbar.get('toolbar-btn-folder-add').setDisabled (folder == null);",
"-\tthis._toolbar.get('toolbar-btn-folder-rename').setDisabled (isRoot || folder == null);",
"-\tthis._toolbar.get('toolbar-btn-folder-delete').setDisabled (isRoot || folder == null);",
"-\tthis._toolbar.get('toolbar-btn-file-add').setDisabled (folder == null);",
"-\tthis._toolbar.get('toolbar-btn-file-rename').setDisabled (files == null || files.length == 0);",
"-\tthis._toolbar.get('toolbar-btn-file-delete').setDisabled (files == null || files.length == 0);",
"+\tthis._toolbar.get('toolbar-btn-cmis-add').setDisabled (folder == null || isModifiable == 'false');",
"+\tthis._toolbar.get('toolbar-btn-folder-add').setDisabled (folder == null || isModifiable == 'false');",
"+\tthis._toolbar.get('toolbar-btn-folder-rename').setDisabled (isRoot || folder == null || isModifiable == 'false');",
"+\tthis._toolbar.get('toolbar-btn-folder-delete').setDisabled (isRoot || folder == null || isModifiable == 'false');",
"+\tthis._toolbar.get('toolbar-btn-file-add').setDisabled (folder == null || isModifiable == 'false');",
"+\tthis._toolbar.get('toolbar-btn-file-rename').setDisabled (files == null || files.length == 0 || isModifiable == 'false');",
"+\tthis._toolbar.get('toolbar-btn-file-delete').setDisabled (files == null || files.length == 0 || isModifiable == 'false');",
"this._toolbar.get('toolbar-btn-file-download').setDisabled (files == null || files.length == 0);",
"-\tthis._toolbar.get('toolbar-btn-file-history').setDisabled (files == null || files.length == 0);",
"-\tthis._toolbar.get('toolbar-btn-file-cut').setDisabled (files == null || files.length == 0);",
"-\tthis._toolbar.get('toolbar-btn-file-paste').setDisabled (folder == null);",
"+\tthis._toolbar.get('toolbar-btn-file-history').setDisabled (files == null || files.length == 0 || isModifiable == 'false');",
"+\tthis._toolbar.get('toolbar-btn-file-cut').setDisabled (files == null || files.length == 0 || isModifiable == 'false');",
"+\tthis._toolbar.get('toolbar-btn-file-paste').setDisabled (folder == null || isModifiable == 'false');",
"",
"}",
"",
"@@ -331,7 +343,7 @@",
"break;",
"",
"case 'updateToolbar':",
"-\t\t\tthis._updateToolbar (params.id, params.files);",
"+\t\t\tthis._updateToolbar (params.id, params.files, params.isModifiable);",
"break;",
"default:",
"throw \"The command '\" + cmd + \"' is unknown\";"
]
],
[
"main/plugin-explorer/resources/js/org/ametys/explorer/tree/ResourcesXmlLoader.js",
"main/plugin-explorer/resources/js/org/ametys/explorer/tree/ResourcesXmlLoader.js",
[
"Index: main/plugin-explorer/resources/js/org/ametys/explorer/tree/ResourcesXmlLoader.js",
"===================================================================",
"--- main/plugin-explorer/resources/js/org/ametys/explorer/tree/ResourcesXmlLoader.js",
"+++ main/plugin-explorer/resources/js/org/ametys/explorer/tree/ResourcesXmlLoader.js",
"@@ -34,7 +34,7 @@",
"* Override createNode function to always return a AsyncTreeNode",
"*/",
"org.ametys.explorer.tree.ResourcesXmlLoader.prototype.createNode = function(node)",
"-{",
"+{",
"var attr = {",
"tagName :node.tagName",
"};"
]
],
[
"main/plugin-explorer/resources_nodetypes.xml",
"main/plugin-explorer/resources_nodetypes.xml",
[
"Index: main/plugin-explorer/resources_nodetypes.xml",
"===================================================================",
"--- main/plugin-explorer/resources_nodetypes.xml",
"+++ main/plugin-explorer/resources_nodetypes.xml",
"@@ -15,6 +15,15 @@",
"limitations under the License.",
"-->",
"<nodeTypes xmlns:nt=\"http://www.jcp.org/jcr/nt/1.0\" xmlns:mix=\"http://www.jcp.org/jcr/mix/1.0\" xmlns:ametys=\"http://www.ametys.org/jcr/repository/1.0\">",
"+ <nodeType name=\"ametys:cmis-root-collection\" isMixin=\"false\" hasOrderableChildNodes=\"false\" primaryItemName=\"\">",
"+ <supertypes>",
"+ <supertype>nt:folder</supertype>",
"+ <supertype>ametys:object</supertype>",
"+ </supertypes>",
"+ <propertyDefinition name=\"ametys:url\" requiredType=\"String\" autoCreated=\"false\" mandatory=\"true\" onParentVersion=\"COPY\" protected=\"false\" multiple=\"false\"/>",
"+ <propertyDefinition name=\"ametys:user\" requiredType=\"String\" autoCreated=\"false\" mandatory=\"false\" onParentVersion=\"COPY\" protected=\"false\" multiple=\"false\"/>",
"+ <propertyDefinition name=\"ametys:password\" requiredType=\"String\" autoCreated=\"false\" mandatory=\"false\" onParentVersion=\"COPY\" protected=\"false\" multiple=\"false\"/>",
"+ </nodeType>",
"<nodeType name=\"ametys:resources-collection\" isMixin=\"false\" hasOrderableChildNodes=\"false\" primaryItemName=\"\">",
"<supertypes>",
"<supertype>nt:folder</supertype>"
]
]
]