hydra-head 4.1.3 → 5.0.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (412) hide show
  1. metadata +28 -617
  2. data/.gitignore +0 -73
  3. data/.gitmodules +0 -4
  4. data/Gemfile +0 -14
  5. data/HISTORY.textile +0 -99
  6. data/INSTALL_PREREQ.textile +0 -3
  7. data/LICENSE +0 -14
  8. data/README.textile +0 -129
  9. data/Rakefile +0 -5
  10. data/app/assets/images/hydra/powered_by_hydra.png +0 -0
  11. data/app/assets/images/hydra/search-button.png +0 -0
  12. data/app/assets/javascripts/date-picker/booking/index.html +0 -368
  13. data/app/assets/javascripts/date-picker/calendarHTML.txt +0 -84
  14. data/app/assets/javascripts/date-picker/css/datepicker.css +0 -511
  15. data/app/assets/javascripts/date-picker/css/demo.css +0 -229
  16. data/app/assets/javascripts/date-picker/index.html +0 -798
  17. data/app/assets/javascripts/date-picker/js/datepicker.js +0 -2898
  18. data/app/assets/javascripts/date-picker/js/datepicker.packed.js +0 -1
  19. data/app/assets/javascripts/date-picker/js/lang/ar.js +0 -9
  20. data/app/assets/javascripts/date-picker/js/lang/cs.js +0 -9
  21. data/app/assets/javascripts/date-picker/js/lang/da.js +0 -10
  22. data/app/assets/javascripts/date-picker/js/lang/de.js +0 -10
  23. data/app/assets/javascripts/date-picker/js/lang/en.js +0 -9
  24. data/app/assets/javascripts/date-picker/js/lang/eo.js +0 -13
  25. data/app/assets/javascripts/date-picker/js/lang/es.js +0 -9
  26. data/app/assets/javascripts/date-picker/js/lang/et.js +0 -23
  27. data/app/assets/javascripts/date-picker/js/lang/fi.js +0 -7
  28. data/app/assets/javascripts/date-picker/js/lang/fr.js +0 -69
  29. data/app/assets/javascripts/date-picker/js/lang/he.js +0 -9
  30. data/app/assets/javascripts/date-picker/js/lang/hu.js +0 -9
  31. data/app/assets/javascripts/date-picker/js/lang/id.js +0 -9
  32. data/app/assets/javascripts/date-picker/js/lang/it.js +0 -11
  33. data/app/assets/javascripts/date-picker/js/lang/kr.js +0 -9
  34. data/app/assets/javascripts/date-picker/js/lang/lt.js +0 -8
  35. data/app/assets/javascripts/date-picker/js/lang/lv.js +0 -9
  36. data/app/assets/javascripts/date-picker/js/lang/nl.js +0 -9
  37. data/app/assets/javascripts/date-picker/js/lang/no.js +0 -9
  38. data/app/assets/javascripts/date-picker/js/lang/pl.js +0 -10
  39. data/app/assets/javascripts/date-picker/js/lang/pt-br.js +0 -11
  40. data/app/assets/javascripts/date-picker/js/lang/pt.js +0 -9
  41. data/app/assets/javascripts/date-picker/js/lang/ru.js +0 -11
  42. data/app/assets/javascripts/date-picker/js/lang/se.js +0 -9
  43. data/app/assets/javascripts/date-picker/js/lang/si.js +0 -9
  44. data/app/assets/javascripts/date-picker/js/lang/tr.js +0 -9
  45. data/app/assets/javascripts/date-picker/language/index.html +0 -240
  46. data/app/assets/javascripts/date-picker/media/Thumbs.db +0 -0
  47. data/app/assets/javascripts/date-picker/media/backstripes.gif +0 -0
  48. data/app/assets/javascripts/date-picker/media/bg_header.jpg +0 -0
  49. data/app/assets/javascripts/date-picker/media/bullet1.gif +0 -0
  50. data/app/assets/javascripts/date-picker/media/bullet2.gif +0 -0
  51. data/app/assets/javascripts/date-picker/media/cal-grey.gif +0 -0
  52. data/app/assets/javascripts/date-picker/media/cal.gif +0 -0
  53. data/app/assets/javascripts/date-picker/media/gradient-e5e5e5-ffffff.gif +0 -0
  54. data/app/assets/javascripts/hydra/hydra-head.js +0 -195
  55. data/app/assets/javascripts/hydra/mediashelf.datepicker.js +0 -39
  56. data/app/assets/javascripts/hydra/mediashelf.placeholder.js +0 -67
  57. data/app/assets/javascripts/jquery.form.js +0 -1076
  58. data/app/assets/javascripts/jquery.ui.datepicker.js +0 -1793
  59. data/app/assets/javascripts/spin.min.js +0 -2
  60. data/app/assets/stylesheets/hydra/html_refactor.css +0 -79
  61. data/app/assets/stylesheets/hydra/hydrangea-split-button.css +0 -18
  62. data/app/assets/stylesheets/hydra/hydrangea.css +0 -288
  63. data/app/assets/stylesheets/hydra/ie-styles.css +0 -149
  64. data/app/assets/stylesheets/hydra/styles.css +0 -946
  65. data/app/assets/stylesheets/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  66. data/app/assets/stylesheets/redmond/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
  67. data/app/assets/stylesheets/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  68. data/app/assets/stylesheets/redmond/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  69. data/app/assets/stylesheets/redmond/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  70. data/app/assets/stylesheets/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  71. data/app/assets/stylesheets/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  72. data/app/assets/stylesheets/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  73. data/app/assets/stylesheets/redmond/images/ui-icons_217bc0_256x240.png +0 -0
  74. data/app/assets/stylesheets/redmond/images/ui-icons_2e83ff_256x240.png +0 -0
  75. data/app/assets/stylesheets/redmond/images/ui-icons_469bdd_256x240.png +0 -0
  76. data/app/assets/stylesheets/redmond/images/ui-icons_6da8d5_256x240.png +0 -0
  77. data/app/assets/stylesheets/redmond/images/ui-icons_cd0a0a_256x240.png +0 -0
  78. data/app/assets/stylesheets/redmond/images/ui-icons_d8e7f3_256x240.png +0 -0
  79. data/app/assets/stylesheets/redmond/images/ui-icons_f9bd01_256x240.png +0 -0
  80. data/app/assets/stylesheets/redmond/jquery-ui-1.8.5.custom.css +0 -572
  81. data/app/controllers/downloads_controller.rb +0 -20
  82. data/app/controllers/hydra/application_controller.rb +0 -5
  83. data/app/controllers/hydra/assets_controller.rb +0 -12
  84. data/app/controllers/hydra/contributors_controller.rb +0 -115
  85. data/app/controllers/hydra/file_assets_controller.rb +0 -3
  86. data/app/controllers/hydra/permissions_controller.rb +0 -117
  87. data/app/controllers/user_sessions_controller.rb +0 -13
  88. data/app/helpers/application_helper.rb +0 -3
  89. data/app/helpers/article_metadata_helper.rb +0 -4
  90. data/app/helpers/blacklight_helper.rb +0 -4
  91. data/app/helpers/downloads_helper.rb +0 -4
  92. data/app/helpers/facets_helper.rb +0 -4
  93. data/app/helpers/generic_content_objects_helper.rb +0 -4
  94. data/app/helpers/hydra/application_helper_behavior.rb +0 -8
  95. data/app/helpers/hydra/article_metadata_helper_behavior.rb +0 -95
  96. data/app/helpers/hydra/blacklight_helper_behavior.rb +0 -128
  97. data/app/helpers/hydra/downloads_helper_behavior.rb +0 -24
  98. data/app/helpers/hydra/facets_helper_behavior.rb +0 -34
  99. data/app/helpers/hydra/generic_content_objects_helper_behavior.rb +0 -17
  100. data/app/helpers/hydra/hydra_assets_helper_behavior.rb +0 -76
  101. data/app/helpers/hydra/hydra_fedora_metadata_helper_behavior.rb +0 -379
  102. data/app/helpers/hydra/hydra_helper_behavior.rb +0 -195
  103. data/app/helpers/hydra/hydra_uploader_helper_behavior.rb +0 -23
  104. data/app/helpers/hydra/inline_editable_metadata_helper_behavior.rb +0 -21
  105. data/app/helpers/hydra/javascript_includes_helper_behavior.rb +0 -94
  106. data/app/helpers/hydra/personalization_helper_behavior.rb +0 -49
  107. data/app/helpers/hydra/release_process_helper_behavior.rb +0 -37
  108. data/app/helpers/hydra_assets_helper.rb +0 -4
  109. data/app/helpers/hydra_fedora_metadata_helper.rb +0 -4
  110. data/app/helpers/hydra_helper.rb +0 -4
  111. data/app/helpers/hydra_uploader_helper.rb +0 -4
  112. data/app/helpers/inline_editable_metadata_helper.rb +0 -4
  113. data/app/helpers/javascript_includes_helper.rb +0 -4
  114. data/app/helpers/personalization_helper.rb +0 -4
  115. data/app/helpers/release_process_helper.rb +0 -4
  116. data/app/models/file_asset.rb +0 -5
  117. data/app/models/generic_content.rb +0 -26
  118. data/app/models/generic_image.rb +0 -67
  119. data/app/models/hydra/datastream/properties.rb +0 -24
  120. data/app/models/mods_asset.rb +0 -24
  121. data/app/models/superuser.rb +0 -14
  122. data/app/models/user_attribute.rb +0 -37
  123. data/app/models/uses_default_partials.rb +0 -23
  124. data/app/views/_add_assets_links.html.erb +0 -14
  125. data/app/views/_flash_msg.html.erb +0 -5
  126. data/app/views/_user_util_links.html.erb +0 -31
  127. data/app/views/catalog/_citation.html.erb +0 -11
  128. data/app/views/catalog/_constraints_element.html.erb +0 -34
  129. data/app/views/catalog/_delete_partials/_default.html.erb +0 -22
  130. data/app/views/catalog/_document_list.html.erb +0 -11
  131. data/app/views/catalog/_edit_partials/_default.html.erb +0 -57
  132. data/app/views/catalog/_edit_partials/_default_details.html.erb +0 -13
  133. data/app/views/catalog/_facets.html.erb +0 -37
  134. data/app/views/catalog/_home.html.erb +0 -6
  135. data/app/views/catalog/_home_text.html.erb +0 -4
  136. data/app/views/catalog/_index_partials/_default.html.erb +0 -20
  137. data/app/views/catalog/_index_partials/_default_details.html.erb +0 -14
  138. data/app/views/catalog/_index_partials/_default_group.html.erb +0 -15
  139. data/app/views/catalog/_opensearch_response_metadata.html.erb +0 -2
  140. data/app/views/catalog/_show_partials/_default.html.erb +0 -21
  141. data/app/views/catalog/_show_partials/_default_details.html.erb +0 -15
  142. data/app/views/catalog/_show_partials/_facets.html.erb +0 -52
  143. data/app/views/catalog/_sms_form.html.erb +0 -21
  144. data/app/views/catalog/_sort_and_per_page.html.erb +0 -23
  145. data/app/views/catalog/_uva_tabs.html.erb +0 -10
  146. data/app/views/catalog/about.html.erb +0 -0
  147. data/app/views/catalog/show.html.erb +0 -40
  148. data/app/views/contributors/_add_contributor_split_button.html.erb +0 -10
  149. data/app/views/contributors/_edit_conference.html.erb +0 -29
  150. data/app/views/contributors/_edit_organization.html.erb +0 -29
  151. data/app/views/contributors/_edit_person.html.erb +0 -39
  152. data/app/views/contributors/_index.html.erb +0 -11
  153. data/app/views/contributors/_new.html.erb +0 -10
  154. data/app/views/contributors/_show_conference.html.erb +0 -12
  155. data/app/views/contributors/_show_organization.html.erb +0 -21
  156. data/app/views/contributors/_show_person.html.erb +0 -17
  157. data/app/views/contributors/new.html.erb +0 -14
  158. data/app/views/downloads/index.html.erb +0 -1
  159. data/app/views/generic_content_objects/_contributor_form.html.erb +0 -11
  160. data/app/views/generic_content_objects/_description_form.html.erb +0 -7
  161. data/app/views/generic_content_objects/_edit_description.html.erb +0 -23
  162. data/app/views/generic_content_objects/_new.html.erb +0 -0
  163. data/app/views/generic_content_objects/_show_description.html.erb +0 -41
  164. data/app/views/generic_contents/_edit.html.erb +0 -10
  165. data/app/views/generic_contents/_index.html.erb +0 -21
  166. data/app/views/generic_contents/_show.html.erb +0 -6
  167. data/app/views/generic_contents/_show_content.html.erb +0 -7
  168. data/app/views/generic_images/_edit.html.erb +0 -36
  169. data/app/views/generic_images/_index.html.erb +0 -24
  170. data/app/views/generic_images/_show.html.erb +0 -13
  171. data/app/views/generic_images/_show_all.html.erb +0 -14
  172. data/app/views/generic_images/_show_content.html.erb +0 -7
  173. data/app/views/hydra/file_assets/_asset_saved_flash.html.erb +0 -2
  174. data/app/views/hydra/file_assets/_deletable_result.html.erb +0 -5
  175. data/app/views/hydra/file_assets/_file_assets_form.html.erb +0 -11
  176. data/app/views/hydra/file_assets/_index.html.erb +0 -29
  177. data/app/views/hydra/file_assets/_new.html.erb +0 -6
  178. data/app/views/hydra/file_assets/_result.html.erb +0 -11
  179. data/app/views/hydra/file_assets/index.html.erb +0 -5
  180. data/app/views/hydra/permissions/_edit_person_permissions.html.erb +0 -30
  181. data/app/views/hydra/permissions/_index.html.erb +0 -46
  182. data/app/views/hydra/permissions/_new.html.erb +0 -14
  183. data/app/views/hydra/permissions/_permissions_form.html.erb +0 -23
  184. data/app/views/hydra/permissions/index.html.erb +0 -1
  185. data/app/views/hydra/permissions/new.html.erb +0 -1
  186. data/app/views/layouts/hydra-head.html.erb +0 -47
  187. data/app/views/mods_assets/_additional_info_form.html.erb +0 -44
  188. data/app/views/mods_assets/_contributor_form.html.erb +0 -14
  189. data/app/views/mods_assets/_edit.html.erb +0 -10
  190. data/app/views/mods_assets/_edit_description.html.erb +0 -73
  191. data/app/views/mods_assets/_edit_journal.html.erb +0 -57
  192. data/app/views/mods_assets/_index.html.erb +0 -1
  193. data/app/views/mods_assets/_index_list.html.erb +0 -37
  194. data/app/views/mods_assets/_index_table.html.erb +0 -7
  195. data/app/views/mods_assets/_progress_box.html.erb +0 -82
  196. data/app/views/mods_assets/_publication_form.html.erb +0 -13
  197. data/app/views/mods_assets/_show.html.erb +0 -39
  198. data/app/views/mods_assets/_show_additional_info.html.erb +0 -17
  199. data/app/views/mods_assets/_show_contributors.html.erb +0 -7
  200. data/app/views/mods_assets/_show_description.html.erb +0 -35
  201. data/app/views/mods_assets/_show_file_assets.html.erb +0 -22
  202. data/app/views/mods_assets/_show_journal.html.erb +0 -42
  203. data/app/views/mods_assets/_show_permissions.html.erb +0 -15
  204. data/app/views/mods_assets/_show_publication.html.erb +0 -8
  205. data/app/views/shared/_delete_asset_confirmation.html.erb +0 -17
  206. data/app/views/user_sessions/_login_form.html.erb +0 -10
  207. data/app/views/user_sessions/logged_out.html.erb +0 -1
  208. data/config/fedora.yml +0 -15
  209. data/config/jetty.yml +0 -6
  210. data/config/locales/hydra.en.yml +0 -7
  211. data/config/role_map_cucumber.yml +0 -10
  212. data/config/role_map_development.yml +0 -12
  213. data/config/role_map_production.yml +0 -2
  214. data/config/role_map_test.yml +0 -14
  215. data/config/routes.rb +0 -12
  216. data/config/solr.yml +0 -9
  217. data/config/solr_mappings.yml +0 -22
  218. data/db/migrate/20101105214243_add_user_attributes_table.rb +0 -15
  219. data/db/migrate/20101108192527_create_superusers.rb +0 -12
  220. data/fedora_conf/conf/development/fedora.fcfg +0 -1021
  221. data/fedora_conf/conf/test/fedora.fcfg +0 -1021
  222. data/hydra-head.gemspec +0 -41
  223. data/init.rb +0 -4
  224. data/install.rb +0 -1
  225. data/lib/application_helper.rb +0 -3
  226. data/lib/generators/hydra/assets_generator.rb +0 -50
  227. data/lib/generators/hydra/cucumber_support_generator.rb +0 -29
  228. data/lib/generators/hydra/head_generator.rb +0 -165
  229. data/lib/generators/hydra/hyhead_fixtures_generator.rb +0 -27
  230. data/lib/generators/hydra/templates/catalog_controller.rb +0 -162
  231. data/lib/generators/hydra/templates/config/fedora.yml +0 -14
  232. data/lib/generators/hydra/templates/config/initializers/action_dispatch_http_upload_monkey_patch.rb +0 -12
  233. data/lib/generators/hydra/templates/config/initializers/hydra_config.rb +0 -44
  234. data/lib/generators/hydra/templates/config/role_map_cucumber.yml +0 -10
  235. data/lib/generators/hydra/templates/config/role_map_development.yml +0 -12
  236. data/lib/generators/hydra/templates/config/role_map_production.yml +0 -2
  237. data/lib/generators/hydra/templates/config/role_map_test.yml +0 -15
  238. data/lib/generators/hydra/templates/config/solr.yml +0 -10
  239. data/lib/generators/hydra/templates/config/solr_mappings.yml +0 -22
  240. data/lib/generators/hydra/templates/fedora_conf/conf/development/fedora.fcfg +0 -1021
  241. data/lib/generators/hydra/templates/fedora_conf/conf/test/fedora.fcfg +0 -1021
  242. data/lib/generators/hydra/templates/migrations/create_superusers.rb +0 -12
  243. data/lib/generators/hydra/templates/solr_conf/conf/schema.xml +0 -124
  244. data/lib/generators/hydra/templates/solr_conf/conf/solrconfig.xml +0 -394
  245. data/lib/generators/hydra/templates/solr_conf/solr.xml +0 -35
  246. data/lib/hydra-head.rb +0 -29
  247. data/lib/hydra-head/controller.rb +0 -29
  248. data/lib/hydra-head/engine.rb +0 -29
  249. data/lib/hydra-head/routes.rb +0 -90
  250. data/lib/hydra-head/version.rb +0 -4
  251. data/lib/hydra.rb +0 -52
  252. data/lib/hydra/assets.rb +0 -7
  253. data/lib/hydra/assets_controller_helper.rb +0 -122
  254. data/lib/hydra/catalog.rb +0 -11
  255. data/lib/hydra/controller.rb +0 -26
  256. data/lib/hydra/controller/assets_controller_behavior.rb +0 -143
  257. data/lib/hydra/controller/catalog_controller_behavior.rb +0 -56
  258. data/lib/hydra/controller/controller_behavior.rb +0 -59
  259. data/lib/hydra/controller/file_assets_behavior.rb +0 -144
  260. data/lib/hydra/controller/repository_controller_behavior.rb +0 -119
  261. data/lib/hydra/controller/upload_behavior.rb +0 -139
  262. data/lib/hydra/file_assets.rb +0 -11
  263. data/lib/hydra/file_assets_helper.rb +0 -12
  264. data/lib/hydra/generic_content.rb +0 -130
  265. data/lib/hydra/generic_image.rb +0 -112
  266. data/lib/hydra/generic_user_attributes.rb +0 -41
  267. data/lib/hydra/global_configurable.rb +0 -46
  268. data/lib/hydra/model_methods.rb +0 -104
  269. data/lib/hydra/model_mixins.rb +0 -8
  270. data/lib/hydra/model_mixins/common_metadata.rb +0 -25
  271. data/lib/hydra/model_mixins/solr_document_extension.rb +0 -24
  272. data/lib/hydra/models/file_asset.rb +0 -78
  273. data/lib/hydra/repository_controller.rb +0 -28
  274. data/lib/hydra/rights_metadata.rb +0 -194
  275. data/lib/hydra/solr.rb +0 -9
  276. data/lib/hydra/submission_workflow.rb +0 -138
  277. data/lib/hydra/superuser_attributes.rb +0 -19
  278. data/lib/hydra/ui.rb +0 -6
  279. data/lib/hydra/ui/controller.rb +0 -46
  280. data/lib/hydra/workflow.rb +0 -5
  281. data/lib/hydra/workflow/controller.rb +0 -3
  282. data/lib/mediashelf/active_fedora_helper.rb +0 -73
  283. data/lib/prev_next_links.rb +0 -33
  284. data/lib/railties/active-fedora.rake +0 -1
  285. data/lib/railties/hydra-fixtures.rake +0 -50
  286. data/lib/railties/hydra_jetty.rake +0 -53
  287. data/lib/user_attributes_loader.rb +0 -26
  288. data/solr/conf/schema.xml +0 -116
  289. data/solr/conf/solrconfig.xml +0 -311
  290. data/solr/solr.xml +0 -35
  291. data/solr_conf/conf/schema.xml +0 -124
  292. data/solr_conf/conf/solrconfig.xml +0 -394
  293. data/solr_conf/solr.xml +0 -35
  294. data/tasks/active-fedora.rake +0 -1
  295. data/tasks/hydra-head-fixtures.rake +0 -58
  296. data/tasks/hydra-head.rake +0 -209
  297. data/tasks/hydra_jetty.rake +0 -53
  298. data/tasks/hyhead_rspec.rake +0 -57
  299. data/tasks/replicator.rake +0 -27
  300. data/tasks/solrizer-fedora.rake +0 -53
  301. data/tasks/solrizer.rake +0 -13
  302. data/test_support/etc/Gemfile +0 -46
  303. data/test_support/etc/common_metadata_asset.rb +0 -18
  304. data/test_support/features/absent_model_edit.feature +0 -27
  305. data/test_support/features/absent_model_search_result.feature +0 -18
  306. data/test_support/features/absent_model_show.feature +0 -27
  307. data/test_support/features/button_add_assets.feature +0 -22
  308. data/test_support/features/button_add_generic_content.feature +0 -11
  309. data/test_support/features/button_add_image.feature +0 -11
  310. data/test_support/features/button_add_mods_asset.feature +0 -11
  311. data/test_support/features/button_delete_asset.feature +0 -13
  312. data/test_support/features/contributor_add.feature +0 -44
  313. data/test_support/features/default_partials_edit.feature +0 -27
  314. data/test_support/features/default_partials_search_result.feature +0 -22
  315. data/test_support/features/default_partials_show.feature +0 -24
  316. data/test_support/features/file_upload.feature +0 -80
  317. data/test_support/features/generic_content_create.feature +0 -7
  318. data/test_support/features/generic_content_edit.feature +0 -21
  319. data/test_support/features/generic_content_search_result.feature +0 -22
  320. data/test_support/features/generic_content_show.feature +0 -20
  321. data/test_support/features/generic_image_create.feature +0 -7
  322. data/test_support/features/generic_image_edit.feature +0 -21
  323. data/test_support/features/generic_image_search_result.feature +0 -22
  324. data/test_support/features/generic_image_show.feature +0 -20
  325. data/test_support/features/home_page.feature +0 -9
  326. data/test_support/features/html_validity.feature +0 -43
  327. data/test_support/features/mods_asset_contributors_edit.feature +0 -88
  328. data/test_support/features/mods_asset_create.feature +0 -17
  329. data/test_support/features/mods_asset_edit.feature +0 -65
  330. data/test_support/features/mods_asset_edit_without_permission.feature +0 -15
  331. data/test_support/features/mods_asset_search_result.feature +0 -24
  332. data/test_support/features/mods_asset_show.feature +0 -90
  333. data/test_support/features/nonexistent_object_show.feature +0 -9
  334. data/test_support/features/permissions_add.feature +0 -16
  335. data/test_support/features/permissions_edit.feature +0 -65
  336. data/test_support/features/step_definitions/catalog_index_steps.rb +0 -14
  337. data/test_support/features/step_definitions/create_asset_steps.rb +0 -3
  338. data/test_support/features/step_definitions/edit_metadata_steps.rb +0 -72
  339. data/test_support/features/step_definitions/file_list_steps.rb +0 -36
  340. data/test_support/features/step_definitions/html_validity_steps.rb +0 -64
  341. data/test_support/features/step_definitions/hydra_metadata_steps.rb +0 -3
  342. data/test_support/features/step_definitions/hydra_steps.rb +0 -8
  343. data/test_support/features/step_definitions/inline_editable_edit_steps.rb +0 -77
  344. data/test_support/features/step_definitions/search_steps.rb +0 -88
  345. data/test_support/features/step_definitions/searching_steps.rb +0 -22
  346. data/test_support/features/step_definitions/show_document_steps.rb +0 -89
  347. data/test_support/features/step_definitions/user_steps.rb +0 -42
  348. data/test_support/features/step_definitions/web_steps.rb +0 -223
  349. data/test_support/features/support/env.rb +0 -57
  350. data/test_support/features/support/paths.rb +0 -85
  351. data/test_support/features/switch_users.feature +0 -14
  352. data/test_support/features/view_catalog_index.feature +0 -18
  353. data/test_support/fixtures/empty_file.txt +0 -0
  354. data/test_support/fixtures/hydra_test_default_partials.foxml.xml +0 -80
  355. data/test_support/fixtures/hydra_test_generic_content.foxml.xml +0 -138
  356. data/test_support/fixtures/hydra_test_generic_image.foxml.xml +0 -395
  357. data/test_support/fixtures/hydra_test_no_model.foxml.xml +0 -79
  358. data/test_support/fixtures/hydrangea_fixture_archivist_only_mods_article.foxml.xml +0 -1212
  359. data/test_support/fixtures/hydrangea_fixture_file_asset1.foxml.xml +0 -4946
  360. data/test_support/fixtures/hydrangea_fixture_mods_article1.foxml.xml +0 -234
  361. data/test_support/fixtures/hydrangea_fixture_mods_article2.foxml.xml +0 -177
  362. data/test_support/fixtures/hydrangea_fixture_mods_article3.foxml.xml +0 -170
  363. data/test_support/fixtures/hydrangea_fixture_mods_dataset1.foxml.xml +0 -187
  364. data/test_support/fixtures/hydrangea_fixture_uploaded_svg1.foxml.xml +0 -676
  365. data/test_support/fixtures/hydrus_admin_class1.foxml.xml +0 -176
  366. data/test_support/fixtures/image.jp2 +0 -0
  367. data/test_support/fixtures/libra-oa_1.foxml.xml +0 -2324
  368. data/test_support/fixtures/libra-oa_2.foxml.xml +0 -2422
  369. data/test_support/fixtures/libra-oa_7.foxml.xml +0 -1735
  370. data/test_support/fixtures/small_file.txt +0 -1
  371. data/test_support/spec/controllers/catalog_controller_spec.rb +0 -138
  372. data/test_support/spec/controllers/catalog_controller_viewing_context_spec.rb +0 -67
  373. data/test_support/spec/controllers/catalog_valid_html_spec.rb +0 -123
  374. data/test_support/spec/controllers/contributors_controller_spec.rb +0 -67
  375. data/test_support/spec/controllers/file_assets_controller_spec.rb +0 -194
  376. data/test_support/spec/controllers/hydra-assets_controller_spec.rb +0 -151
  377. data/test_support/spec/controllers/hydra_controller_spec.rb +0 -43
  378. data/test_support/spec/controllers/hydra_ui_controller_spec.rb +0 -21
  379. data/test_support/spec/controllers/permissions_controller_spec.rb +0 -39
  380. data/test_support/spec/controllers/user_sessions_controller_spec.rb +0 -35
  381. data/test_support/spec/factories.rb +0 -11
  382. data/test_support/spec/helpers/access_controls_enforcement_spec.rb +0 -119
  383. data/test_support/spec/helpers/access_controls_evaluation_spec.rb +0 -26
  384. data/test_support/spec/helpers/assets_controller_helper_spec.rb +0 -63
  385. data/test_support/spec/helpers/blacklight_helper_spec.rb +0 -60
  386. data/test_support/spec/helpers/file_assets_helper_spec.rb +0 -116
  387. data/test_support/spec/helpers/generic_content_objects_helper_spec.rb +0 -17
  388. data/test_support/spec/helpers/hydra-repository_controller_spec.rb +0 -54
  389. data/test_support/spec/helpers/hydra_assets_helper_spec.rb +0 -143
  390. data/test_support/spec/helpers/hydra_fedora_metadata_helper_spec.rb +0 -255
  391. data/test_support/spec/helpers/hydra_helper_spec.rb +0 -105
  392. data/test_support/spec/helpers/hydra_model_methods_spec.rb +0 -88
  393. data/test_support/spec/helpers/hydra_uploader_helper_spec.rb +0 -26
  394. data/test_support/spec/helpers/javascript_includes_helper_spec.rb +0 -51
  395. data/test_support/spec/integration/file_asset_spec.rb +0 -68
  396. data/test_support/spec/lib/catalog_spec.rb +0 -23
  397. data/test_support/spec/lib/global_configurable_spec.rb +0 -98
  398. data/test_support/spec/lib/hydra_submission_workflow_spec.rb +0 -141
  399. data/test_support/spec/lib/model_methods_spec.rb +0 -29
  400. data/test_support/spec/models/file_asset_spec.rb +0 -25
  401. data/test_support/spec/models/generic_content_spec.rb +0 -39
  402. data/test_support/spec/models/generic_image_spec.rb +0 -75
  403. data/test_support/spec/models/mods_asset_spec.rb +0 -20
  404. data/test_support/spec/models/solr_document_spec.rb +0 -17
  405. data/test_support/spec/models/user_spec.rb +0 -94
  406. data/test_support/spec/rcov.opts +0 -3
  407. data/test_support/spec/spec.opts +0 -4
  408. data/test_support/spec/spec_helper.rb +0 -63
  409. data/test_support/spec/support/matchers/helper_matcher.rb +0 -14
  410. data/test_support/spec/support/matchers/solr_matchers.rb +0 -60
  411. data/test_support/spec/unit/hydra-head-engine_spec.rb +0 -8
  412. data/test_support/spec/unit/hydra-head_spec.rb +0 -8
@@ -1,14 +0,0 @@
1
- development:
2
- user: fedoraAdmin
3
- password: fedoraAdmin
4
- url: http://127.0.0.1:8983/fedora
5
- test: &TEST
6
- user: fedoraAdmin
7
- password: fedoraAdmin
8
- url: <%= "http://127.0.0.1:#{ENV['TEST_JETTY_PORT'] || 8983}/fedora-test" %>
9
- production:
10
- user: fedoraAdmin
11
- password: fedoraAdmin
12
- url: http://your.production.server:8080/fedora
13
- cucumber:
14
- <<: *TEST
@@ -1,12 +0,0 @@
1
- module ActionDispatch
2
- module Http
3
- class UploadedFile
4
- def closed?
5
- @tempfile.closed?
6
- end
7
- def close
8
- @tempfile.close
9
- end
10
- end
11
- end
12
- end
@@ -1,44 +0,0 @@
1
- require "hydra"
2
-
3
- # The following lines determine which user attributes your hydrangea app will use
4
- # This configuration allows you to use the out of the box ActiveRecord associations between users and user_attributes
5
- # It also allows you to specify your own user attributes
6
- # The easiest way to override these methods would be to create your own module to include in User
7
- # For example you could create a module for your local LDAP instance called MyLocalLDAPUserAttributes:
8
- # User.send(:include, MyLocalLDAPAttributes)
9
- # As long as your module includes methods for full_name, affiliation, and photo the personalization_helper should function correctly
10
- #
11
- # NOTE: For your development environment, also specify the module in lib/user_attributes_loader.rb
12
- User.send(:include, Hydra::GenericUserAttributes)
13
-
14
- if Hydra.respond_to?(:configure)
15
- Hydra.configure(:shared) do |config|
16
-
17
- config[:submission_workflow] = {
18
- :mods_assets => [{:name => "contributor", :edit_partial => "mods_assets/contributor_form", :show_partial => "mods_assets/show_contributors"},
19
- {:name => "publication", :edit_partial => "mods_assets/publication_form", :show_partial => "mods_assets/show_publication"},
20
- {:name => "additional_info", :edit_partial => "mods_assets/additional_info_form", :show_partial => "mods_assets/show_additional_info"},
21
- {:name => "files", :edit_partial => "hydra/file_assets/file_assets_form", :show_partial => "mods_assets/show_file_assets"},
22
- {:name => "permissions", :edit_partial => "hydra/permissions/permissions_form", :show_partial => "mods_assets/show_permissions"}
23
- ],
24
- # Not being used right now
25
- :generic_contents => [{:name => "description", :edit_partial => "generic_content_objects/description_form", :show_partial => "generic_contents/show_description"},
26
- {:name => "files", :edit_partial => "hydra/file_assets/file_assets_form", :show_partial => "file_assets/index"},
27
- {:name => "permissions", :edit_partial => "hydra/permissions/permissions_form", :show_partial => "generic_contents/show_permissions"},
28
- {:name => "contributor", :edit_partial => "generic_content_objects/contributor_form", :show_partial => "generic_contents/show_contributors"}
29
- ]
30
- }
31
-
32
- # This specifies the solr field names of permissions-related fields.
33
- # You only need to change these values if you've indexed permissions by some means other than the Hydra's built-in tooling.
34
- # If you change these, you must also update the permissions request handler in your solrconfig.xml to return those values
35
- config[:permissions] = {
36
- :catchall => "access_t",
37
- :discover => {:group =>"discover_access_group_t", :individual=>"discover_access_person_t"},
38
- :read => {:group =>"read_access_group_t", :individual=>"read_access_person_t"},
39
- :edit => {:group =>"edit_access_group_t", :individual=>"edit_access_person_t"},
40
- :owner => "depositor_t",
41
- :embargo_release_date => "embargo_release_date_dt"
42
- }
43
- end
44
- end
@@ -1,10 +0,0 @@
1
- archivist:
2
- - archivist1@example.com
3
- donor:
4
- - donor1@example.com
5
- researcher:
6
- - researcher1@example.com
7
- patron:
8
- - patron1@example.com
9
- admin_policy_object_editor:
10
- - archivist1@example.com
@@ -1,12 +0,0 @@
1
- uva-only:
2
- - uva-only
3
- archivist:
4
- - archivist1@example.com
5
- donor:
6
- - donor1@example.com
7
- researcher:
8
- - researcher1@example.com
9
- patron:
10
- - patron1@example.com
11
- admin_policy_object_editor:
12
- - archivist1@example.com
@@ -1,15 +0,0 @@
1
- archivist:
2
- - archivist1@example.com
3
- - archivist2@example.com
4
- - leland_himself@example.com
5
- admin_policy_object_editor:
6
- - archivist1@example.com
7
- donor:
8
- - donor1@example.com
9
- - leland_himself@example.com
10
- researcher:
11
- - archivist1@example.com
12
- - researcher1@example.com
13
- patron:
14
- - patron1@example.com
15
- - leland_himself@example.com
@@ -1,10 +0,0 @@
1
- # This is a sample config file that does not have multiple solr instances. You will also need to be sure to
2
- # edit the fedora.yml file to match the solr URL for active-fedora.
3
- development:
4
- url: http://localhost:8983/solr/development
5
- test: &TEST
6
- url: <%= "http://127.0.0.1:#{ENV['TEST_JETTY_PORT'] || 8983}/solr/test" %>
7
- cucumber:
8
- <<: *TEST
9
- production:
10
- url: http://your.production.server:8080/bl_solr/core0
@@ -1,22 +0,0 @@
1
- # Define additional properties for OM terms to communicate with Solrizer
2
- # (Solrizer's use of dynamic fields to turn OM terms into Solr fields)
3
- # example: t.my_term(:index_as=>[:searchable, :displayable])
4
- # implies that the Solr document will have fields my_term_t and my_term_display
5
- # if there is a value for the OM term :my_term in an object.
6
- id: id
7
- default: searchable
8
- searchable:
9
- default: _t
10
- date: _dt
11
- string: _t
12
- text: _t
13
- symbol: _s
14
- integer: _i
15
- long: _l
16
- boolean: _b
17
- float: _f
18
- double: _d
19
- displayable: _display
20
- facetable: _facet
21
- sortable: _sort
22
- unstemmed_searchable: _unstem_search
@@ -1,1021 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <server xmlns="http://www.fedora.info/definitions/1/0/config/" class="org.fcrepo.server.BasicServer">
3
- <param name="repositoryName" value="Fedora Repository">
4
- <comment>Defines a human readable name for the Fedora server; default is
5
- Fedora Repository.</comment>
6
- </param>
7
- <param name="adminEmailList" value="bob@example.org sally@example.org">
8
- <comment>Defines one or more email addresses for server administrators;
9
- list is space delimited.</comment>
10
- </param>
11
- <param name="fedoraServerPort" value="8983">
12
- <comment>Defines the port number on which the Fedora server runs;
13
- default is 8080.</comment>
14
- </param>
15
- <param name="fedoraShutdownPort" value="8005">
16
- <comment>Defines the port number used to shutdown the Fedora sever;
17
- default is 8005.</comment>
18
- </param>
19
- <param name="fedoraRedirectPort" value="8443">
20
- <comment>Defines the redirect port of the Fedora sever; default is 8443.</comment>
21
- </param>
22
- <param name="fedoraServerHost" value="localhost">
23
- <comment>Defines the host name for the Fedora server, as seen from the
24
- outside world.</comment>
25
- </param>
26
- <param name="fedoraAppServerContext" value="fedora">
27
- <comment>Defines the context name for the Fedora server within the
28
- application server. If set to eg &quot;myfedora&quot; the URL for Fedora will result
29
- in http[s]://fedoraServerHost[:fedoraServerPort]/myfedora.</comment>
30
- </param>
31
- <param name="datastreamExpirationLimit" value="300">
32
- <comment>Controls the size of the datastream mediation hash by removing
33
- entries outside the specified threshold. The value is specified in
34
- seconds. Note this value must be greater than the limit specified for
35
- the datastreamMediationLimit.</comment>
36
- </param>
37
- <param name="datastreamMediationLimit" value="5000">
38
- <comment>Determines the time interval in which external mechanisms must
39
- respond to requests by the Fedora server. The value is specified in
40
- milliseconds. The value specified should be set high enough to allow
41
- for an average response time from any single external mechanisms. Note
42
- this value must be less than the limit specified for the
43
- datastreamExpirationLimit.</comment>
44
- </param>
45
- <param name="datastreamContentDispositionInlineEnabled" value="true">
46
- <comment>determines if a content-disposition header specifying &quot;inline&quot; and
47
- a filename is added to the response for the REST API getDatastreamDissemination
48
- when no query parameter of download=true is specified. Browser support for
49
- recognising a filename in case of &quot;inline&quot; content disposition is patchy,
50
- so you may wish to disable the content disposition header in this case and only
51
- have it provided when download=true is specified, in which case the content disposition
52
- of &quot;attachment&quot; will be used; which is generally supported.</comment>
53
- </param>
54
- <param name="datastreamFilenameSource" value="rels label id">
55
- <comment>determines the source of the filename generated when download=true
56
- on a datastream dissemination. Value is space separated list of label: use the datastream label;
57
- id: use the datastream ID; rels: use the value defined in RELS-INT. Each
58
- source is checked in order, and the first containing a value is used. Omit
59
- any of the sources if that source is never to be used. If no sources are to be used,
60
- and just the default filename and extension below are to be used, specify &quot; &quot;.</comment>
61
- </param>
62
- <param name="datastreamExtensionMappingLabel" value="always">
63
- <comment>Controls filename extension mapping when the datastream label is used
64
- as the source of the filename. Values are always: always generate an extension
65
- based on the MIMETYPE, using the default extension if none can be determined;
66
- ifmissing: generate an extension if the filename obtained from the source does not
67
- already contain one (again returning the default if there is no MIMETYPE-to-extension
68
- mapping is found); never: never generate an extension, use the filename from the source
69
- as-is</comment>
70
- </param>
71
- <param name="datastreamExtensionMappingId" value="ifmissing">
72
- <comment>Controls filename extension mapping when the datastream ID is used
73
- as the source of the filename. Values are as above.</comment>
74
- </param>
75
- <param name="datastreamExtensionMappingRels" value="never">
76
- <comment>Controls filename extension mapping when RELS-INT is used
77
- as the source of the filename. Values are as above.</comment>
78
- </param>
79
- <param name="datastreamExtensionMappingDefault" value="never">
80
- <comment>Controls filename extension mapping when no filename can be determined from
81
- the sources listed in datastreamFilenameSource. Values are always: always generate an extension
82
- based on the MIMETYPE (using the default if no appropriate mapping is specified);
83
- never: never generate an extension.</comment>
84
- </param>
85
- <param name="datastreamDefaultFilename" value="download">
86
- <comment>Filename to use for datastream downloads when none can be determined from the
87
- sources listed in datastreamFilenameSource.</comment>
88
- </param>
89
- <param name="datastreamDefaultExtension" value="bin">
90
- <comment>Extension to use when none can be determined from mappings</comment>
91
- </param>
92
- <param name="datastreamExtensionMappingSource" value="mime-to-extensions.xml">
93
- <comment>Source of mappings from MIMETYPE to file extension</comment>
94
- </param>
95
- <param name="httpClientTimeoutSecs" value="20">
96
- <comment>Number of seconds Fedora http client will wait for a connection before timing
97
- out.</comment>
98
- </param>
99
- <param name="httpClientSocketTimeoutSecs" value="120">
100
- <comment>Number of seconds Fedora http client will wait for data coming across an
101
- established http connection.</comment>
102
- </param>
103
- <param name="httpClientMaxConnectionsPerHost" value="5">
104
- <comment>Maximum number of Fedora http client connections allowed to a given host.</comment>
105
- </param>
106
- <param name="httpClientMaxTotalConnections" value="5">
107
- <comment>Maximum number of total Fedora http client connections allowed at once.</comment>
108
- </param>
109
- <param name="httpClientFollowRedirects" value="true">
110
- <comment>Should the Fedora http client follow redirects?</comment>
111
- </param>
112
- <param name="httpClientMaxFollowRedirects" value="3">
113
- <comment>Maximun number of redirects the Fedora http client will follow (only if
114
- httpClientFollowRedirects is set to true.)</comment>
115
- </param>
116
- <param name="httpClientUserAgent" value="Fedora">
117
- <comment>The value to be set for the User-Agent HTTP request header.</comment>
118
- </param>
119
- <module role="org.fcrepo.server.storage.lowlevel.ILowlevelStorage" class="org.fcrepo.server.storage.lowlevel.akubra.AkubraLowlevelStorageModule">
120
- </module>
121
- <module role="org.fcrepo.server.security.Authorization" class="org.fcrepo.server.security.DefaultAuthorization">
122
- <comment>Builds and manages Fedora's authorization structure.</comment>
123
- <param name="REPOSITORY-POLICIES-DIRECTORY" value="data/fedora-xacml-policies/repository-policies" isFilePath="true"/>
124
- <param name="REPOSITORY-POLICY-GUITOOL-POLICIES-DIRECTORY" value="data/fedora-xacml-policies/repository-policies-generated-by-policyguitool" isFilePath="true">
125
- <comment>This parameter is for future use.</comment>
126
- </param>
127
- <param name="XACML-COMBINING-ALGORITHM" value="com.sun.xacml.combine.OrderedDenyOverridesPolicyAlg"/>
128
- <param name="ENFORCE-MODE" value="permit-all-requests"/>
129
- <param name="POLICY-SCHEMA-PATH" value="xsd/cs-xacml-schema-policy-01.xsd"/>
130
- <param name="VALIDATE-REPOSITORY-POLICIES" value="true"/>
131
- <param name="VALIDATE-OBJECT-POLICIES-FROM-FILE" value="false"/>
132
- <param name="VALIDATE-OBJECT-POLICIES-FROM-DATASTREAM" value="false"/>
133
- </module>
134
- <module role="org.fcrepo.server.security.BackendSecurity" class="org.fcrepo.server.security.DefaultBackendSecurity">
135
- <comment>Description: Interface to the backend service security
136
- configuration. This module initializes backend service security
137
- information in the server by parsing the beSecurity configuration file.
138
- This file is located in the distribution in
139
- $FEDORA_HOME/dist/server/config/beSecurity.xml. The configuration file
140
- is read once at server startup.</comment>
141
- <param name="beSecurity_validation" value="false">
142
- <comment>Controls whether beSecurity config file is validated
143
- against the beSecurityDescription schema. The default is
144
- &quot;false&quot;. Valid values are &quot;true&quot; or
145
- &quot;false&quot;.</comment>
146
- </param>
147
- <param name="beSecurity_char_encoding" value="utf-8">
148
- <comment>The character encoding used for the beSecurity
149
- configuration file. The default is &quot;utf-8&quot;. The value
150
- specified must correspond to the character encoding used in the
151
- beSecurity configuration file.</comment>
152
- </param>
153
- </module>
154
- <module role="org.fcrepo.server.storage.DOManager" class="org.fcrepo.server.storage.DefaultDOManager">
155
- <comment>The interface to the storage subsystem. This provides
156
- context-appropriate DOReaders and DOWriters for reflecting on and
157
- writing to the objects stored in the repository. It also provides
158
- methods for reflecting on the contents of the repository as a whole..</comment>
159
- <param name="pidNamespace" value="changeme">
160
- <comment>This is the namespace id for pids of newly-created objects.
161
- This should be unique for a repository. It can be from 1 to 17
162
- characters, and may only contain A-Z, a-z, 0-9, &apos;.&apos;, or &apos;-&apos; (dash).</comment>
163
- </param>
164
- <param name="storagePool" value="localDerbyPool">
165
- <comment>The named connection pool from which read/write database
166
- connections are to be provided for the storage subsystem (see the
167
- ConnectionPoolManager module). Default is the default provided by the
168
- ConnectionPoolManager.</comment>
169
- </param>
170
- <param name="storageCharacterEncoding" value="UTF-8">
171
- <comment>If the serialization format is text-based, this is the
172
- character encoding that should be used. Default is UTF-8.</comment>
173
- </param>
174
- <param name="defaultExportFormat" value="info:fedora/fedora-system:FOXML-1.1"/>
175
- <param name="defaultDCControlGroup" value="X">
176
- <comment>The control group to use for the system-generated DC datastream
177
- if no DC datastream is present on ingest. Must be &quot;X&quot; or &quot;M&quot;.</comment>
178
- </param>
179
- <param name="defaultRELSControlGroup" value="X">
180
- <comment>The control group to use for system-generated RELS-EXT and
181
- RELS-INT datastreams where these are not already present when
182
- adding relationships via addRelationship. Must be &quot;X&quot; or &quot;M&quot;.</comment>
183
- </param>
184
- <param name="gSearchRESTURL" value="http://localhost:8983/fedoragsearch/rest">
185
- <comment>The REST endpoint of the Fedora Generic Search service.
186
- This parameter is only required if GSearchDOManager is
187
- used.</comment>
188
- </param>
189
- <param name="gSearchUsername" value="exampleUsername">
190
- <comment>The username for accessing the REST endpoint of the
191
- Fedora Generic Search service. This parameter is only required if
192
- GSearchDOManager is used, and the service requires
193
- authentication.</comment>
194
- </param>
195
- <param name="gSearchPassword" value="examplePassword">
196
- <comment>The associated password for accessing the REST endpoint
197
- of the Fedora Generic Search service. This parameter is only
198
- required if GSearchDOManager is used, and the service requires
199
- authentication.</comment>
200
- </param>
201
- </module>
202
- <module role="org.fcrepo.server.management.Management" class="org.fcrepo.server.management.ManagementModule">
203
- <comment>The management subsystem. This implements the methods necessary
204
- to fulfill API-M requests without regard to:
205
- - how the service is exposed
206
- - how bytestreams and java types might be marshalled/demarshalled over the wire
207
- - how the storage subsystem is implemented.</comment>
208
- <param name="decorator1" value="org.fcrepo.server.messaging.NotificationInvocationHandler"/>
209
- <param name="autoChecksum" value="false">
210
- <comment>Controls whether a checksum is automatically computed for
211
- every datastream as the datastream is added to the repository. This
212
- will allow the integrity of datastream contents to be periodically
213
- checked to insure the object is not corrupted.</comment>
214
- </param>
215
- <param name="checksumAlgorithm" value="MD5">
216
- <comment>Specifies which checksumming algorithm is to be used when
217
- automatically computing checksums as specified by the above
218
- parameter. Valid values are: MD5 SHA-1 SHA-256 SHA-384 SHA-512.</comment>
219
- </param>
220
- <param name="purgeDelayInMillis" value="60000">
221
- <comment>Optional, default is 60000 (1 minute).
222
- This specifies the amount of time between checks to remove
223
- temporary files uploaded via the API-M upload interface. During
224
- each check, old files whose age exceeds uploadStorageMinutes
225
- will be removed.</comment>
226
- </param>
227
- <param name="uploadStorageMinutes" value="5">
228
- <comment>Optional, default is 5.
229
- This specifies the minimum amount of time that each uploaded
230
- file should be kept in temporary storage.</comment>
231
- </param>
232
- </module>
233
- <module role="org.fcrepo.server.access.Access" class="org.fcrepo.server.access.DefaultAccess">
234
- <comment>Description: The access subsystem. This implements the methods
235
- necessary to fulfill API-A requests without regard to:
236
- - how the service is exposed
237
- - how bytestreams and java types might be marshalled/demarshalled
238
- over the wire.</comment>
239
- <param name="doMediateDatastreams" value="false">
240
- <comment>A boolean switch indicating whether Datastream Mediation is
241
- activated or not. Datastream Mediation is required if using basic
242
- authentication for API-A. When basic authentication is enabled for
243
- API-A, backend services used by custom disseminations may or may not be
244
- capable of authenticating with the Fedora server. Datastream mediation
245
- coupled with the backend service configuration information in the
246
- beSecurity.xml file enables the Fedora server to determine which backend
247
- services are required to authenticate and which ones are allowed to
248
- connect without authentication. Datastream mediation provides additional
249
- repository security by not exposing the physical location of Referenced
250
- Content datastreams to external mechanisms(services). Instead of
251
- exposing the actual physical location of Referenced Content datastreams,
252
- Datastream Mediation functions as a proxy requiring all external
253
- services to communicate through the Fedora server to resolve the
254
- location of Referenced Content datastreams.
255
-
256
- IMPORTANT: For Datastream Mediation to function, the Fedora server must
257
- be internet accessible using the configured name for fedoraServerHost
258
- and fedoraServerPort. For example, using the default fedoraServerHost
259
- value of &quot;localhost&quot; will not work if you have remote backend services
260
- since the hostname of &quot;localhost&quot; will not be resolvable as the Fedora
261
- server by the remote backend services. This requirement can be difficult
262
- to satisfy if the Fedora server is located behind a firewall and you do
263
- not have ready access to the firewall&apos;s configuration to enable the
264
- required access. If the Fedora server is behind a firewall and you have
265
- no access to the firewall&apos;s configuration, you are limited to keeping
266
- Datastream Mediation turned off. Note that this will also prevent you
267
- from using basic authentication with API-A. The default value of
268
- doMediateDatastreams is false.</comment>
269
- </param>
270
- </module>
271
- <module role="org.fcrepo.server.access.DynamicAccess" class="org.fcrepo.server.access.DynamicAccessModule">
272
- <comment>The dynamic behavior module for the access subsystem. This
273
- implements the methods necessary to fulfill API-A requests without
274
- regard to:
275
- - dynamically associating a default behavior definition and mechanism with objects
276
- - (Future) dynamically associating other behavior definitions and mechanisms
277
- with objects
278
- - running disseminations of dynamic behaviors</comment>
279
- <param name="fedora-system:1" value="org.fcrepo.server.access.internalservices.Bootstrap">
280
- <comment>The interface that defines the methods of the bootstrap
281
- disseminator. These methods are &quot;built-in&quot; to the Fedora system, and
282
- are dynamically associated with every behavior definition and
283
- behavior mechanism object.</comment>
284
- </param>
285
- <param name="fedora-system:2" value="org.fcrepo.server.access.internalservices.BootstrapImpl">
286
- <comment>The class that implements the methods of the bootstrap
287
- disseminator. These method implementations are &quot;built-in&quot; to the
288
- Fedora system, and are dynamically associated with every behavior
289
- definition and behavior mechanism object. This class can be thought
290
- of as implementing an &quot;internal service&quot; whereas other disseminators
291
- use external services (described by WSDL) to do their work.</comment>
292
- </param>
293
- <param name="fedora-system:3" value="org.fcrepo.server.access.defaultdisseminator.DefaultDisseminator">
294
- <comment>The interface that defines the methods of the default
295
- disseminator. These methods are &quot;built-in&quot; to the Fedora system, and
296
- are dynamically associated with every object.</comment>
297
- </param>
298
- <param name="fedora-system:4" value="org.fcrepo.server.access.defaultdisseminator.DefaultDisseminatorImpl">
299
- <comment>The class that implements the methods of the default
300
- disseminator. These method implementations are &quot;built-in&quot; to the
301
- Fedora system, and are dynamically associated with every object.
302
- This class can be though of as implementing an &quot;internal service&quot;
303
- whereas other disseminators use external services (described by
304
- WSDL) to do their work.</comment>
305
- </param>
306
- </module>
307
- <module role="org.fcrepo.server.search.FieldSearch" class="org.fcrepo.server.search.FieldSearchSQLModule">
308
- <comment>Supports the API-A simpleSearch and advancedSearch methods.</comment>
309
- <param name="maxResults" value="100">
310
- <comment>(required, must be &gt; 0)
311
- The maximum number of records to
312
- return as the result of a search. Even if a client requests more
313
- results at a time, this is the cutoff value.</comment>
314
- </param>
315
- <param name="maxSecondsPerSession" value="500">
316
- <comment>(required, must be &gt; 0)
317
- The maximum number of seconds that the server guarantees subsequent
318
- search results may be obtained. This is only used in cases where the
319
- number of results is greater than maxResults (as specified by the
320
- server [above] or the client [in the search request]).</comment>
321
- </param>
322
- <param name="connectionPool" value="localDerbyPool">
323
- <comment>(optional) To make unspecified, comment out or delete the
324
- whole param line as opposed to using an empty string,
325
- default=ConnectionPoolManager&apos;s default) The connectionPool
326
- providing the connection to the database to be used. Warning: When
327
- setting these values, keep in mind that while a session is not timed
328
- out (maxSecondsPerSession seconds haven&apos;t elapsed, and not all
329
- results have been requested), a connection from the pool is tied up.
330
- Therefore, the connectionPool should be at least of size n, large
331
- enough to accomodate n simultaneous search sessions. The longer
332
- maxSecondsPerSession is, the more chance you have of tying up all
333
- available connections from the pool. Therefore, keep
334
- maxSecondsPerSession fairly low, but still reasonable for an
335
- automated program or user to serially get a long list of results,
336
- and make sure you have a connectionPool large enough to accomodate
337
- your users.</comment>
338
- </param>
339
- <param name="indexDCFields" value="true">
340
- <comment>(optional, default is true) Whether the content of the DC
341
- datastream should be examined and the contents indexed, for each object.
342
- You may wish to save time and space by disabling DC field indexing,
343
- particularly if you have an external search service (such as Fedora
344
- Generic Search) that already fulfills this need.
345
- Note: If you change this value on a Fedora repository that has been
346
- running for some time, you will need to perform a SQL rebuild using the
347
- Fedora Rebuilder tool if you want to change objects that have already
348
- been ingested.</comment>
349
- </param>
350
- </module>
351
- <module role="org.fcrepo.server.resourceIndex.ResourceIndex" class="org.fcrepo.server.resourceIndex.ResourceIndexModule">
352
- <comment>Supports the ResourceIndex.</comment>
353
- <param name="level" value="0">
354
- <comment>(required)
355
- Index level. Currently, only 0, and 1 are supported levels.
356
- 0 = off and 1 = on.
357
- WARNING: changing the level (except to 0) requires
358
- running the Resource Index Rebuilder.</comment>
359
- </param>
360
- <param name="datastore" value="localMulgaraTriplestore">
361
- <comment>(required)
362
- Name of the triplestore to use. WARNING: changing the
363
- triplestore running the Resource Index Rebuilder.</comment>
364
- </param>
365
- <param name="syncUpdates" value="false">
366
- <comment>(optional, default is false)
367
- Whether to flush the triple buffer before
368
- returning from object modification operations.
369
- Specifying this as true will ensure that RI queries
370
- immediately reflect the latest triples.
371
- Specifying false will not provide this guarantee,
372
- but can significantly reduce roundtrip time for
373
- API-M operations (depending on the triplestore
374
- implementation).</comment>
375
- </param>
376
- <param name="alias:test" value="http://example.org/terms#">
377
- <comment>(optional) Aliases that can be used for queries. The param
378
- name of an alias starts with the string &quot;alias:&quot; and is followed by
379
- the name of the alias (shortcut) for the value, which is a URI
380
- prefix. For example: name=&quot;alias:test&quot;
381
- value=&quot;http://example.org/terms#&quot; will allow a query to use
382
- test:apple instead of http://example.org/terms#apple</comment>
383
- </param>
384
- </module>
385
- <module role="org.fcrepo.oai.OAIProvider" class="org.fcrepo.server.oai.FedoraOAIProviderModule">
386
- <comment>Description: Exposes the repository for OAI harvesters.</comment>
387
- <param name="repositoryName" value="Your Fedora Repository Name Here"/>
388
- <param name="repositoryDomainName" value="example.org"/>
389
- <param name="adminEmails" value="oai-admin@example.org bob@example.org"/>
390
- <param name="friends" value="http://arXiv.org/oai2 http://memory.loc.gov/cgi-bin/oai2_0"/>
391
- <param name="maxRecords" value="100"/>
392
- <param name="maxHeaders" value="100"/>
393
- </module>
394
- <module role="org.fcrepo.server.storage.translation.DOTranslator" class="org.fcrepo.server.storage.translation.DOTranslatorModule">
395
- <comment>Supports translation from DigitalObject to a stream of some
396
- format, and vice-versa. The parameters below specify
397
- serializer/deserializer classes to be used for a given format. Those
398
- classes must implement the DOSerializer/DODeserializer interfaces.</comment>
399
- <param name="serializer_info:fedora/fedora-system:METSFedoraExt-1.1" value="org.fcrepo.server.storage.translation.METSFedoraExt1_1DOSerializer"/>
400
- <param name="deserializer_info:fedora/fedora-system:METSFedoraExt-1.1" value="org.fcrepo.server.storage.translation.METSFedoraExt1_1DODeserializer"/>
401
- <param name="serializer_info:fedora/fedora-system:METSFedoraExt-1.0" value="org.fcrepo.server.storage.translation.METSFedoraExt1_0DOSerializer"/>
402
- <param name="deserializer_info:fedora/fedora-system:METSFedoraExt-1.0" value="org.fcrepo.server.storage.translation.METSFedoraExt1_0DODeserializer"/>
403
- <param name="serializer_info:fedora/fedora-system:FOXML-1.1" value="org.fcrepo.server.storage.translation.FOXML1_1DOSerializer"/>
404
- <param name="deserializer_info:fedora/fedora-system:FOXML-1.1" value="org.fcrepo.server.storage.translation.FOXML1_1DODeserializer"/>
405
- <param name="serializer_info:fedora/fedora-system:FOXML-1.0" value="org.fcrepo.server.storage.translation.FOXML1_0DOSerializer"/>
406
- <param name="deserializer_info:fedora/fedora-system:FOXML-1.0" value="org.fcrepo.server.storage.translation.FOXML1_0DODeserializer"/>
407
- <param name="serializer_info:fedora/fedora-system:ATOM-1.1" value="org.fcrepo.server.storage.translation.Atom1_1DOSerializer"/>
408
- <param name="deserializer_info:fedora/fedora-system:ATOM-1.1" value="org.fcrepo.server.storage.translation.Atom1_1DODeserializer"/>
409
- <param name="serializer_info:fedora/fedora-system:ATOMZip-1.1" value="org.fcrepo.server.storage.translation.AtomZip1_1DOSerializer"/>
410
- <param name="deserializer_info:fedora/fedora-system:ATOMZip-1.1" value="org.fcrepo.server.storage.translation.AtomZip1_1DODeserializer"/>
411
- </module>
412
- <module role="org.fcrepo.server.management.PIDGenerator" class="org.fcrepo.server.management.BasicPIDGenerator">
413
- <comment>The pid generator.</comment>
414
- <param name="pidgen_log_dir" value="pidgen"/>
415
- </module>
416
- <module role="org.fcrepo.server.messaging.Messaging" class="org.fcrepo.server.messaging.MessagingModule">
417
- <comment>Fedora's Java Messaging Service (JMS) Module</comment>
418
- <param name="enabled" value="false"/>
419
- <param name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
420
- <param name="java.naming.provider.url" value="vm:(broker:(tcp://localhost:61616,stomp://localhost:61613))"/>
421
- <param name="datastore1" value="apimUpdateMessages">
422
- <comment>A datastore representing a JMS Destination for APIM events which update the repository</comment>
423
- </param>
424
- <param name="datastore2" value="apimAccessMessages">
425
- <comment>A datastore representing a JMS Destination for APIM events which do not update the repository</comment>
426
- </param>
427
- </module>
428
- <module role="org.fcrepo.server.storage.ConnectionPoolManager" class="org.fcrepo.server.storage.ConnectionPoolManagerImpl">
429
- <comment>This module facilitates obtaining ConnectionPools</comment>
430
- <param name="defaultPoolName" value="localDerbyPool"/>
431
- <param name="poolNames" value="localDerbyPool"/>
432
- </module>
433
- <module role="org.fcrepo.server.validation.DOValidator" class="org.fcrepo.server.validation.DOValidatorModule">
434
- <comment>Description: Supports validation of digital objects, including
435
- XML Schema validation, Schematron validation (to Fedora Rules schema
436
- written in Schematron language), and other programatic validation
437
- including referential integrity checking of existence and
438
- availability of distributed data and/or services.</comment>
439
- <param name="xsd_info:fedora/fedora-system:METSFedoraExt-1.1" value="xsd/mets-fedora-ext1-1.xsd">
440
- <comment>The local path for the Fedora-METS XML
441
- schema used to do XML schema validation of digital objects.</comment>
442
- </param>
443
- <param name="xsd_info:fedora/fedora-system:METSFedoraExt-1.0" value="xsd/mets-fedora-ext.xsd">
444
- <comment>The local path for the Fedora-METS 1.0 XML
445
- schema used to do XML schema validation of digital objects.</comment>
446
- </param>
447
- <param name="xsd_info:fedora/fedora-system:FOXML-1.1" value="xsd/foxml1-1.xsd">
448
- <comment>The local path for the Fedora FOXML 1.1 XML schema
449
- used to do XML schema validation of digital objects</comment>
450
- </param>
451
- <param name="xsd_info:fedora/fedora-system:FOXML-1.0" value="xsd/foxml1-0.xsd">
452
- <comment>The local path for the Fedora FOXML 1.0 XML schema
453
- used to do XML schema validation of digital objects</comment>
454
- </param>
455
- <param name="xsd_info:fedora/fedora-system:ATOM-1.1" value="xsd/atom.xsd">
456
- <comment>The local path for the Atom XML schema used to do XML
457
- schema validation of digital objects</comment>
458
- </param>
459
- <param name="xsd_info:fedora/fedora-system:ATOMZip-1.1" value="xsd/atom.xsd">
460
- <comment>The local path for the Atom XML schema used to do XML
461
- schema validation of digital objects</comment>
462
- </param>
463
- <param name="xsd_xacml_policy1.0" value="xsd/cs-xacml-schema-policy-1.0.xsd">
464
- <comment>The local path for the OASIS XACML XML policy schema
465
- used to do XML schema validation of XACML policies.</comment>
466
- </param>
467
- <param name="rules_info:fedora/fedora-system:METSFedoraExt-1.1" value="schematron/metsExtRules1-1.xml">
468
- <comment>The local path to the Schematron Rules used for
469
- Fedora-specific validation on Fedora-METS XML files.</comment>
470
- </param>
471
- <param name="rules_info:fedora/fedora-system:METSFedoraExt-1.0" value="schematron/metsExtRules1-0.xml">
472
- <comment>The local path to the Schematron Rules used for
473
- Fedora-specific validation on Fedora-METS 1.0 XML files.</comment>
474
- </param>
475
- <param name="rules_info:fedora/fedora-system:FOXML-1.1" value="schematron/foxmlRules1-1.xml">
476
- <comment>The local path to the Schematron Rules used for
477
- Fedora-specific validation on FOXML 1.1 XML files.</comment>
478
- </param>
479
- <param name="rules_info:fedora/fedora-system:FOXML-1.0" value="schematron/foxmlRules1-0.xml">
480
- <comment>The local path to the Schematron Rules used for
481
- Fedora-specific validation on FOXML 1.0 XML files.</comment>
482
- </param>
483
- <param name="rules_info:fedora/fedora-system:ATOM-1.1" value="schematron/atom-bogus.xml">
484
- <comment>The local path to the Schematron Rules used for
485
- Fedora-specific on Atom XML files.</comment>
486
- </param>
487
- <param name="rules_info:fedora/fedora-system:ATOMZip-1.1" value="schematron/atom-bogus.xml">
488
- <comment>The local path to the Schematron Rules used for
489
- Fedora-specific on Atom Zip files.</comment>
490
- </param>
491
- <param name="schtron_preprocessor" value="schematron/preprocessor.xslt"/>
492
- <param name="tempDir" value="work">
493
- <comment>(required)
494
- This is a directory that the validation module can use as a work space, as
495
- when it must write a temporary file.</comment>
496
- </param>
497
- </module>
498
- <module role="org.fcrepo.server.storage.ExternalContentManager" class="org.fcrepo.server.storage.DefaultExternalContentManager">
499
- <comment>This module facilitates obtaining external content via HTTP</comment>
500
- </module>
501
- <datastore id="localMySQLPool">
502
- <comment>MySQL database on localhost with db name of fedora3. Each
503
- connection pool instance has several configuration parameter that
504
- can be used to tune the options for the connection pool. It is
505
- recommended that you not change the default values unless you are
506
- trying to address a specific performance issue. For additional
507
- information regarding connection pool options, refer to the Apache
508
- Commons Pool API documentation at
509
- http://jakarta.apache.org/commons/pool/apidocs/index.html.</comment>
510
- <param name="dbUsername" value="fedoraAdmin">
511
- <comment>The database user name.</comment>
512
- </param>
513
- <param name="dbPassword" value="fedoraAdmin">
514
- <comment>The database password.</comment>
515
- </param>
516
- <param name="jdbcURL" value="jdbc:mysql://localhost/fedora3?useUnicode=true&amp;characterEncoding=UTF-8&amp;autoReconnect=true">
517
- <comment>The JDBC connection URL.</comment>
518
- </param>
519
- <param name="jdbcDriverClass" value="com.mysql.jdbc.Driver">
520
- <comment>The JDBC driver class name.</comment>
521
- </param>
522
- <param name="ddlConverter" value="org.fcrepo.server.utilities.MySQLDDLConverter"/>
523
- <param name="maxActive" value="100">
524
- <comment>The maximum number of active instances in pool.</comment>
525
- </param>
526
- <param name="maxIdle" value="10">
527
- <comment>The maximum number of idle instances in pool.</comment>
528
- </param>
529
- <param name="maxWait" value="-1">
530
- <comment>The maximum amount of time in milliseconds the
531
- borrowObject() method should wait before throwing an Exception when
532
- whenExhaustedAction is set to WHEN_EXHAUSTED_BLOCK. A value less
533
- than zero indicates block indefinitely.</comment>
534
- </param>
535
- <param name="minIdle" value="0">
536
- <comment>The minimum of idle instances in pool.</comment>
537
- </param>
538
- <param name="minEvictableIdleTimeMillis" value="1800000">
539
- <comment>The minimum amount of time in milliseconds an object can be
540
- idle in pool before eligible for eviction (if applicable). A value
541
- less than zero indicates no object will be evicted due to idle time
542
- alone.</comment>
543
- </param>
544
- <param name="numTestsPerEvictionRun" value="3">
545
- <comment>The number of objects to be examined on each run of idle
546
- evictor thread (if applicable). A value less than zero indicates
547
- that ceil(numIdle)/abs(numTestsPerEvictionRun) will be run.</comment>
548
- </param>
549
- <param name="timeBetweenEvictionRunsMillis" value="-1">
550
- <comment>The time in milliseconds to sleep between runs of the idle
551
- object evictor thread. A value less than zero indicates no idle
552
- evictor thread is run.</comment>
553
- </param>
554
- <param name="validationQuery" value="select 1">
555
- <comment>The query to run when validating connections.
556
- Connections are validated according to the testOnBorrow,
557
- testOnReturn, and testWhileIdle configuration values.
558
- If this is specified, it must be a SQL SELECT statement
559
- that returns at least one row. If this is NOT specified,
560
- validation tests will not be run.</comment>
561
- </param>
562
- <param name="testOnBorrow" value="true">
563
- <comment>When true objects are validated before borrowed from the
564
- pool.</comment>
565
- </param>
566
- <param name="testOnReturn" value="true">
567
- <comment>When true, objects are validated before returned to the
568
- pool.</comment>
569
- </param>
570
- <param name="testWhileIdle" value="true">
571
- <comment>When true, objects are validated by the idle object evictor
572
- thread.</comment>
573
- </param>
574
- <param name="whenExhaustedAction" value="1">
575
- <comment>Action to take when a new object is requested and the the pool has
576
- reached maximum number of active objects. Valid values are:
577
- 0 (fail i.e., throw Exception)
578
- 1 (block i.e., wait until pool resources are freed)
579
- 2 (grow i.e., increase the size of the pool).</comment>
580
- </param>
581
- </datastore>
582
- <datastore id="localMcKoiPool">
583
- <comment>McKoi database on localhost running on port 9157 Each
584
- connection pool instance has several configuration parameter that
585
- can be used to tune the options for the connection pool. It is
586
- recommended that you not change the default values unless you are
587
- trying to address a specific performance issue. For additional
588
- information regarding connection pool options, refer to the Apache
589
- Commons Pool API documentation at
590
- http://jakarta.apache.org/commons/pool/apidocs/index.html.</comment>
591
- <param name="dbUsername" value="fedoraAdmin">
592
- <comment>The database user name.</comment>
593
- </param>
594
- <param name="dbPassword" value="fedoraAdmin">
595
- <comment>The database password.</comment>
596
- </param>
597
- <param name="jdbcURL" value="jdbc:mckoi://localhost:9157/">
598
- <comment>The JDBC connection URL.</comment>
599
- </param>
600
- <param name="jdbcDriverClass" value="com.mckoi.JDBCDriver">
601
- <comment>The JDBC driver class name.</comment>
602
- </param>
603
- <param name="ddlConverter" value="org.fcrepo.server.utilities.McKoiDDLConverter"/>
604
- <param name="maxActive" value="100">
605
- <comment>The maximum number of active instances in pool.</comment>
606
- </param>
607
- <param name="maxIdle" value="10">
608
- <comment>The maximum number of idle instances in pool.</comment>
609
- </param>
610
- <param name="maxWait" value="-1">
611
- <comment>The maximum amount of time in milliseconds the
612
- borrowObject() method should wait before throwing an Exception when
613
- whenExhaustedAction is set to WHEN_EXHAUSTED_BLOCK. A value less
614
- than zero indicates block indefinitely.</comment>
615
- </param>
616
- <param name="minIdle" value="0">
617
- <comment>The minimum of idle instances in pool.</comment>
618
- </param>
619
- <param name="minEvictableIdleTimeMillis" value="1800000">
620
- <comment>The minimum amount of time in milliseconds an object can be
621
- idle in pool before eligible for eviction (if applicable). A value
622
- less than zero indicates no object will be evicted due to idle time
623
- alone.</comment>
624
- </param>
625
- <param name="numTestsPerEvictionRun" value="3">
626
- <comment>The number of objects to be examined on each run of idle
627
- evictor thread (if applicable). A value less than zero indicates
628
- that ceil(numIdle)/abs(numTestsPerEvictionRun) will be run.</comment>
629
- </param>
630
- <param name="timeBetweenEvictionRunsMillis" value="-1">
631
- <comment>The time in milliseconds to sleep between runs of the idle
632
- object evictor thread. A value less than zero indicates no idle
633
- evictor thread is run.</comment>
634
- </param>
635
- <param name="testOnBorrow" value="true">
636
- <comment>When true objects are validated before borrowed from the
637
- pool.</comment>
638
- </param>
639
- <param name="testOnReturn" value="true">
640
- <comment>When true, objects are validated before returned to the
641
- pool.</comment>
642
- </param>
643
- <param name="testWhileIdle" value="true">
644
- <comment>When true, objects are validated by the idle object evictor
645
- thread.</comment>
646
- </param>
647
- <param name="whenExhaustedAction" value="1">
648
- <comment>Action to take when a new object is requested and the the pool has
649
- reached maximum number of active objects. Valid values are:
650
- 0 (fail i.e., throw Exception)
651
- 1 (block i.e., wait until pool resources are freed)
652
- 2 (grow i.e., increase the size of the pool).</comment>
653
- </param>
654
- </datastore>
655
- <datastore id="localDerbyPool">
656
- <comment>Derby database on localhost running on port 1527 Each
657
- connection pool instance has several configuration parameter that
658
- can be used to tune the options for the connection pool. It is
659
- recommended that you not change the default values unless you are
660
- trying to address a specific performance issue. For additional
661
- information regarding connection pool options, refer to the Apache
662
- Commons Pool API documentation at
663
- http://jakarta.apache.org/commons/pool/apidocs/index.html.</comment>
664
- <param name="dbUsername" value="fedoraAdmin">
665
- <comment>The database user name.</comment>
666
- </param>
667
- <param name="dbPassword" value="fedoraAdmin">
668
- <comment>The database password.</comment>
669
- </param>
670
- <param name="jdbcURL" value="jdbc:derby:fedora/default/derby/fedora3;create=true">
671
- <comment>The JDBC connection URL.</comment>
672
- </param>
673
- <param name="jdbcDriverClass" value="org.apache.derby.jdbc.EmbeddedDriver">
674
- <comment>The JDBC driver class name.</comment>
675
- </param>
676
- <param name="ddlConverter" value="org.fcrepo.server.utilities.DerbyDDLConverter"/>
677
- <param name="maxActive" value="100">
678
- <comment>The maximum number of active instances in pool.</comment>
679
- </param>
680
- <param name="maxIdle" value="10">
681
- <comment>The maximum number of idle instances in pool.</comment>
682
- </param>
683
- <param name="maxWait" value="-1">
684
- <comment>The maximum amount of time in milliseconds the
685
- borrowObject() method should wait before throwing an Exception when
686
- whenExhaustedAction is set to WHEN_EXHAUSTED_BLOCK. A value less
687
- than zero indicates block indefinitely.</comment>
688
- </param>
689
- <param name="minIdle" value="0">
690
- <comment>The minimum of idle instances in pool.</comment>
691
- </param>
692
- <param name="minEvictableIdleTimeMillis" value="1800000">
693
- <comment>The minimum amount of time in milliseconds an object can be
694
- idle in pool before eligible for eviction (if applicable). A value
695
- less than zero indicates no object will be evicted due to idle time
696
- alone.</comment>
697
- </param>
698
- <param name="numTestsPerEvictionRun" value="3">
699
- <comment>The number of objects to be examined on each run of idle
700
- evictor thread (if applicable). A value less than zero indicates
701
- that ceil(numIdle)/abs(numTestsPerEvictionRun) will be run.</comment>
702
- </param>
703
- <param name="timeBetweenEvictionRunsMillis" value="-1">
704
- <comment>The time in milliseconds to sleep between runs of the idle
705
- object evictor thread. A value less than zero indicates no idle
706
- evictor thread is run.</comment>
707
- </param>
708
- <param name="testOnBorrow" value="true">
709
- <comment>When true objects are validated before borrowed from the
710
- pool.</comment>
711
- </param>
712
- <param name="testOnReturn" value="true">
713
- <comment>When true, objects are validated before returned to the
714
- pool.</comment>
715
- </param>
716
- <param name="testWhileIdle" value="true">
717
- <comment>When true, objects are validated by the idle object evictor
718
- thread.</comment>
719
- </param>
720
- <param name="whenExhaustedAction" value="1">
721
- <comment>Action to take when a new object is requested and the the pool has
722
- reached maximum number of active objects. Valid values are:
723
- 0 (fail i.e., throw Exception)
724
- 1 (block i.e., wait until pool resources are freed)
725
- 2 (grow i.e., increase the size of the pool).</comment>
726
- </param>
727
- </datastore>
728
- <datastore id="localOraclePool">
729
- <comment>Oracle database on localhost with SID=fedora3 Each
730
- connection pool instance has several configuration parameter that
731
- can be used to tune the options for the connection pool. It is
732
- recommended that you not change the default values unless you are
733
- trying to address a specific performance issue. For additional
734
- information regarding connection pool options, refer to the Apache
735
- Commons Pool API documentation at
736
- http://jakarta.apache.org/commons/pool/apidocs/index.html.</comment>
737
- <param name="dbUsername" value="fedoraAdmin">
738
- <comment>The database user name.</comment>
739
- </param>
740
- <param name="dbPassword" value="fedoraAdmin">
741
- <comment>The database password.</comment>
742
- </param>
743
- <param name="jdbcURL" value="jdbc:oracle:thin:@localhost:1521:fedora3">
744
- <comment>The JDBC connection URL.</comment>
745
- </param>
746
- <param name="jdbcDriverClass" value="oracle.jdbc.OracleDriver">
747
- <comment>The JDBC driver class name.</comment>
748
- </param>
749
- <param name="ddlConverter" value="org.fcrepo.server.utilities.OracleDDLConverter"/>
750
- <param name="maxActive" value="100">
751
- <comment>The maximum number of active instances in pool.</comment>
752
- </param>
753
- <param name="maxIdle" value="10">
754
- <comment>The maximum number of idle instances in pool.</comment>
755
- </param>
756
- <param name="maxWait" value="-1">
757
- <comment>The maximum amount of time in milliseconds the
758
- borrowObject() method should wait before throwing an Exception when
759
- whenExhaustedAction is set to WHEN_EXHAUSTED_BLOCK. A value less
760
- than zero indicates block indefinitely.</comment>
761
- </param>
762
- <param name="minIdle" value="0">
763
- <comment>The minimum of idle instances in pool.</comment>
764
- </param>
765
- <param name="minEvictableIdleTimeMillis" value="1800000">
766
- <comment>The minimum amount of time in milliseconds an object can be
767
- idle in pool before eligible for eviction (if applicable). A value
768
- less than zero indicates no object will be evicted due to idle time
769
- alone.</comment>
770
- </param>
771
- <param name="numTestsPerEvictionRun" value="3">
772
- <comment>The number of objects to be examined on each run of idle
773
- evictor thread (if applicable). A value less than zero indicates
774
- that ceil(numIdle)/abs(numTestsPerEvictionRun) will be run.</comment>
775
- </param>
776
- <param name="timeBetweenEvictionRunsMillis" value="-1">
777
- <comment>The time in milliseconds to sleep between runs of the idle
778
- object evictor thread. A value less than zero indicates no idle
779
- evictor thread is run.</comment>
780
- </param>
781
- <param name="validationQuery" value="select &apos;validationQuery&apos; from dual">
782
- <comment>The query to run when validating connections.
783
- Connections are validated according to the testOnBorrow,
784
- testOnReturn, and testWhileIdle configuration values.
785
- If this is specified, it must be a SQL SELECT statement
786
- that returns at least one row. If this is NOT specified,
787
- validation tests will not be run.</comment>
788
- </param>
789
- <param name="testOnBorrow" value="true">
790
- <comment>When true objects are validated before borrowed from the
791
- pool.</comment>
792
- </param>
793
- <param name="testOnReturn" value="true">
794
- <comment>When true, objects are validated before returned to the
795
- pool.</comment>
796
- </param>
797
- <param name="testWhileIdle" value="true">
798
- <comment>When true, objects are validated by the idle object evictor
799
- thread.</comment>
800
- </param>
801
- <param name="whenExhaustedAction" value="1">
802
- <comment>Action to take when a new object is requested and the the pool has
803
- reached maximum number of active objects. Valid values are:
804
- 0 (fail i.e., throw Exception)
805
- 1 (block i.e., wait until pool resources are freed)
806
- 2 (grow i.e., increase the size of the pool).</comment>
807
- </param>
808
- <param name="connection.SetBigStringTryClob" value="true"/>
809
- </datastore>
810
- <datastore id="localPostgreSQLPool">
811
- <comment>PostgreSQL database on localhost with db name of fedora3. Each
812
- connection pool instance has several configuration parameter that
813
- can be used to tune the options for the connection pool. It is
814
- recommended that you not change the default values unless you are
815
- trying to address a specific performance issue. For additional
816
- information regarding connection pool options, refer to the Apache
817
- Commons Pool API documentation at
818
- http://jakarta.apache.org/commons/pool/apidocs/index.html.</comment>
819
- <param name="dbUsername" value="fedoraAdmin">
820
- <comment>The database user name.</comment>
821
- </param>
822
- <param name="dbPassword" value="fedoraAdmin">
823
- <comment>The database password.</comment>
824
- </param>
825
- <param name="jdbcURL" value="jdbc:postgresql:fedora3">
826
- <comment>The JDBC connection URL.</comment>
827
- </param>
828
- <param name="jdbcDriverClass" value="org.postgresql.Driver">
829
- <comment>The JDBC driver class name.</comment>
830
- </param>
831
- <param name="ddlConverter" value="org.fcrepo.server.utilities.PostgresDDLConverter"/>
832
- <param name="maxActive" value="100">
833
- <comment>The maximum number of active instances in pool.</comment>
834
- </param>
835
- <param name="maxIdle" value="10">
836
- <comment>The maximum number of idle instances in pool.</comment>
837
- </param>
838
- <param name="maxWait" value="-1">
839
- <comment>The maximum amount of time in milliseconds the
840
- borrowObject() method should wait before throwing an Exception when
841
- whenExhaustedAction is set to WHEN_EXHAUSTED_BLOCK. A value less
842
- than zero indicates block indefinitely.</comment>
843
- </param>
844
- <param name="minIdle" value="0">
845
- <comment>The minimum of idle instances in pool.</comment>
846
- </param>
847
- <param name="minEvictableIdleTimeMillis" value="1800000">
848
- <comment>The minimum amount of time in milliseconds an object can be
849
- idle in pool before eligible for eviction (if applicable). A value
850
- less than zero indicates no object will be evicted due to idle time
851
- alone.</comment>
852
- </param>
853
- <param name="numTestsPerEvictionRun" value="3">
854
- <comment>The number of objects to be examined on each run of idle
855
- evictor thread (if applicable). A value less than zero indicates
856
- that ceil(numIdle)/abs(numTestsPerEvictionRun) will be run.</comment>
857
- </param>
858
- <param name="timeBetweenEvictionRunsMillis" value="-1">
859
- <comment>The time in milliseconds to sleep between runs of the idle
860
- object evictor thread. A value less than zero indicates no idle
861
- evictor thread is run.</comment>
862
- </param>
863
- <param name="validationQuery" value="select 1">
864
- <comment>The query to run when validating connections.
865
- Connections are validated according to the testOnBorrow,
866
- testOnReturn, and testWhileIdle configuration values.
867
- If this is specified, it must be a SQL SELECT statement
868
- that returns at least one row. If this is NOT specified,
869
- validation tests will not be run.</comment>
870
- </param>
871
- <param name="testOnBorrow" value="true">
872
- <comment>When true objects are validated before borrowed from the
873
- pool.</comment>
874
- </param>
875
- <param name="testOnReturn" value="true">
876
- <comment>When true, objects are validated before returned to the
877
- pool.</comment>
878
- </param>
879
- <param name="testWhileIdle" value="true">
880
- <comment>When true, objects are validated by the idle object evictor
881
- thread.</comment>
882
- </param>
883
- <param name="whenExhaustedAction" value="1">
884
- <comment>Action to take when a new object is requested and the the pool has
885
- reached maximum number of active objects. Valid values are:
886
- 0 (fail i.e., throw Exception)
887
- 1 (block i.e., wait until pool resources are freed)
888
- 2 (grow i.e., increase the size of the pool).</comment>
889
- </param>
890
- </datastore>
891
- <datastore id="localMulgaraTriplestore">
892
- <comment>local Mulgara Triplestore used by the Resource Index</comment>
893
- <param name="connectorClassName" value="org.trippi.impl.mulgara.MulgaraConnector">
894
- <comment>The name of the Trippi Connector class used to communicate
895
- with the triplestore.</comment>
896
- </param>
897
- <param name="remote" value="false">
898
- <comment>Tells the connector to communicate with Mulgara in remote or
899
- local mode. If true, the host parameter must be defined. If false,
900
- the path parameter must be defined.</comment>
901
- </param>
902
- <param name="path" value="data/resourceIndex" isFilePath="true">
903
- <comment>The local path to the main triplestore directory.</comment>
904
- </param>
905
- <param name="serverName" value="fedora">
906
- <comment>The server name for rmi binding.</comment>
907
- </param>
908
- <param name="modelName" value="ri">
909
- <comment>The name of the model to use.</comment>
910
- </param>
911
- <param name="poolInitialSize" value="3">
912
- <comment>The initial size of the session pool used for queries.
913
- Note: A value of 0 will cause the Resource Index to operate in
914
- synchronized mode: concurrent read/write requests are put in a queue
915
- and handled in FIFO order; this will severely impair performance and
916
- is only intended for debugging.</comment>
917
- </param>
918
- <param name="poolMaxGrowth" value="-1">
919
- <comment>Maximum number of additional sessions the pool may add. If
920
- specified as -1, no limit will be placed on pool growth.</comment>
921
- </param>
922
- <param name="readOnly" value="false">
923
- <comment>Whether the triplestore should be read-only. Most Fedora
924
- repositories will set this to false.</comment>
925
- </param>
926
- <param name="autoCreate" value="true">
927
- <comment>Create the model if it doesn&apos;t already exist.
928
- At startup, the model will be automatically created. In addition, an
929
- XML schema datatyped model named &quot;xsd&quot; will also be automatically
930
- created.</comment>
931
- </param>
932
- <param name="autoTextIndex" value="false">
933
- <comment>Whether to propagate adds/deletes to a full-text
934
- [Full-Text] model automatically. While a very useful feature,
935
- enabling full-text indexing adds significantly to object ingest
936
- times. If true, the text model will be named modelName-fullText.
937
- Note that if this is true and autoCreate is true, the text model
938
- will also be created if it doesn&apos;t already exist.</comment>
939
- </param>
940
- <param name="autoFlushDormantSeconds" value="5">
941
- <comment>Seconds of buffer inactivity that will trigger an
942
- auto-flush. If this threshold is reached, flushing will occur in the
943
- background, during which time the buffer is still available for
944
- writing.</comment>
945
- </param>
946
- <param name="autoFlushBufferSize" value="20000">
947
- <comment>The size at which the buffer should be auto-flushed. If
948
- this threshold is reached, flushing will occur in the background,
949
- during which time the buffer is still available for
950
- writing.</comment>
951
- </param>
952
- <param name="bufferFlushBatchSize" value="20000">
953
- <comment>The number of updates to send to the triplestore at a time.
954
- This should be the same size as, or smaller than
955
- autoFlushBufferSize.</comment>
956
- </param>
957
- <param name="bufferSafeCapacity" value="40000">
958
- <comment>The maximum size the buffer can reach before being forcibly
959
- flushed. If this threshold is reached, flushing will occur in the
960
- foreground and the buffer will be locked for writing until it is
961
- finished. This should be larger than autoFlushBufferSize.</comment>
962
- </param>
963
- </datastore>
964
- <datastore id="localPostgresMPTTriplestore">
965
- <comment>Example local MPTStore backed by Postgres.
966
- To use this triplestore for the Resource Index:
967
- 1) In fedora.fcfg, change the "datastore" parameter of the
968
- ResourceIndex module to localPostgresMPTTriplestore.
969
- 2) Login to your Postgres server as an administrative user and
970
- run the following commands:
971
- CREATE ROLE "fedoraAdmin" LOGIN PASSWORD 'fedoraAdmin'
972
- NOINHERIT CREATEDB
973
- VALID UNTIL 'infinity';
974
- CREATE DATABASE "riTriples"
975
- WITH ENCODING='SQL_ASCII'
976
- OWNER="fedoraAdmin";
977
- 3) Make sure you can login to your Postgres server as fedoraAdmin.
978
- 4) Download the appropriate Postgres JDBC 3 driver from
979
- http://jdbc.postgresql.org/download.html
980
- and make sure it's accessible to your servlet container.
981
- If you're running Tomcat, putting it in common/lib/ will work.</comment>
982
- <param name="connectorClassName" value="org.trippi.impl.mpt.MPTConnector"/>
983
- <param name="ddlGenerator" value="org.nsdl.mptstore.impl.postgres.PostgresDDLGenerator"/>
984
- <param name="jdbcDriver" value="org.postgresql.Driver"/>
985
- <param name="jdbcURL" value="jdbc:postgresql://localhost/riTriples"/>
986
- <param name="username" value="fedoraAdmin"/>
987
- <param name="password" value="fedoraAdmin"/>
988
- <param name="poolInitialSize" value="3"/>
989
- <param name="poolMaxSize" value="10"/>
990
- <param name="backslashIsEscape" value="true"/>
991
- <param name="fetchSize" value="1000"/>
992
- <param name="autoFlushDormantSeconds" value="5"/>
993
- <param name="autoFlushBufferSize" value="1000"/>
994
- <param name="bufferFlushBatchSize" value="1000"/>
995
- <param name="bufferSafeCapacity" value="2000"/>
996
- </datastore>
997
- <datastore id="apimUpdateMessages">
998
- <comment>Messaging Destination for API-M events which update the repository</comment>
999
- <param name="messageTypes" value="apimUpdate">
1000
- <comment>A space-separated list of message types that will be
1001
- delivered to this Destination. Currently, &quot;apimUpdate&quot; and
1002
- &quot;apimAccess&quot; are the only supported message types.</comment>
1003
- </param>
1004
- <param name="name" value="fedora.apim.update"/>
1005
- <param name="type" value="topic">
1006
- <comment>Optional, defaults to topic.</comment>
1007
- </param>
1008
- </datastore>
1009
- <datastore id="apimAccessMessages">
1010
- <comment>Messaging Destination for API-M events which did not make changes to the repository</comment>
1011
- <param name="messageTypes" value="apimAccess">
1012
- <comment>A space-separated list of message types that will be
1013
- delivered to this Destination. Currently, &quot;apimUpdate&quot; and
1014
- &quot;apimAccess&quot; are the only supported message types.</comment>
1015
- </param>
1016
- <param name="name" value="fedora.apim.access"/>
1017
- <param name="type" value="topic">
1018
- <comment>Optional, defaults to topic.</comment>
1019
- </param>
1020
- </datastore>
1021
- </server>