root/org.nuxeo.ecm.platform/trunk/nuxeo-platform-ear/src/main/resources/config/commentService-config-bundle.xml

Revision 23182, 2.4 kB (checked in by atchertchian, 2 years ago)

format

Line 
1 <?xml version="1.0"?>
2
3 <component name="org.nuxeo.ecm.platform.comment.service.CommentServiceConfig">
4
5   <require>org.nuxeo.ecm.platform.comment.service.CommentService</require>
6   <documentation>
7     This component gives the user the possibility to add comments to documents.
8   </documentation>
9
10   <extension target="org.nuxeo.ecm.platform.comment.service.CommentService"
11     point="config">
12     <config>
13       <converterClass>
14         org.nuxeo.ecm.platform.comment.impl.CommentConverterImpl
15       </converterClass>
16       <graphName>documentComments</graphName>
17       <!-- XXX AT: these namespaces should have an ending slash -->
18       <commentNamespace>http://www.nuxeo.org/comments/uid</commentNamespace>
19       <documentNamespace>http://www.nuxeo.org/document/uid</documentNamespace>
20       <predicateNamespace>
21         http://www.nuxeo.org/predicates/isCommentFor
22       </predicateNamespace>
23     </config>
24   </extension>
25
26   <!-- relation adapters -->
27   <extension target="org.nuxeo.ecm.platform.relations.services.RelationService"
28     point="resourceadapters">
29     <!-- XXX AT: this namespace should have an ending slash -->
30     <adapter namespace="http://www.nuxeo.org/comments/uid"
31       class="org.nuxeo.ecm.platform.relations.adapters.DocumentModelResourceAdapter" />
32     <!-- XXX AT: this namespace should have an ending slash so that it can be
33       the standard adapter already registered -->
34     <adapter namespace="http://www.nuxeo.org/document/uid"
35       class="org.nuxeo.ecm.platform.relations.adapters.DocumentModelResourceAdapter" />
36   </extension>
37
38   <!-- relation graph -->
39   <extension target="org.nuxeo.ecm.platform.relations.services.RelationService"
40     point="graphs">
41     <graph name="documentComments" type="jena">
42       <option name="backend">sql</option>
43       <option name="databaseType">
44         ${org.nuxeo.ecm.sql.jena.databaseType}
45       </option>
46       <option name="datasource">java:/comment-relations</option>
47       <option name="databaseDoCompressUri">false</option>
48       <option name="databaseTransactionEnabled">
49         ${org.nuxeo.ecm.sql.jena.databaseTransactionEnabled}
50       </option>
51       <namespaces>
52         <namespace name="comment">http://www.nuxeo.org/comments/uid</namespace>
53         <namespace name="isCommentFor">
54           http://www.nuxeo.org/predicates/isCommentFor
55         </namespace>
56         <namespace name="document">http://www.nuxeo.org/document/uid</namespace>
57       </namespaces>
58     </graph>
59   </extension>
60
61 </component>
Note: See TracBrowser for help on using the browser.