| 1 |
<component name="default-repository-config"> |
|---|
| 2 |
|
|---|
| 3 |
<documentation> |
|---|
| 4 |
Defines the default JackRabbit repository used for development and testing. |
|---|
| 5 |
</documentation> |
|---|
| 6 |
|
|---|
| 7 |
<extension point="repository" target="org.nuxeo.ecm.core.repository.RepositoryService"> |
|---|
| 8 |
<documentation> |
|---|
| 9 |
Declare a JackRabbit repository to be used for development and tests. |
|---|
| 10 |
The extension content is the jackrabbit XML configuration of the repository. |
|---|
| 11 |
</documentation> |
|---|
| 12 |
<repository factory="org.nuxeo.ecm.core.repository.jcr.JCRRepositoryFactory" forceReloadTypes="false" name="default" securityManager="org.nuxeo.ecm.core.repository.jcr.JCRSecurityManager"> |
|---|
| 13 |
<Repository> |
|---|
| 14 |
<!-- |
|---|
| 15 |
virtual file system where the repository stores global state |
|---|
| 16 |
(e.g. registered namespaces, custom node types, etc.) |
|---|
| 17 |
--> |
|---|
| 18 |
<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> |
|---|
| 19 |
<param name="path" value="${rep.home}/repository"></param> |
|---|
| 20 |
</FileSystem> |
|---|
| 21 |
<!-- |
|---|
| 22 |
security configuration |
|---|
| 23 |
--> |
|---|
| 24 |
<Security appName="Jackrabbit"> |
|---|
| 25 |
<!-- |
|---|
| 26 |
access manager: |
|---|
| 27 |
class: FQN of class implementing the AccessManager interface |
|---|
| 28 |
--> |
|---|
| 29 |
<AccessManager class="org.apache.jackrabbit.core.security.SimpleAccessManager"> |
|---|
| 30 |
<!-- <param name="config" value="${rep.home}/access.xml"/> --> |
|---|
| 31 |
</AccessManager> |
|---|
| 32 |
<LoginModule class="org.apache.jackrabbit.core.security.SimpleLoginModule"> |
|---|
| 33 |
<!-- anonymous user name ('anonymous' is the default value) --> |
|---|
| 34 |
<param name="anonymousId" value="anonymous"></param> |
|---|
| 35 |
<!-- |
|---|
| 36 |
default user name to be used instead of the anonymous user |
|---|
| 37 |
when no login credentials are provided (unset by default) |
|---|
| 38 |
--> |
|---|
| 39 |
<!-- <param name="defaultUserId" value="superuser"/> --> |
|---|
| 40 |
</LoginModule> |
|---|
| 41 |
</Security> |
|---|
| 42 |
|
|---|
| 43 |
<!-- |
|---|
| 44 |
location of workspaces root directory and name of default workspace |
|---|
| 45 |
--> |
|---|
| 46 |
<Workspaces defaultWorkspace="default" rootPath="${rep.home}/workspaces"></Workspaces> |
|---|
| 47 |
<!-- |
|---|
| 48 |
workspace configuration template: |
|---|
| 49 |
used to create the initial workspace if there's no workspace yet |
|---|
| 50 |
--> |
|---|
| 51 |
<Workspace name="${wsp.name}"> |
|---|
| 52 |
<!-- |
|---|
| 53 |
virtual file system of the workspace: |
|---|
| 54 |
class: FQN of class implementing the FileSystem interface |
|---|
| 55 |
--> |
|---|
| 56 |
<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> |
|---|
| 57 |
<param name="path" value="${wsp.home}"></param> |
|---|
| 58 |
</FileSystem> |
|---|
| 59 |
|
|---|
| 60 |
<!-- |
|---|
| 61 |
persistence manager of the workspace: |
|---|
| 62 |
class: FQN of class implementing the PersistenceManager interface |
|---|
| 63 |
<PersistenceManager class="org.apache.jackrabbit.core.state.obj.ObjectPersistenceManager"> |
|---|
| 64 |
</PersistenceManager> |
|---|
| 65 |
--> |
|---|
| 66 |
|
|---|
| 67 |
<PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.PostgreSQLPersistenceManager"> |
|---|
| 68 |
<param name="driver" value="org.postgresql.Driver"></param> |
|---|
| 69 |
<param name="url" value="jdbc:postgresql://localhost:5433/nuxeo"></param> |
|---|
| 70 |
<param name="user" value="nuxeo"></param> |
|---|
| 71 |
<param name="password" value="myPr3c1ous"></param> |
|---|
| 72 |
<param name="schema" value="postgresql"></param> |
|---|
| 73 |
<param name="schemaObjectPrefix" value="jcr_${wsp.name}_"></param> |
|---|
| 74 |
<param name="externalBLOBs" value="false"></param> |
|---|
| 75 |
</PersistenceManager> |
|---|
| 76 |
|
|---|
| 77 |
<!-- |
|---|
| 78 |
Search index and the file system it uses. |
|---|
| 79 |
class: FQN of class implementing the QueryHandler interface |
|---|
| 80 |
--> |
|---|
| 81 |
<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex"> |
|---|
| 82 |
<param name="path" value="${wsp.home}/index"></param> |
|---|
| 83 |
</SearchIndex> |
|---|
| 84 |
</Workspace> |
|---|
| 85 |
|
|---|
| 86 |
<!-- |
|---|
| 87 |
Configures the versioning |
|---|
| 88 |
--> |
|---|
| 89 |
<Versioning rootPath="${rep.home}/version"> |
|---|
| 90 |
<!-- |
|---|
| 91 |
Configures the filesystem to use for versioning for the respective |
|---|
| 92 |
persistence manager |
|---|
| 93 |
--> |
|---|
| 94 |
<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> |
|---|
| 95 |
<param name="path" value="${rep.home}/version"></param> |
|---|
| 96 |
</FileSystem> |
|---|
| 97 |
|
|---|
| 98 |
<!-- |
|---|
| 99 |
Configures the persistence manager to be used for persisting version state. |
|---|
| 100 |
Please note that the current versioning implementation is based on |
|---|
| 101 |
a 'normal' persistence manager, but this could change in future |
|---|
| 102 |
implementations. |
|---|
| 103 |
<PersistenceManager class="org.apache.jackrabbit.core.state.obj.ObjectPersistenceManager"> |
|---|
| 104 |
</PersistenceManager> |
|---|
| 105 |
--> |
|---|
| 106 |
|
|---|
| 107 |
<PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.PostgreSQLPersistenceManager"> |
|---|
| 108 |
<param name="driver" value="org.postgresql.Driver"></param> |
|---|
| 109 |
<param name="url" value="jdbc:postgresql://localhost:5433/nuxeo"></param> |
|---|
| 110 |
<param name="user" value="nuxeo"></param> |
|---|
| 111 |
<param name="password" value="myPr3c1ous"></param> |
|---|
| 112 |
<param name="schema" value="postgresql"></param> |
|---|
| 113 |
<param name="schemaObjectPrefix" value="jcr_ver_"></param> |
|---|
| 114 |
<param name="externalBLOBs" value="false"></param> |
|---|
| 115 |
</PersistenceManager> |
|---|
| 116 |
</Versioning> |
|---|
| 117 |
|
|---|
| 118 |
<!-- |
|---|
| 119 |
Search index for content that is shared repository wide |
|---|
| 120 |
(/jcr:system tree, contains mainly versions) |
|---|
| 121 |
--> |
|---|
| 122 |
<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex"> |
|---|
| 123 |
<param name="path" value="${rep.home}/repository/index"></param> |
|---|
| 124 |
</SearchIndex> |
|---|
| 125 |
</Repository> |
|---|
| 126 |
</repository> |
|---|
| 127 |
</extension> |
|---|
| 128 |
</component> |
|---|