Advertisement
Guest User

Untitled

a guest
Sep 13th, 2017
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.83 KB | None | 0 0
  1. <?xml version="1.0"?>
  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 Repository
  20. PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 2.0//EN"
  21. "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
  22.  
  23. <Repository>
  24. <!--
  25. virtual file system where the repository stores global state
  26. (e.g. registered namespaces, custom node types, etc.).
  27.  
  28. ALERT: If you make changes to the Repository XML ensure that you delete
  29. all files is {solution_folder}/system/jackrabbit/repository and drop all
  30. the the tables in associated dbs to ensure you start with a pristine
  31. repository. If you leave artifacts you may run into errors resulting from
  32. an "inconsistent" repository!
  33. -->
  34. <!--
  35. Replace the following "FileSystem" XML node to use supported databases as
  36. the repository file system. Change the url, user, password and other parameters
  37. to suit your db installation. The schemaObjectPrefix should
  38. be a unique prefix that will be prepended to the table names.
  39. NOTE: The database must be pre-created in and match the parameters. See Jackrabbit
  40. documentation for further explanation.
  41. -->
  42.  
  43. <!--
  44. <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
  45. <param name="driver" value="com.mysql.jdbc.Driver"/>
  46. <param name="url" value="jdbc:mysql://localhost:3306/jackrabbit"/>
  47. <param name="user" value="jcr_user"/>
  48. <param name="password" value="password"/>
  49. <param name="schema" value="mysql"/>
  50. <param name="schemaObjectPrefix" value="fs_repos_"/>
  51. </FileSystem>
  52.  
  53. <FileSystem class="org.apache.jackrabbit.core.fs.db.OracleFileSystem">
  54. <param name="url" value="jdbc:oracle:thin:@localhost:1521/XE"/>
  55. <param name="user" value="jcr_user"/>
  56. <param name="password" value="password"/>
  57. <param name="schemaObjectPrefix" value="fs_repos_"/>
  58. <param name="tablespace" value="pentaho_tablespace"/>
  59. </FileSystem>
  60. -->
  61. <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
  62. <param name="driver" value="org.postgresql.Driver"/>
  63. <param name="url" value="jdbc:postgresql://localhost:5432/jackrabbit"/>
  64. <param name="user" value="jcr_user"/>
  65. <param name="password" value="mypaswd"/>
  66. <param name="schema" value="postgresql"/>
  67. <param name="schemaObjectPrefix" value="fs_repos_"/>
  68. </FileSystem>
  69. <!--
  70. <FileSystem class="org.apache.jackrabbit.core.fs.db.MSSqlFileSystem">
  71. <param name="driver" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
  72. <param name="url" value="jdbc:sqlserver://localhost:1433;DatabaseName=jackrabbit"/>
  73. <param name="user" value="jcr_user"/>
  74. <param name="password" value="password"/>
  75. <param name="schema" value="mssql"/>
  76. <param name="schemaObjectPrefix" value="fs_repos_"/>
  77. </FileSystem>
  78. -->
  79.  
  80. <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
  81. <param name="path" value="${rep.home}/repository"/>
  82. </FileSystem>
  83.  
  84. <!--
  85. data store configuration
  86. -->
  87. <!--
  88. Replace the following "DataStore" XML node to use supported databases as the data
  89. store for the repository. Change the url, user, password and other parameters
  90. to suit your db installation. The schemaObjectPrefix should
  91. be a unique prefix that will be prepended to the table names.
  92. NOTE: The database must be pre-created in and match the parameters. See Jackrabbit
  93. documentation for further explanation.
  94. -->
  95.  
  96. <!--
  97. <DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore">
  98. <param name="url" value="jdbc:mysql://localhost:3306/jackrabbit"/>
  99. <param name="user" value="jcr_user"/>
  100. <param name="password" value="password"/>
  101. <param name="databaseType" value="mysql"/>
  102. <param name="driver" value="com.mysql.jdbc.Driver"/>
  103. <param name="minRecordLength" value="1024"/>
  104. <param name="maxConnections" value="3"/>
  105. <param name="copyWhenReading" value="true"/>
  106. <param name="tablePrefix" value=""/>
  107. <param name="schemaObjectPrefix" value="ds_repos_"/>
  108. </DataStore>
  109.  
  110. <DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore">
  111. <param name="url" value="jdbc:oracle:thin:@localhost:1521/XE"/>
  112. <param name="driver" value="oracle.jdbc.OracleDriver"/>
  113. <param name="user" value="jcr_user"/>
  114. <param name="password" value="password"/>
  115. <param name="databaseType" value="oracle"/>
  116. <param name="minRecordLength" value="1024"/>
  117. <param name="maxConnections" value="3"/>
  118. <param name="copyWhenReading" value="true"/>
  119. <param name="tablePrefix" value=""/>
  120. <param name="schemaObjectPrefix" value="ds_repos_"/>
  121. </DataStore>
  122. -->
  123. <DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore">
  124. <param name="url" value="jdbc:postgresql://localhost:5432/jackrabbit"/>
  125. <param name="driver" value="org.postgresql.Driver"/>
  126. <param name="user" value="jcr_user"/>
  127. <param name="password" value="mypaswd"/>
  128. <param name="databaseType" value="postgresql"/>
  129. <param name="minRecordLength" value="1024"/>
  130. <param name="maxConnections" value="3"/>
  131. <param name="copyWhenReading" value="true"/>
  132. <param name="tablePrefix" value=""/>
  133. <param name="schemaObjectPrefix" value="ds_repos_"/>
  134. </DataStore>
  135. <!--
  136. <DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore">
  137. <param name="url" value="jdbc:sqlserver://localhost:1433;DatabaseName=jackrabbit"/>
  138. <param name="driver" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
  139. <param name="user" value="jcr_user"/>
  140. <param name="password" value="password"/>
  141. <param name="databaseType" value="mssql"/>
  142. <param name="minRecordLength" value="1024"/>
  143. <param name="maxConnections" value="3"/>
  144. <param name="copyWhenReading" value="true"/>
  145. <param name="tablePrefix" value=""/>
  146. <param name="schemaObjectPrefix" value="ds_repos_"/>
  147. </DataStore>
  148. -->
  149.  
  150.  
  151. <DataStore class="org.apache.jackrabbit.core.data.FileDataStore"/>
  152.  
  153. <!--
  154. security configuration
  155. -->
  156. <Security appName="Jackrabbit">
  157. <!--
  158. security manager:
  159. class: FQN of class implementing the JackrabbitSecurityManager interface
  160. -->
  161. <SecurityManager class="org.apache.jackrabbit.core.DefaultSecurityManager" workspaceName="security">
  162. <!--
  163. workspace access:
  164. class: FQN of class implementing the WorkspaceAccessManager interface
  165. -->
  166. <!-- <WorkspaceAccessManager class="..."/> -->
  167. <!-- <param name="config" value="${rep.home}/security.xml"/> -->
  168. </SecurityManager>
  169.  
  170. <!--
  171. access manager:
  172. class: FQN of class implementing the AccessManager interface
  173. -->
  174. <AccessManager class="org.apache.jackrabbit.core.security.DefaultAccessManager">
  175. <!-- <param name="config" value="${rep.home}/access.xml"/> -->
  176. </AccessManager>
  177.  
  178. <LoginModule class="org.pentaho.platform.repository2.unified.jcr.jackrabbit.security.SpringSecurityLoginModule">
  179. <!--
  180. anonymous user name ('anonymous' is the default value)
  181. -->
  182. <param name="anonymousId" value="anonymous"/>
  183. <!--
  184. administrator user id (default value if param is missing is 'admin')
  185. -->
  186. <param name="adminId" value="pentahoRepoAdmin"/>
  187.  
  188. <param name="principalProvider"
  189. value="org.pentaho.platform.repository2.unified.jcr.jackrabbit.security.SpringSecurityPrincipalProvider"/>
  190. <!-- comma separated list of pre-authentication tokens, one per application -->
  191. <param name="preAuthenticationTokens" value="ZchBOvP8q9FQ"/>
  192. <!-- must match PentahoSessionCredentialsStrategy.ATTR_PRE_AUTHENTICATION_TOKEN -->
  193. <param name="trust_credentials_attribute" value="pre_authentication_token"/>
  194. </LoginModule>
  195. </Security>
  196.  
  197. <!--
  198. location of workspaces root directory and name of default workspace
  199. -->
  200. <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"/>
  201. <!--
  202. workspace configuration template:
  203. used to create the initial workspace if there's no workspace yet
  204. -->
  205. <Workspace name="${wsp.name}">
  206. <!--
  207. virtual file system of the workspace:
  208. class: FQN of class implementing the FileSystem interface
  209. -->
  210. <!--
  211. Replace the following "FileSystem" XML node to use supported databases as
  212. the repository file system. Change the url, user, password and other parameters
  213. to suit your db installation. The schemaObjectPrefix should
  214. be a unique prefix that will be prepended to the table names.
  215. NOTE: The database must be pre-created in and match the parameters. See Jackrabbit
  216. documentation for further explanation.
  217. -->
  218. <!--
  219. <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
  220. <param name="driver" value="com.mysql.jdbc.Driver"/>
  221. <param name="url" value="jdbc:mysql://localhost:3306/jackrabbit"/>
  222. <param name="user" value="jcr_user"/>
  223. <param name="password" value="password"/>
  224. <param name="schema" value="mysql"/>
  225. <param name="schemaObjectPrefix" value="fs_ws_"/>
  226. </FileSystem>
  227.  
  228. <FileSystem class="org.apache.jackrabbit.core.fs.db.OracleFileSystem">
  229. <param name="url" value="jdbc:oracle:thin:@localhost:1521/XE"/>
  230. <param name="user" value="jcr_user"/>
  231. <param name="password" value="password"/>
  232. <param name="schemaObjectPrefix" value="fs_ws_"/>
  233. <param name="tablespace" value="pentaho_tablespace"/>
  234. </FileSystem>
  235. -->
  236. <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
  237. <param name="driver" value="org.postgresql.Driver"/>
  238. <param name="url" value="jdbc:postgresql://localhost:5432/jackrabbit"/>
  239. <param name="user" value="jcr_user"/>
  240. <param name="password" value="mypaswd"/>
  241. <param name="schema" value="postgresql"/>
  242. <param name="schemaObjectPrefix" value="fs_ws_"/>
  243. </FileSystem>
  244. <!--
  245. <FileSystem class="org.apache.jackrabbit.core.fs.db.MSSqlFileSystem">
  246. <param name="driver" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
  247. <param name="url" value="jdbc:sqlserver://localhost:1433;DatabaseName=jackrabbit"/>
  248. <param name="user" value="jcr_user"/>
  249. <param name="password" value="password"/>
  250. <param name="schema" value="mssql"/>
  251. <param name="schemaObjectPrefix" value="fs_ws_"/>
  252. </FileSystem>
  253. -->
  254.  
  255.  
  256. <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
  257. <param name="path" value="${wsp.home}"/>
  258. </FileSystem>
  259.  
  260.  
  261. <!--
  262. persistence manager of the workspace:
  263. class: FQN of class implementing the PersistenceManager interface
  264. -->
  265. <!--
  266. Replace the following "PersistenceManager" XML node to use a supported database as the
  267. persistenanceManager store. Change the url, user, password and parameters
  268. to suit your db installation. The schemaObjectPrefix should
  269. be a unique prefix that will be prepended to the table names.
  270. NOTE: The database must be pre-created in and match the parameters. See Jackrabbit
  271. documentation for further explanation.
  272. -->
  273. <!--
  274. <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager">
  275. <param name="driver" value="com.mysql.jdbc.Driver"/>
  276. <param name="url" value="jdbc:mysql://localhost:3306/jackrabbit"/>
  277. <param name="user" value="jcr_user" />
  278. <param name="password" value="password" />
  279. <param name="schema" value="mysql"/>
  280. <param name="schemaObjectPrefix" value="${wsp.name}_pm_ws_"/>
  281. </PersistenceManager>
  282.  
  283. <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.OraclePersistenceManager">
  284. <param name="url" value="jdbc:oracle:thin:@localhost:1521/XE"/>
  285. <param name="driver" value="oracle.jdbc.OracleDriver"/>
  286. <param name="user" value="jcr_user"/>
  287. <param name="password" value="password"/>
  288. <param name="schema" value="oracle"/>
  289. <param name="schemaObjectPrefix" value="${wsp.name}_pm_ws_"/>
  290. <param name="tablespace" value="pentaho_tablespace"/>
  291. </PersistenceManager>
  292. -->
  293. <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.PostgreSQLPersistenceManager">
  294. <param name="url" value="jdbc:postgresql://localhost:5432/jackrabbit"/>
  295. <param name="driver" value="org.postgresql.Driver"/>
  296. <param name="user" value="jcr_user"/>
  297. <param name="password" value="mypaswd"/>
  298. <param name="schema" value="postgresql"/>
  299. <param name="schemaObjectPrefix" value="${wsp.name}_pm_ws_"/>
  300. </PersistenceManager>
  301. <!--
  302. <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.MSSqlPersistenceManager">
  303. <param name="url" value="jdbc:sqlserver://localhost:1433;DatabaseName=jackrabbit"/>
  304. <param name="driver" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
  305. <param name="user" value="jcr_user"/>
  306. <param name="password" value="password"/>
  307. <param name="schema" value="mssql"/>
  308. <param name="schemaObjectPrefix" value="${wsp.name}_pm_ws_"/>
  309. </PersistenceManager>
  310. -->
  311.  
  312.  
  313. <PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.H2PersistenceManager">
  314. <param name="url" value="jdbc:h2:${wsp.home}/db"/>
  315. <param name="schemaObjectPrefix" value="${wsp.name}_"/>
  316. </PersistenceManager>
  317.  
  318. <!--
  319. Search index and the file system it uses.
  320. class: FQN of class implementing the QueryHandler interface
  321. -->
  322. <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
  323. <param name="path" value="${wsp.home}/index"/>
  324. <param name="supportHighlighting" value="true"/>
  325. </SearchIndex>
  326.  
  327.  
  328. <WorkspaceSecurity>
  329. <AccessControlProvider class="org.apache.jackrabbit.core.security.authorization.acl.PentahoACLProvider"/>
  330. </WorkspaceSecurity>
  331.  
  332. </Workspace>
  333.  
  334. <!--
  335. Configures the versioning
  336. -->
  337. <Versioning rootPath="${rep.home}/version">
  338. <!--
  339. Configures the filesystem to use for versioning for the respective
  340. persistence manager
  341. -->
  342. <!--
  343. Replace the following "FileSystem" XML node to use a supported database as
  344. the repository file system. Change the url, user, password and other parameters
  345. to suit your db installation. The schemaObjectPrefix should
  346. be a unique prefix that will be prepended to the table names.
  347. NOTE: The database must be pre-created in and match the parameters. See Jackrabbit
  348. documentation for further explanation.
  349. -->
  350. <!--
  351. <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
  352. <param name="driver" value="com.mysql.jdbc.Driver"/>
  353. <param name="url" value="jdbc:mysql://localhost:3306/jackrabbit"/>
  354. <param name="user" value="jcr_user"/>
  355. <param name="password" value="password"/>
  356. <param name="schema" value="mysql"/>
  357. <param name="schemaObjectPrefix" value="fs_ver_"/>
  358. </FileSystem>
  359.  
  360. <FileSystem class="org.apache.jackrabbit.core.fs.db.OracleFileSystem">
  361. <param name="url" value="jdbc:oracle:thin:@localhost:1521/XE"/>
  362. <param name="user" value="jcr_user"/>
  363. <param name="password" value="password"/>
  364. <param name="schemaObjectPrefix" value="fs_ver_"/>
  365. <param name="tablespace" value="pentaho_tablespace"/>
  366. </FileSystem>
  367. -->
  368. <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
  369. <param name="driver" value="org.postgresql.Driver"/>
  370. <param name="url" value="jdbc:postgresql://localhost:5432/jackrabbit"/>
  371. <param name="user" value="jcr_user"/>
  372. <param name="password" value="mypaswd"/>
  373. <param name="schema" value="postgresql"/>
  374. <param name="schemaObjectPrefix" value="fs_ver_"/>
  375. </FileSystem>
  376. <!--
  377. <FileSystem class="org.apache.jackrabbit.core.fs.db.MSSqlFileSystem">
  378. <param name="driver" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
  379. <param name="url" value="jdbc:sqlserver://localhost:1433;DatabaseName=jackrabbit"/>
  380. <param name="user" value="jcr_user"/>
  381. <param name="password" value="password"/>
  382. <param name="schema" value="mssql"/>
  383. <param name="schemaObjectPrefix" value="fs_ver_"/>
  384. </FileSystem>
  385. -->
  386.  
  387. <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
  388. <param name="path" value="${rep.home}/version" />
  389. </FileSystem>
  390.  
  391. <!--
  392. Configures the persistence manager to be used for persisting version state.
  393. Please note that the current versioning implementation is based on
  394. a 'normal' persistence manager, but this could change in future
  395. implementations.
  396. -->
  397. <!--
  398. Replace the following "PersistenceManager" XML node to use a supported database as the
  399. persistenanceManager store. Change the url, user, password and parameters
  400. to suit your db installation. The schemaObjectPrefix should
  401. be a unique prefix that will be prepended to the table names.
  402. NOTE: The database must be pre-created in and match the parameters. See Jackrabbit
  403. documentation for further explanation.
  404. -->
  405. <!--
  406. <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager">
  407. <param name="driver" value="com.mysql.jdbc.Driver"/>
  408. <param name="url" value="jdbc:mysql://localhost:3306/jackrabbit"/>
  409. <param name="user" value="jcr_user" />
  410. <param name="password" value="password" />
  411. <param name="schema" value="mysql"/>
  412. <param name="schemaObjectPrefix" value="pm_ver_"/>
  413. </PersistenceManager>
  414.  
  415. <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.OraclePersistenceManager">
  416. <param name="url" value="jdbc:oracle:thin:@localhost:1521/XE"/>
  417. <param name="driver" value="oracle.jdbc.OracleDriver"/>
  418. <param name="user" value="jcr_user"/>
  419. <param name="password" value="password"/>
  420. <param name="schema" value="oracle"/>
  421. <param name="schemaObjectPrefix" value="pm_ver_"/>
  422. <param name="tablespace" value="pentaho_tablespace"/>
  423. </PersistenceManager>
  424. -->
  425. <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.PostgreSQLPersistenceManager">
  426. <param name="url" value="jdbc:postgresql://localhost:5432/jackrabbit"/>
  427. <param name="driver" value="org.postgresql.Driver"/>
  428. <param name="user" value="jcr_user"/>
  429. <param name="password" value="mypaswd"/>
  430. <param name="schema" value="postgresql"/>
  431. <param name="schemaObjectPrefix" value="pm_ver_"/>
  432. </PersistenceManager>
  433. <!--
  434. <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.MSSqlPersistenceManager">
  435. <param name="url" value="jdbc:sqlserver://localhost:1433;DatabaseName=jackrabbit"/>
  436. <param name="driver" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
  437. <param name="user" value="jcr_user"/>
  438. <param name="password" value="password"/>
  439. <param name="schema" value="mssql"/>
  440. <param name="schemaObjectPrefix" value="pm_ver_"/>
  441. </PersistenceManager>
  442. -->
  443.  
  444. <PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.H2PersistenceManager">
  445. <param name="url" value="jdbc:h2:${rep.home}/version/db"/>
  446. <param name="schemaObjectPrefix" value="version_"/>
  447. </PersistenceManager>
  448.  
  449. </Versioning>
  450.  
  451. <!--
  452. Search index for content that is shared repository wide
  453. (/jcr:system tree, contains mainly versions)
  454. -->
  455. <!--
  456. In the platform, jackrabbit's lucene is trying to index all the text from every file in the repository.
  457. This is just to do a natural language search. This, however, is a feature neither BA nor DI servers support.
  458. -->
  459. <!--
  460. <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
  461. <param name="path" value="${rep.home}/repository/index"/>
  462. <param name="supportHighlighting" value="true"/>
  463. </SearchIndex>
  464. -->
  465. <!--
  466. Run with a cluster journal
  467. -->
  468. <Cluster id="node1">
  469. <Journal class="org.apache.jackrabbit.core.journal.MemoryJournal"/>
  470. </Cluster>
  471. </Repository>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement