Guest User

Untitled

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