| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!-- |
| 3 |
Licensed to the Apache Software Foundation (ASF) under one or more |
| 4 |
contributor license agreements. See the NOTICE file distributed with |
| 5 |
this work for additional information regarding copyright ownership. |
| 6 |
The ASF licenses this file to You under the Apache License, Version 2.0 |
| 7 |
(the "License"); you may not use this file except in compliance with |
| 8 |
the License. You may obtain a copy of the License at |
| 9 |
|
| 10 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 11 |
|
| 12 |
Unless required by applicable law or agreed to in writing, software |
| 13 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 14 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 |
See the License for the specific language governing permissions and |
| 16 |
limitations under the License. |
| 17 |
--> |
| 18 |
<!-- |
| 19 |
<!DOCTYPE config [ |
| 20 |
<!ELEMENT config (iomanager , propertymanager, (collection | noncollection)? , filter?, mimetypeproperties?) > |
| 21 |
|
| 22 |
<!ELEMENT iomanager (class, iohandler*) > |
| 23 |
<!ELEMENT iohandler (class) > |
| 24 |
|
| 25 |
<!ELEMENT propertymanager (class, propertyhandler*) > |
| 26 |
<!ELEMENT propertyhandler (class) > |
| 27 |
|
| 28 |
<!ELEMENT collection (nodetypes) > |
| 29 |
<!ELEMENT noncollection (nodetypes) > |
| 30 |
|
| 31 |
<!ELEMENT filter (class, namespaces?, nodetypes?) > |
| 32 |
|
| 33 |
<!ELEMENT class > |
| 34 |
<!ATTLIST class |
| 35 |
name CDATA #REQUIRED |
| 36 |
> |
| 37 |
<!ELEMENT namespaces (prefix | uri)* > |
| 38 |
<!ELEMENT prefix (CDATA) > |
| 39 |
<!ELEMENT uri (CDATA) > |
| 40 |
|
| 41 |
<!ELEMENT nodetypes (nodetype)* > |
| 42 |
<!ELEMENT nodetype (CDATA) > |
| 43 |
|
| 44 |
<!ELEMENT mimetypeproperties (mimemapping*, defaultmimetype) > |
| 45 |
|
| 46 |
<!ELEMENT mimemapping > |
| 47 |
<!ATTLIST mimemapping |
| 48 |
extension CDATA #REQUIRED |
| 49 |
mimetype CDATA #REQUIRED |
| 50 |
> |
| 51 |
|
| 52 |
<!ELEMENT defaultmimetype (CDATA) > |
| 53 |
]> |
| 54 |
--> |
| 55 |
|
| 56 |
<config> |
| 57 |
<!-- |
| 58 |
Defines the IOManager implementation that is responsible for passing |
| 59 |
import/export request to the individual IO-handlers. |
| 60 |
--> |
| 61 |
<iomanager> |
| 62 |
<!-- class element defines the manager to be used. The specified class |
| 63 |
must implement the IOManager interface. |
| 64 |
Note, that the handlers are being added and called in the order |
| 65 |
they appear in the configuration. |
| 66 |
--> |
| 67 |
<class name="org.apache.jackrabbit.server.io.IOManagerImpl" /> |
| 68 |
<iohandler> |
| 69 |
<class name="org.apache.jackrabbit.server.io.VersionHandler" /> |
| 70 |
</iohandler> |
| 71 |
<iohandler> |
| 72 |
<class name="org.apache.jackrabbit.server.io.VersionHistoryHandler" /> |
| 73 |
</iohandler> |
| 74 |
<iohandler> |
| 75 |
<class name="org.apache.jackrabbit.server.io.ZipHandler" /> |
| 76 |
</iohandler> |
| 77 |
<iohandler> |
| 78 |
<class name="org.apache.jackrabbit.server.io.XmlHandler" /> |
| 79 |
</iohandler> |
| 80 |
<iohandler> |
| 81 |
<class name="org.apache.jackrabbit.server.io.DirListingExportHandler" /> |
| 82 |
</iohandler> |
| 83 |
<iohandler> |
| 84 |
<class name="org.apache.jackrabbit.server.io.DefaultHandler" /> |
| 85 |
</iohandler> |
| 86 |
</iomanager> |
| 87 |
<!-- |
| 88 |
Example config for iomanager that populates its list of handlers with |
| 89 |
default values. Therefore the 'iohandler' elements are omited. |
| 90 |
--> |
| 91 |
<!-- |
| 92 |
<iomanager> |
| 93 |
<class name="org.apache.jackrabbit.server.io.DefaultIOManager" /> |
| 94 |
</iomanager> |
| 95 |
--> |
| 96 |
<!-- |
| 97 |
Defines the PropertyManager implementation that is responsible for export |
| 98 |
and import of resource properties. |
| 99 |
--> |
| 100 |
<propertymanager> |
| 101 |
<!-- class element defines the manager to be used. The specified class |
| 102 |
must implement the PropertyManager interface. |
| 103 |
Note, that the handlers are being added and called in the order |
| 104 |
they appear in the configuration. |
| 105 |
--> |
| 106 |
<class name="org.apache.jackrabbit.server.io.PropertyManagerImpl" /> |
| 107 |
<propertyhandler> |
| 108 |
<class name="org.apache.jackrabbit.server.io.VersionHandler" /> |
| 109 |
</propertyhandler> |
| 110 |
<propertyhandler> |
| 111 |
<class name="org.apache.jackrabbit.server.io.VersionHistoryHandler" /> |
| 112 |
</propertyhandler> |
| 113 |
<propertyhandler> |
| 114 |
<class name="org.apache.jackrabbit.server.io.ZipHandler" /> |
| 115 |
</propertyhandler> |
| 116 |
<propertyhandler> |
| 117 |
<class name="org.apache.jackrabbit.server.io.XmlHandler" /> |
| 118 |
</propertyhandler> |
| 119 |
<propertyhandler> |
| 120 |
<class name="org.apache.jackrabbit.server.io.DefaultHandler" /> |
| 121 |
</propertyhandler> |
| 122 |
</propertymanager> |
| 123 |
<!-- |
| 124 |
Define nodetypes, that should never by displayed as 'collection' |
| 125 |
--> |
| 126 |
<noncollection> |
| 127 |
<nodetypes> |
| 128 |
<nodetype>nt:file</nodetype> |
| 129 |
<nodetype>nt:resource</nodetype> |
| 130 |
</nodetypes> |
| 131 |
</noncollection> |
| 132 |
<!-- |
| 133 |
Example: Defines nodetypes, that should always be displayed as 'collection'. |
| 134 |
--> |
| 135 |
<!-- |
| 136 |
<collection> |
| 137 |
<nodetypes> |
| 138 |
<nodetype>nt:folder</nodetype> |
| 139 |
<nodetype>rep:root</nodetype> |
| 140 |
</nodetypes> |
| 141 |
</collection> |
| 142 |
--> |
| 143 |
<!-- |
| 144 |
Filter that allows to prevent certain items from being displayed. |
| 145 |
Please note, that this has an effect on PROPFIND calls only and does not |
| 146 |
provide limited access to those items matching any of the filters. |
| 147 |
|
| 148 |
However specifying a filter may cause problems with PUT or MKCOL if the |
| 149 |
resource to be created is being filtered out, thus resulting in inconsistent |
| 150 |
responses (e.g. PUT followed by PROPFIND on parent). |
| 151 |
--> |
| 152 |
<filter> |
| 153 |
<!-- class element defines the resource filter to be used. The specified class |
| 154 |
must implement the ItemFilter interface --> |
| 155 |
<class name="org.apache.jackrabbit.webdav.simple.DefaultItemFilter" /> |
| 156 |
<!-- |
| 157 |
Nodetype names to be used to filter child nodes. |
| 158 |
A child node can be filtered if the declaring nodetype of its definition |
| 159 |
is one of the nodetype names specified in the nodetypes Element. |
| 160 |
E.g. defining 'rep:root' as filtered nodetype whould result in jcr:system |
| 161 |
being hidden but no other child node of the root node, since those |
| 162 |
are defined by the nodetype nt:unstructered. |
| 163 |
--> |
| 164 |
<!-- |
| 165 |
<nodetypes> |
| 166 |
<nodetype>rep:root</nodetype> |
| 167 |
</nodetypes> |
| 168 |
--> |
| 169 |
<!-- |
| 170 |
Namespace prefixes or uris. Items having a name that matches any of the |
| 171 |
entries will be filtered. |
| 172 |
--> |
| 173 |
<namespaces> |
| 174 |
<prefix>rep</prefix> |
| 175 |
<prefix>jcr</prefix> |
| 176 |
<!-- |
| 177 |
<uri>internal</uri> |
| 178 |
<uri>http://www.jcp.org/jcr/1.0</uri> |
| 179 |
--> |
| 180 |
</namespaces> |
| 181 |
</filter> |
| 182 |
|
| 183 |
</config> |
| 184 |
|