active_documentum 0.3.2-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (245) hide show
  1. data/LICENSE +20 -0
  2. data/README.rdoc +7 -0
  3. data/lib/active_documentum.rb +1 -0
  4. data/lib/active_documentum/access_control_client.rb +1 -0
  5. data/lib/active_documentum/base.rb +1 -0
  6. data/lib/active_documentum/docbase_config.rb +1 -0
  7. data/lib/active_documentum/logging.rb +21 -0
  8. data/lib/active_documentum/object_client.rb +1 -0
  9. data/lib/active_documentum/query_client.rb +1 -0
  10. data/lib/active_documentum/schema.rb +51 -0
  11. data/lib/active_documentum/schema_client.rb +1 -0
  12. data/lib/active_documentum/search_client.rb +1 -0
  13. data/lib/active_documentum/session.rb +1 -0
  14. data/lib/active_documentum/types/cfs_import_batch.rb +98 -0
  15. data/lib/active_documentum/types/cfs_import_document.rb +119 -0
  16. data/lib/active_documentum/types/dm_acl.rb +29 -0
  17. data/lib/active_documentum/types/dm_acs_config.rb +113 -0
  18. data/lib/active_documentum/types/dm_activity.rb +155 -0
  19. data/lib/active_documentum/types/dm_aggr_domain.rb +28 -0
  20. data/lib/active_documentum/types/dm_alias_set.rb +18 -0
  21. data/lib/active_documentum/types/dm_app_ref.rb +95 -0
  22. data/lib/active_documentum/types/dm_application.rb +108 -0
  23. data/lib/active_documentum/types/dm_assembly.rb +20 -0
  24. data/lib/active_documentum/types/dm_attachments_folder.rb +91 -0
  25. data/lib/active_documentum/types/dm_audittrail.rb +47 -0
  26. data/lib/active_documentum/types/dm_audittrail_acl.rb +58 -0
  27. data/lib/active_documentum/types/dm_audittrail_group.rb +61 -0
  28. data/lib/active_documentum/types/dm_blobstore.rb +28 -0
  29. data/lib/active_documentum/types/dm_bocs_config.rb +100 -0
  30. data/lib/active_documentum/types/dm_builtin_expr.rb +10 -0
  31. data/lib/active_documentum/types/dm_business_pro.rb +93 -0
  32. data/lib/active_documentum/types/dm_ca_store.rb +33 -0
  33. data/lib/active_documentum/types/dm_cabinet.rb +92 -0
  34. data/lib/active_documentum/types/dm_cache_config.rb +96 -0
  35. data/lib/active_documentum/types/dm_category.rb +106 -0
  36. data/lib/active_documentum/types/dm_category_assign.rb +24 -0
  37. data/lib/active_documentum/types/dm_category_class.rb +99 -0
  38. data/lib/active_documentum/types/dm_ci_config.rb +108 -0
  39. data/lib/active_documentum/types/dm_client_registration.rb +93 -0
  40. data/lib/active_documentum/types/dm_client_rights.rb +96 -0
  41. data/lib/active_documentum/types/dm_component.rb +93 -0
  42. data/lib/active_documentum/types/dm_cond_expr.rb +21 -0
  43. data/lib/active_documentum/types/dm_cond_id_expr.rb +23 -0
  44. data/lib/active_documentum/types/dm_cont_transfer_config.rb +93 -0
  45. data/lib/active_documentum/types/dm_cryptographic_key.rb +93 -0
  46. data/lib/active_documentum/types/dm_dd_info.rb +44 -0
  47. data/lib/active_documentum/types/dm_decision.rb +95 -0
  48. data/lib/active_documentum/types/dm_display_config.rb +11 -0
  49. data/lib/active_documentum/types/dm_distributedstore.rb +29 -0
  50. data/lib/active_documentum/types/dm_dms_config.rb +94 -0
  51. data/lib/active_documentum/types/dm_docbase_config.rb +132 -0
  52. data/lib/active_documentum/types/dm_docbaseid_map.rb +9 -0
  53. data/lib/active_documentum/types/dm_docset.rb +94 -0
  54. data/lib/active_documentum/types/dm_docset_run.rb +100 -0
  55. data/lib/active_documentum/types/dm_document.rb +89 -0
  56. data/lib/active_documentum/types/dm_domain.rb +16 -0
  57. data/lib/active_documentum/types/dm_dump_record.rb +21 -0
  58. data/lib/active_documentum/types/dm_email_message.rb +96 -0
  59. data/lib/active_documentum/types/dm_esign_template.rb +94 -0
  60. data/lib/active_documentum/types/dm_expression.rb +9 -0
  61. data/lib/active_documentum/types/dm_extern_file.rb +38 -0
  62. data/lib/active_documentum/types/dm_extern_free.rb +34 -0
  63. data/lib/active_documentum/types/dm_extern_store.rb +34 -0
  64. data/lib/active_documentum/types/dm_extern_url.rb +34 -0
  65. data/lib/active_documentum/types/dm_federation.rb +96 -0
  66. data/lib/active_documentum/types/dm_filestore.rb +29 -0
  67. data/lib/active_documentum/types/dm_folder.rb +91 -0
  68. data/lib/active_documentum/types/dm_foreign_key.rb +20 -0
  69. data/lib/active_documentum/types/dm_format.rb +26 -0
  70. data/lib/active_documentum/types/dm_format_preferences.rb +89 -0
  71. data/lib/active_documentum/types/dm_ftengine_config.rb +91 -0
  72. data/lib/active_documentum/types/dm_ftindex_agent_config.rb +108 -0
  73. data/lib/active_documentum/types/dm_fulltext_index.rb +14 -0
  74. data/lib/active_documentum/types/dm_func_expr.rb +20 -0
  75. data/lib/active_documentum/types/dm_group.rb +57 -0
  76. data/lib/active_documentum/types/dm_java.rb +92 -0
  77. data/lib/active_documentum/types/dm_jms_config.rb +104 -0
  78. data/lib/active_documentum/types/dm_job.rb +114 -0
  79. data/lib/active_documentum/types/dm_job_request.rb +95 -0
  80. data/lib/active_documentum/types/dm_job_sequence.rb +95 -0
  81. data/lib/active_documentum/types/dm_key.rb +9 -0
  82. data/lib/active_documentum/types/dm_ldap_config.rb +123 -0
  83. data/lib/active_documentum/types/dm_linkedstore.rb +28 -0
  84. data/lib/active_documentum/types/dm_literal_expr.rb +9 -0
  85. data/lib/active_documentum/types/dm_load_record.rb +16 -0
  86. data/lib/active_documentum/types/dm_location.rb +94 -0
  87. data/lib/active_documentum/types/dm_locator.rb +90 -0
  88. data/lib/active_documentum/types/dm_media_profile.rb +93 -0
  89. data/lib/active_documentum/types/dm_menu_system.rb +89 -0
  90. data/lib/active_documentum/types/dm_message_address.rb +14 -0
  91. data/lib/active_documentum/types/dm_message_archive.rb +112 -0
  92. data/lib/active_documentum/types/dm_message_attachment.rb +10 -0
  93. data/lib/active_documentum/types/dm_message_container.rb +97 -0
  94. data/lib/active_documentum/types/dm_message_route_user_data.rb +9 -0
  95. data/lib/active_documentum/types/dm_message_user_data.rb +9 -0
  96. data/lib/active_documentum/types/dm_method.rb +104 -0
  97. data/lib/active_documentum/types/dm_migrate_rule.rb +152 -0
  98. data/lib/active_documentum/types/dm_mount_point.rb +95 -0
  99. data/lib/active_documentum/types/dm_network_location_map.rb +95 -0
  100. data/lib/active_documentum/types/dm_nls_dd_info.rb +21 -0
  101. data/lib/active_documentum/types/dm_note.rb +89 -0
  102. data/lib/active_documentum/types/dm_opticalstore.rb +30 -0
  103. data/lib/active_documentum/types/dm_outputdevice.rb +96 -0
  104. data/lib/active_documentum/types/dm_plugin.rb +93 -0
  105. data/lib/active_documentum/types/dm_policy.rb +122 -0
  106. data/lib/active_documentum/types/dm_procedure.rb +90 -0
  107. data/lib/active_documentum/types/dm_process.rb +124 -0
  108. data/lib/active_documentum/types/dm_public_key_certificate.rb +93 -0
  109. data/lib/active_documentum/types/dm_qual_comp.rb +96 -0
  110. data/lib/active_documentum/types/dm_query.rb +89 -0
  111. data/lib/active_documentum/types/dm_reference.rb +30 -0
  112. data/lib/active_documentum/types/dm_registered.rb +100 -0
  113. data/lib/active_documentum/types/dm_relation.rb +15 -0
  114. data/lib/active_documentum/types/dm_relation_ssa_policy.rb +17 -0
  115. data/lib/active_documentum/types/dm_relation_type.rb +18 -0
  116. data/lib/active_documentum/types/dm_retainer.rb +101 -0
  117. data/lib/active_documentum/types/dm_router.rb +130 -0
  118. data/lib/active_documentum/types/dm_scope_config.rb +9 -0
  119. data/lib/active_documentum/types/dm_script.rb +89 -0
  120. data/lib/active_documentum/types/dm_server_config.rb +159 -0
  121. data/lib/active_documentum/types/dm_shmeconfig.rb +7 -0
  122. data/lib/active_documentum/types/dm_smart_list.rb +93 -0
  123. data/lib/active_documentum/types/dm_ssa_policy.rb +90 -0
  124. data/lib/active_documentum/types/dm_staged.rb +91 -0
  125. data/lib/active_documentum/types/dm_state_extension.rb +16 -0
  126. data/lib/active_documentum/types/dm_state_type.rb +7 -0
  127. data/lib/active_documentum/types/dm_store.rb +26 -0
  128. data/lib/active_documentum/types/dm_sync_list_relation.rb +16 -0
  129. data/lib/active_documentum/types/dm_sysobject.rb +89 -0
  130. data/lib/active_documentum/types/dm_sysprocess_config.rb +104 -0
  131. data/lib/active_documentum/types/dm_taxonomy.rb +107 -0
  132. data/lib/active_documentum/types/dm_type.rb +24 -0
  133. data/lib/active_documentum/types/dm_user.rb +45 -0
  134. data/lib/active_documentum/types/dm_validation_descriptor.rb +91 -0
  135. data/lib/active_documentum/types/dm_value_assist.rb +11 -0
  136. data/lib/active_documentum/types/dm_value_func.rb +13 -0
  137. data/lib/active_documentum/types/dm_value_list.rb +12 -0
  138. data/lib/active_documentum/types/dm_value_query.rb +14 -0
  139. data/lib/active_documentum/types/dm_webc_config.rb +114 -0
  140. data/lib/active_documentum/types/dm_webc_target.rb +112 -0
  141. data/lib/active_documentum/types/dm_workflow.rb +39 -0
  142. data/lib/active_documentum/types/dm_xml_application.rb +96 -0
  143. data/lib/active_documentum/types/dm_xml_config.rb +90 -0
  144. data/lib/active_documentum/types/dm_xml_custom_code.rb +92 -0
  145. data/lib/active_documentum/types/dm_xml_style_sheet.rb +90 -0
  146. data/lib/active_documentum/types/dm_xml_zone.rb +91 -0
  147. data/lib/active_documentum/types/dmc_act_group_instance.rb +16 -0
  148. data/lib/active_documentum/types/dmc_aspect_relation.rb +8 -0
  149. data/lib/active_documentum/types/dmc_aspect_type.rb +111 -0
  150. data/lib/active_documentum/types/dmc_class.rb +92 -0
  151. data/lib/active_documentum/types/dmc_comment.rb +97 -0
  152. data/lib/active_documentum/types/dmc_completed_workflow.rb +21 -0
  153. data/lib/active_documentum/types/dmc_completed_workitem.rb +26 -0
  154. data/lib/active_documentum/types/dmc_composite_predicate.rb +7 -0
  155. data/lib/active_documentum/types/dmc_config_scope_relation.rb +17 -0
  156. data/lib/active_documentum/types/dmc_constraint_set.rb +92 -0
  157. data/lib/active_documentum/types/dmc_dar.rb +92 -0
  158. data/lib/active_documentum/types/dmc_jar.rb +91 -0
  159. data/lib/active_documentum/types/dmc_java_library.rb +92 -0
  160. data/lib/active_documentum/types/dmc_metamodel.rb +89 -0
  161. data/lib/active_documentum/types/dmc_module.rb +103 -0
  162. data/lib/active_documentum/types/dmc_module_config.rb +10 -0
  163. data/lib/active_documentum/types/dmc_notepage.rb +90 -0
  164. data/lib/active_documentum/types/dmc_preset_info.rb +19 -0
  165. data/lib/active_documentum/types/dmc_preset_package.rb +93 -0
  166. data/lib/active_documentum/types/dmc_process_correlation_set.rb +17 -0
  167. data/lib/active_documentum/types/dmc_process_parameter.rb +99 -0
  168. data/lib/active_documentum/types/dmc_readcomment.rb +8 -0
  169. data/lib/active_documentum/types/dmc_relationship_def.rb +104 -0
  170. data/lib/active_documentum/types/dmc_richtext.rb +92 -0
  171. data/lib/active_documentum/types/dmc_room.rb +100 -0
  172. data/lib/active_documentum/types/dmc_routecase_condition.rb +23 -0
  173. data/lib/active_documentum/types/dmc_tcf_activity.rb +91 -0
  174. data/lib/active_documentum/types/dmc_tcf_activity_template.rb +91 -0
  175. data/lib/active_documentum/types/dmc_topic.rb +94 -0
  176. data/lib/active_documentum/types/dmc_transition_condition.rb +20 -0
  177. data/lib/active_documentum/types/dmc_validation_module.rb +106 -0
  178. data/lib/active_documentum/types/dmc_validation_relation.rb +17 -0
  179. data/lib/active_documentum/types/dmc_wf_package_schema.rb +16 -0
  180. data/lib/active_documentum/types/dmc_wf_package_skill.rb +17 -0
  181. data/lib/active_documentum/types/dmc_wf_package_type_info.rb +93 -0
  182. data/lib/active_documentum/types/dmc_wfsd_element.rb +96 -0
  183. data/lib/active_documentum/types/dmc_wfsd_element_boolean.rb +97 -0
  184. data/lib/active_documentum/types/dmc_wfsd_element_date.rb +97 -0
  185. data/lib/active_documentum/types/dmc_wfsd_element_double.rb +97 -0
  186. data/lib/active_documentum/types/dmc_wfsd_element_integer.rb +97 -0
  187. data/lib/active_documentum/types/dmc_wfsd_element_parent.rb +92 -0
  188. data/lib/active_documentum/types/dmc_wfsd_element_string.rb +97 -0
  189. data/lib/active_documentum/types/dmc_wfsd_type_info.rb +106 -0
  190. data/lib/active_documentum/types/dmc_wfsdrp_boolean.rb +16 -0
  191. data/lib/active_documentum/types/dmc_wfsdrp_date.rb +16 -0
  192. data/lib/active_documentum/types/dmc_wfsdrp_double.rb +16 -0
  193. data/lib/active_documentum/types/dmc_wfsdrp_integer.rb +16 -0
  194. data/lib/active_documentum/types/dmc_wfsdrp_parent.rb +15 -0
  195. data/lib/active_documentum/types/dmc_wfsdrp_string.rb +16 -0
  196. data/lib/active_documentum/types/dmc_workqueue.rb +9 -0
  197. data/lib/active_documentum/types/dmc_workqueue_category.rb +91 -0
  198. data/lib/active_documentum/types/dmc_workqueue_doc_profile.rb +9 -0
  199. data/lib/active_documentum/types/dmc_workqueue_policy.rb +16 -0
  200. data/lib/active_documentum/types/dmc_workqueue_user_profile.rb +10 -0
  201. data/lib/active_documentum/types/dmc_wpr_parent.rb +16 -0
  202. data/lib/active_documentum/types/dmc_wq_skill_info.rb +14 -0
  203. data/lib/active_documentum/types/dmc_wq_task_skill.rb +10 -0
  204. data/lib/active_documentum/types/dmc_wq_user_skill.rb +10 -0
  205. data/lib/active_documentum/types/dmi_audittrail_attrs.rb +8 -0
  206. data/lib/active_documentum/types/dmi_change_record.rb +13 -0
  207. data/lib/active_documentum/types/dmi_dd_attr_info.rb +116 -0
  208. data/lib/active_documentum/types/dmi_dd_common_info.rb +57 -0
  209. data/lib/active_documentum/types/dmi_dd_type_info.rb +87 -0
  210. data/lib/active_documentum/types/dmi_dist_comp_record.rb +8 -0
  211. data/lib/active_documentum/types/dmi_dump_object_record.rb +9 -0
  212. data/lib/active_documentum/types/dmi_expr_code.rb +91 -0
  213. data/lib/active_documentum/types/dmi_index.rb +15 -0
  214. data/lib/active_documentum/types/dmi_linkrecord.rb +12 -0
  215. data/lib/active_documentum/types/dmi_load_object_record.rb +15 -0
  216. data/lib/active_documentum/types/dmi_otherfile.rb +9 -0
  217. data/lib/active_documentum/types/dmi_package.rb +22 -0
  218. data/lib/active_documentum/types/dmi_queue_item.rb +47 -0
  219. data/lib/active_documentum/types/dmi_recovery.rb +10 -0
  220. data/lib/active_documentum/types/dmi_registry.rb +21 -0
  221. data/lib/active_documentum/types/dmi_replica_record.rb +13 -0
  222. data/lib/active_documentum/types/dmi_sequence.rb +11 -0
  223. data/lib/active_documentum/types/dmi_session.rb +12 -0
  224. data/lib/active_documentum/types/dmi_subcontent.rb +9 -0
  225. data/lib/active_documentum/types/dmi_transactionlog.rb +8 -0
  226. data/lib/active_documentum/types/dmi_type_info.rb +22 -0
  227. data/lib/active_documentum/types/dmi_vstamp.rb +6 -0
  228. data/lib/active_documentum/types/dmi_wf_attachment.rb +11 -0
  229. data/lib/active_documentum/types/dmi_wf_timer.rb +17 -0
  230. data/lib/active_documentum/types/dmi_workitem.rb +35 -0
  231. data/lib/active_documentum/types/dmr_containment.rb +15 -0
  232. data/lib/active_documentum/types/dmr_content.rb +58 -0
  233. data/lib/active_documentum/typescfs_import_batch.rb +93 -0
  234. data/lib/support.rb +13 -0
  235. data/test/active_documentum/access_control_client_test.rb +15 -0
  236. data/test/active_documentum/docbase_config_test.rb +41 -0
  237. data/test/active_documentum/object_client_test.rb +11 -0
  238. data/test/active_documentum/query_client_test.rb +9 -0
  239. data/test/active_documentum/schema_client_test.rb +27 -0
  240. data/test/active_documentum/search_client_test.rb +9 -0
  241. data/test/active_documentum/types/dm_group_test.rb +151 -0
  242. data/test/active_documentum/types/dm_user_test.rb +106 -0
  243. data/test/active_documentum_test.rb +9 -0
  244. data/test/test_helper.rb +8 -0
  245. metadata +298 -0
@@ -0,0 +1,6 @@
1
+ class DmiVstamp < ActiveDocumentum::Base
2
+ # i_application => {:name=>"i_application", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>64, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
3
+ # i_stamp => {:name=>"i_stamp", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
4
+ # i_vstamp => {:name=>"i_vstamp", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
5
+ # r_object_id => {:name=>"r_object_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
6
+ end
@@ -0,0 +1,11 @@
1
+ class DmiWfAttachment < ActiveDocumentum::Base
2
+ # r_workflow_id => {:name=>"r_workflow_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
3
+ # r_component_id => {:name=>"r_component_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
4
+ # r_component_name => {:name=>"r_component_name", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>80, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
5
+ # r_component_type => {:name=>"r_component_type", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>40, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
6
+ # r_creator_name => {:name=>"r_creator_name", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
7
+ # r_creation_date => {:name=>"r_creation_date", :description=>"", :data_type=>"DATE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
8
+ # i_is_replica => {:name=>"i_is_replica", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
9
+ # i_vstamp => {:name=>"i_vstamp", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
10
+ # r_object_id => {:name=>"r_object_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
11
+ end
@@ -0,0 +1,17 @@
1
+ class DmiWfTimer < ActiveDocumentum::Base
2
+ # r_timer_name => {:name=>"r_timer_name", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>64, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
3
+ # r_workflow_id => {:name=>"r_workflow_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
4
+ # r_act_name => {:name=>"r_act_name", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>128, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
5
+ # r_act_seqno => {:name=>"r_act_seqno", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
6
+ # r_act_id => {:name=>"r_act_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
7
+ # r_timer => {:name=>"r_timer", :description=>"", :data_type=>"DATE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
8
+ # r_start_time => {:name=>"r_start_time", :description=>"", :data_type=>"DATE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
9
+ # r_timer_type => {:name=>"r_timer_type", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
10
+ # r_action_id => {:name=>"r_action_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
11
+ # r_action_index => {:name=>"r_action_index", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
12
+ # r_calendar_id => {:name=>"r_calendar_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
13
+ # i_calendar_status => {:name=>"i_calendar_status", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
14
+ # i_is_replica => {:name=>"i_is_replica", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
15
+ # i_vstamp => {:name=>"i_vstamp", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
16
+ # r_object_id => {:name=>"r_object_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
17
+ end
@@ -0,0 +1,35 @@
1
+ class DmiWorkitem < ActiveDocumentum::Base
2
+ # r_workflow_id => {:name=>"r_workflow_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
3
+ # r_act_seqno => {:name=>"r_act_seqno", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
4
+ # r_performer_name => {:name=>"r_performer_name", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
5
+ # r_creation_date => {:name=>"r_creation_date", :description=>"", :data_type=>"DATE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
6
+ # r_due_date => {:name=>"r_due_date", :description=>"", :data_type=>"DATE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
7
+ # r_priority => {:name=>"r_priority", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
8
+ # r_auto_method_id => {:name=>"r_auto_method_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
9
+ # return_value => {:name=>"return_value", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
10
+ # r_exec_result_id => {:name=>"r_exec_result_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
11
+ # r_exec_launch => {:name=>"r_exec_launch", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
12
+ # r_exec_time_out => {:name=>"r_exec_time_out", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
13
+ # r_exec_os_error => {:name=>"r_exec_os_error", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>255, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
14
+ # r_output_port => {:name=>"r_output_port", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>16, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
15
+ # r_ext_performer => {:name=>"r_ext_performer", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
16
+ # r_runtime_state => {:name=>"r_runtime_state", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
17
+ # r_queue_item_id => {:name=>"r_queue_item_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
18
+ # r_act_def_id => {:name=>"r_act_def_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
19
+ # r_sign_off_req => {:name=>"r_sign_off_req", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
20
+ # r_launch_timeout => {:name=>"r_launch_timeout", :description=>"", :data_type=>"DATE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
21
+ # a_wq_name => {:name=>"a_wq_name", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
22
+ # a_wq_flag => {:name=>"a_wq_flag", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
23
+ # a_wq_policy_id => {:name=>"a_wq_policy_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
24
+ # a_wq_doc_profile => {:name=>"a_wq_doc_profile", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>64, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
25
+ # a_held_by => {:name=>"a_held_by", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
26
+ # user_time => {:name=>"user_time", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
27
+ # user_cost => {:name=>"user_cost", :description=>"", :data_type=>"DOUBLE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
28
+ # r_exec_retried_count => {:name=>"r_exec_retried_count", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
29
+ # r_next_retry_date => {:name=>"r_next_retry_date", :description=>"", :data_type=>"DATE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
30
+ # r_handling_instruction => {:name=>"r_handling_instruction", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
31
+ # r_target_task_id => {:name=>"r_target_task_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
32
+ # i_is_replica => {:name=>"i_is_replica", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
33
+ # i_vstamp => {:name=>"i_vstamp", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
34
+ # r_object_id => {:name=>"r_object_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
35
+ end
@@ -0,0 +1,15 @@
1
+ class DmrContainment < ActiveDocumentum::Base
2
+ # parent_id => {:name=>"parent_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
3
+ # component_id => {:name=>"component_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
4
+ # version_label => {:name=>"version_label", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
5
+ # order_no => {:name=>"order_no", :description=>"", :data_type=>"DOUBLE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
6
+ # use_node_ver_label => {:name=>"use_node_ver_label", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
7
+ # follow_assembly => {:name=>"follow_assembly", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
8
+ # copy_child => {:name=>"copy_child", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
9
+ # a_contain_type => {:name=>"a_contain_type", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
10
+ # a_contain_desc => {:name=>"a_contain_desc", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>255, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
11
+ # i_partition => {:name=>"i_partition", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
12
+ # i_is_replica => {:name=>"i_is_replica", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
13
+ # i_vstamp => {:name=>"i_vstamp", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
14
+ # r_object_id => {:name=>"r_object_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
15
+ end
@@ -0,0 +1,58 @@
1
+ class DmrContent < ActiveDocumentum::Base
2
+ # parent_id => {:name=>"parent_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
3
+ # page => {:name=>"page", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
4
+ # rendition => {:name=>"rendition", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
5
+ # parent_count => {:name=>"parent_count", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
6
+ # storage_id => {:name=>"storage_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
7
+ # data_ticket => {:name=>"data_ticket", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
8
+ # other_ticket => {:name=>"other_ticket", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
9
+ # content_size => {:name=>"content_size", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
10
+ # full_format => {:name=>"full_format", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>64, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
11
+ # format => {:name=>"format", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
12
+ # resolution => {:name=>"resolution", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
13
+ # x_range => {:name=>"x_range", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
14
+ # y_range => {:name=>"y_range", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
15
+ # z_range => {:name=>"z_range", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
16
+ # encoding => {:name=>"encoding", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>10, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
17
+ # loss => {:name=>"loss", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
18
+ # transform_path => {:name=>"transform_path", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
19
+ # set_client => {:name=>"set_client", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>64, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
20
+ # set_file => {:name=>"set_file", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>255, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
21
+ # set_time => {:name=>"set_time", :description=>"", :data_type=>"DATE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
22
+ # is_offline => {:name=>"is_offline", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
23
+ # i_contents => {:name=>"i_contents", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>255, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
24
+ # is_archived => {:name=>"is_archived", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
25
+ # index_format => {:name=>"index_format", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
26
+ # index_parent => {:name=>"index_parent", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
27
+ # fulltext_index => {:name=>"fulltext_index", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
28
+ # index_pending => {:name=>"index_pending", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
29
+ # update_count => {:name=>"update_count", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
30
+ # i_index_format => {:name=>"i_index_format", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
31
+ # i_format => {:name=>"i_format", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
32
+ # i_rendition => {:name=>"i_rendition", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
33
+ # i_px => {:name=>"i_px", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
34
+ # i_py => {:name=>"i_py", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
35
+ # i_pz => {:name=>"i_pz", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
36
+ # i_encoding => {:name=>"i_encoding", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>10, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
37
+ # i_full_format => {:name=>"i_full_format", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>64, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
38
+ # index_parents => {:name=>"index_parents", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
39
+ # index_set_times => {:name=>"index_set_times", :description=>"", :data_type=>"DATE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
40
+ # index_pages => {:name=>"index_pages", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
41
+ # index_subtypes => {:name=>"index_subtypes", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>27, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
42
+ # index_operations => {:name=>"index_operations", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
43
+ # index_formats => {:name=>"index_formats", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
44
+ # content_attr_name => {:name=>"content_attr_name", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>64, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
45
+ # content_attr_value => {:name=>"content_attr_value", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>255, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
46
+ # full_content_size => {:name=>"full_content_size", :description=>"", :data_type=>"DOUBLE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
47
+ # page_modifier => {:name=>"page_modifier", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>16, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
48
+ # content_attr_num_value => {:name=>"content_attr_num_value", :description=>"", :data_type=>"DOUBLE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
49
+ # content_attr_date_value => {:name=>"content_attr_date_value", :description=>"", :data_type=>"DATE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
50
+ # content_attr_data_type => {:name=>"content_attr_data_type", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
51
+ # r_content_hash => {:name=>"r_content_hash", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>256, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
52
+ # i_parked_state => {:name=>"i_parked_state", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
53
+ # other_file_size => {:name=>"other_file_size", :description=>"", :data_type=>"DOUBLE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
54
+ # i_partition => {:name=>"i_partition", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
55
+ # i_is_replica => {:name=>"i_is_replica", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
56
+ # i_vstamp => {:name=>"i_vstamp", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
57
+ # r_object_id => {:name=>"r_object_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
58
+ end
@@ -0,0 +1,93 @@
1
+ # Author:: Luke Chadwick (mailto:luke.a.chadwick@gmail.com)# Copyright:: Copyright (c) 2010 Luke Chadwick# License:: Distributes under the same terms as Ruby## This class is an auto generated documentum object typeclass CfsImportBatch < DmSysobject
2
+ # object_name => {:name=>"object_name", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>255, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
3
+ # r_object_type => {:name=>"r_object_type", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
4
+ # title => {:name=>"title", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>400, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
5
+ # subject => {:name=>"subject", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>192, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
6
+ # authors => {:name=>"authors", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>48, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
7
+ # keywords => {:name=>"keywords", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>48, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
8
+ # a_application_type => {:name=>"a_application_type", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
9
+ # a_status => {:name=>"a_status", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>16, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
10
+ # r_creation_date => {:name=>"r_creation_date", :description=>"", :data_type=>"DATE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
11
+ # r_modify_date => {:name=>"r_modify_date", :description=>"", :data_type=>"DATE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
12
+ # r_modifier => {:name=>"r_modifier", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
13
+ # r_access_date => {:name=>"r_access_date", :description=>"", :data_type=>"DATE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
14
+ # a_is_hidden => {:name=>"a_is_hidden", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
15
+ # i_is_deleted => {:name=>"i_is_deleted", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
16
+ # a_retention_date => {:name=>"a_retention_date", :description=>"", :data_type=>"DATE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
17
+ # a_archive => {:name=>"a_archive", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
18
+ # a_compound_architecture => {:name=>"a_compound_architecture", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>16, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
19
+ # a_link_resolved => {:name=>"a_link_resolved", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
20
+ # i_reference_cnt => {:name=>"i_reference_cnt", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
21
+ # i_has_folder => {:name=>"i_has_folder", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
22
+ # i_folder_id => {:name=>"i_folder_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
23
+ # r_composite_id => {:name=>"r_composite_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
24
+ # r_composite_label => {:name=>"r_composite_label", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
25
+ # r_component_label => {:name=>"r_component_label", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
26
+ # r_order_no => {:name=>"r_order_no", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
27
+ # r_link_cnt => {:name=>"r_link_cnt", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
28
+ # r_link_high_cnt => {:name=>"r_link_high_cnt", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
29
+ # r_assembled_from_id => {:name=>"r_assembled_from_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
30
+ # r_frzn_assembly_cnt => {:name=>"r_frzn_assembly_cnt", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
31
+ # r_has_frzn_assembly => {:name=>"r_has_frzn_assembly", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
32
+ # resolution_label => {:name=>"resolution_label", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
33
+ # r_is_virtual_doc => {:name=>"r_is_virtual_doc", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
34
+ # i_contents_id => {:name=>"i_contents_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
35
+ # a_content_type => {:name=>"a_content_type", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
36
+ # r_page_cnt => {:name=>"r_page_cnt", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
37
+ # r_content_size => {:name=>"r_content_size", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
38
+ # a_full_text => {:name=>"a_full_text", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
39
+ # a_storage_type => {:name=>"a_storage_type", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
40
+ # i_cabinet_id => {:name=>"i_cabinet_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
41
+ # owner_name => {:name=>"owner_name", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
42
+ # owner_permit => {:name=>"owner_permit", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
43
+ # group_name => {:name=>"group_name", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
44
+ # group_permit => {:name=>"group_permit", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
45
+ # world_permit => {:name=>"world_permit", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
46
+ # i_antecedent_id => {:name=>"i_antecedent_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
47
+ # i_chronicle_id => {:name=>"i_chronicle_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
48
+ # i_latest_flag => {:name=>"i_latest_flag", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
49
+ # r_lock_owner => {:name=>"r_lock_owner", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
50
+ # r_lock_date => {:name=>"r_lock_date", :description=>"", :data_type=>"DATE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
51
+ # r_lock_machine => {:name=>"r_lock_machine", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>80, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
52
+ # log_entry => {:name=>"log_entry", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>120, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
53
+ # r_version_label => {:name=>"r_version_label", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
54
+ # i_branch_cnt => {:name=>"i_branch_cnt", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
55
+ # i_direct_dsc => {:name=>"i_direct_dsc", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
56
+ # r_immutable_flag => {:name=>"r_immutable_flag", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
57
+ # r_frozen_flag => {:name=>"r_frozen_flag", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
58
+ # r_has_events => {:name=>"r_has_events", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
59
+ # acl_domain => {:name=>"acl_domain", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
60
+ # acl_name => {:name=>"acl_name", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
61
+ # a_special_app => {:name=>"a_special_app", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
62
+ # i_is_reference => {:name=>"i_is_reference", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
63
+ # r_creator_name => {:name=>"r_creator_name", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
64
+ # r_is_public => {:name=>"r_is_public", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
65
+ # r_policy_id => {:name=>"r_policy_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
66
+ # r_resume_state => {:name=>"r_resume_state", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
67
+ # r_current_state => {:name=>"r_current_state", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
68
+ # r_alias_set_id => {:name=>"r_alias_set_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
69
+ # a_effective_date => {:name=>"a_effective_date", :description=>"", :data_type=>"DATE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
70
+ # a_expiration_date => {:name=>"a_expiration_date", :description=>"", :data_type=>"DATE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
71
+ # a_publish_formats => {:name=>"a_publish_formats", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
72
+ # a_effective_label => {:name=>"a_effective_label", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
73
+ # a_effective_flag => {:name=>"a_effective_flag", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>8, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
74
+ # a_category => {:name=>"a_category", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>64, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
75
+ # language_code => {:name=>"language_code", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>5, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
76
+ # a_is_template => {:name=>"a_is_template", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
77
+ # a_controlling_app => {:name=>"a_controlling_app", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
78
+ # r_full_content_size => {:name=>"r_full_content_size", :description=>"", :data_type=>"DOUBLE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
79
+ # a_extended_properties => {:name=>"a_extended_properties", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
80
+ # a_is_signed => {:name=>"a_is_signed", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
81
+ # a_last_review_date => {:name=>"a_last_review_date", :description=>"", :data_type=>"DATE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
82
+ # i_retain_until => {:name=>"i_retain_until", :description=>"", :data_type=>"DATE", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
83
+ # r_aspect_name => {:name=>"r_aspect_name", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>64, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
84
+ # i_retainer_id => {:name=>"i_retainer_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>true, :is_dynamic=>false, :is_required=>false}
85
+ # i_partition => {:name=>"i_partition", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
86
+ # i_is_replica => {:name=>"i_is_replica", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
87
+ # i_vstamp => {:name=>"i_vstamp", :description=>"", :data_type=>"INTEGER", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
88
+ # cfs_batch_name => {:name=>"cfs_batch_name", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>255, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
89
+ # i_sharing_type => {:name=>"i_sharing_type", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
90
+ # i_orig_parent => {:name=>"i_orig_parent", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
91
+ # allow_propagating_changes => {:name=>"allow_propagating_changes", :description=>"", :data_type=>"BOOLEAN", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
92
+ # r_object_id => {:name=>"r_object_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
93
+ end
data/lib/support.rb ADDED
@@ -0,0 +1,13 @@
1
+ module Support
2
+ def clean(value)
3
+ return value.gsub("'", "''").gsub("/", " ")
4
+ end
5
+
6
+ def decamelize(value)
7
+ value.to_s.gsub(/([A-Z])/, '_\1').downcase.reverse.chop.reverse
8
+ end
9
+
10
+ def camelize(value)
11
+ value.to_s.split('_').map{|m| m.capitalize}.join
12
+ end
13
+ end
@@ -0,0 +1,15 @@
1
+ require 'test_helper'
2
+
3
+ class AccessControlClientTest < Test::Unit::TestCase
4
+ should "be able to initialize service" do
5
+ assert_nothing_raised do
6
+ ActiveDocumentum::AccessControlClient.new
7
+ end
8
+ end
9
+
10
+ # should "be able to create a simple acl" do
11
+ # value = rand(10)
12
+ # permissions = [{:accessor => "dm_owner", :level => "Delete", :extended => ["X_EXECUTE_PROC", "X_CHANGE_LOCATION","X_CHANGE_PERMIT", "X_CHANGE_STATE", "X_CHANGE_OWNER"]}]
13
+ # ActiveDocumentum::AccessControlClient.new.create("test_acl_#{value}", "Test Acl #{value}", permissions)
14
+ # end
15
+ end
@@ -0,0 +1,41 @@
1
+ require 'test_helper'
2
+
3
+ class DocbaseConfigTest < Test::Unit::TestCase
4
+ #should "have a configuration file" do
5
+ # assert(File.exist?(File.join(File.dirname(__FILE__), '..', 'config', 'environment.yml')))
6
+ #end
7
+
8
+ should "not raise an error getting environment docbase" do
9
+ assert_nothing_raised do
10
+ ActiveDocumentum::DocbaseConfig.docbase
11
+ end
12
+ end
13
+
14
+ should "not raise an error getting environment username" do
15
+ assert_nothing_raised do
16
+ ActiveDocumentum::DocbaseConfig.username
17
+ end
18
+ end
19
+
20
+ should "not raise an error getting environment password" do
21
+ assert_nothing_raised do
22
+ ActiveDocumentum::DocbaseConfig.password
23
+ end
24
+ end
25
+
26
+ should "not raise an error getting environment url" do
27
+ assert_nothing_raised do
28
+ ActiveDocumentum::DocbaseConfig.url
29
+ end
30
+ end
31
+
32
+ # should "have an accessible environment url" do
33
+ # assert_nothing_raised do
34
+ # require 'net/http'
35
+ # Net::HTTP.get(URI.parse(ActiveDocumentum::DocbaseConfig.url))
36
+ # end
37
+ # end
38
+ # should "environment url should be valid" do
39
+ # flunk "TODO"
40
+ # end
41
+ end
@@ -0,0 +1,11 @@
1
+ require 'test_helper'
2
+
3
+ class ObjectClientTest < Test::Unit::TestCase
4
+ should "be able to get an object" do
5
+ assert_nothing_raised do
6
+ @object = ActiveDocumentum::ObjectClient.new.get("0900d43180024897")
7
+ end
8
+ assert_not_nil(@object)
9
+ #assert_equal(@repository_info[:name], ActiveDocumentum::DocbaseConfig.docbase)
10
+ end
11
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ class QueryClientTest < Test::Unit::TestCase
4
+ should "be able to run a simple query" do
5
+ assert_nothing_raised do
6
+ ActiveDocumentum::QueryClient.new.execute("select * from dm_cabinet")
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,27 @@
1
+ require 'test_helper'
2
+
3
+ class SchemaClientTest < Test::Unit::TestCase
4
+ should "be able to get repository info" do
5
+ assert_nothing_raised do
6
+ @repository_info = ActiveDocumentum::SchemaClient.new.repository_info(ActiveDocumentum::DocbaseConfig.docbase)
7
+ end
8
+ assert_not_nil(@repository_info)
9
+ assert_equal(@repository_info[:name], ActiveDocumentum::DocbaseConfig.docbase)
10
+ end
11
+
12
+ should "be able to get schema info" do
13
+ assert_nothing_raised do
14
+ @schema_info = ActiveDocumentum::SchemaClient.new.schema_info
15
+ end
16
+ assert_not_nil(@schema_info)
17
+ assert_equal(@schema_info[:name], 'DEFAULT')
18
+ end
19
+
20
+ should "be able to get type info" do
21
+ assert_nothing_raised do
22
+ @type_info = ActiveDocumentum::SchemaClient.new.type_info('dm_document')
23
+ end
24
+ assert_not_nil(@type_info)
25
+ assert_equal(@type_info[:name], 'dm_document')
26
+ end
27
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ class SearchClientTest < Test::Unit::TestCase
4
+ should "be able to do a simple search" do
5
+ assert_nothing_raised do
6
+ ActiveDocumentum::SearchClient.new
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,151 @@
1
+ require 'test_helper'
2
+
3
+ class DmGroupTest < Test::Unit::TestCase
4
+ should "count the number of groups" do
5
+ assert_nothing_raised do
6
+ @row_count = DmGroup.count
7
+ end
8
+ assert_not_nil(@row_count)
9
+ @row_count = nil
10
+ end
11
+
12
+ should "find the first group" do
13
+ assert_nothing_raised do
14
+ @group = DmGroup.find(:first)
15
+ end
16
+ assert_not_nil(@group)
17
+ assert_equal(false, @group.new_record?)
18
+ @group = nil
19
+ end
20
+
21
+ should "find a specific group" do
22
+ assert_nothing_raised do
23
+ @group = DmGroup.find(:first, :conditions => {:group_name => "docu"})
24
+ end
25
+ assert_not_nil(@group)
26
+ assert_equal("docu",@group.group_name)
27
+ @group = nil
28
+ end
29
+
30
+ should "find a group by id" do
31
+ id = DmGroup.find(:first, :conditions => {:group_name => "docu"}).r_object_id
32
+ assert_not_nil id, "Can't do test with out the 'docu' r_object_id"
33
+ assert_nothing_raised do
34
+ @group = DmGroup.find(id)
35
+ end
36
+ assert_not_nil(@group)
37
+ assert_equal(id, @group.r_object_id)
38
+ @group = nil
39
+ end
40
+
41
+ should "accept limit as a parameter" do
42
+ assert_nothing_raised do
43
+ @groups = DmGroup.find(:all, :limit => 2)
44
+ end
45
+ assert_not_nil(@groups)
46
+ assert_equal(@groups.size, 2)
47
+ @groups = nil
48
+ end
49
+
50
+ should "save a new group" do
51
+ @group = DmGroup.new do |group|
52
+ group.group_name = 'test_group'
53
+ group.description = 'Test Group'
54
+ end
55
+ @group.save
56
+ assert_equal(@group.new_record?, false)
57
+ @created_group = DmGroup.find(:first, :conditions => "group_name = 'test_group'")
58
+ assert_equal(@created_group.group_name, 'test_group')
59
+ assert_equal(@created_group.group_name, @group.group_name)
60
+ end
61
+
62
+ should "delete an existing group" do
63
+ @group = DmGroup.find(:first, :conditions => "group_name = 'test_group'")
64
+ unless @group.nil?
65
+ result = @group.delete
66
+ assert_equal(result["objects_deleted"].to_i,1)
67
+ else
68
+ assert_nil(@group)
69
+ end
70
+ end
71
+
72
+ should "accept a block when initializing a group" do
73
+ @group = DmGroup.new do |group|
74
+ group.group_name = 'test_group'
75
+ group.description = 'Test Group'
76
+ end
77
+ assert_equal(@group.group_name, 'test_group')
78
+ end
79
+
80
+ should "accept a block when creating a group" do
81
+ begin
82
+ @group = DmGroup.create do |group|
83
+ group.group_name = 'test_group2'
84
+ group.description = 'Test Group2'
85
+ end
86
+ @created_group = DmGroup.find(:first, :conditions => "group_name = 'test_group2'")
87
+ assert_equal(@created_group.group_name, 'test_group2')
88
+ assert_equal(@created_group.group_name, @group.group_name)
89
+ rescue => e
90
+ flunk e
91
+ ensure
92
+ @created_group ||= DmGroup.find(:first, :conditions => "group_name = 'test_group2'")
93
+ assert_not_nil(@created_group)
94
+ @created_group.delete
95
+ end
96
+ end
97
+
98
+ should "find an array of groups" do
99
+ ids = DmGroup.all(:limit => 2).map {|u| u.r_object_id }
100
+ assert_not_nil(ids, "ids are required to run this test and cannot be nil")
101
+ assert_equal(ids.size, 2)
102
+ @groups = DmGroup.find(ids)
103
+ assert_not_nil(@groups)
104
+ assert_equal(@groups.size, 2)
105
+ end
106
+
107
+ should "return nil for a non existent group" do
108
+ @group = DmGroup.first(:conditions => {:group_name => 'missing_group_test'})
109
+ assert_nil(@group)
110
+ end
111
+
112
+ should "be able to add a member (user) to a group" do
113
+ @user = DmUser.first(:conditions => {:user_name => 'test_user'})
114
+ @group = DmGroup.first(:conditions => {:group_name => 'test_group'})
115
+ if @user.nil?
116
+ @user = DmUser.create do |user|
117
+ user.user_name = "test_user"
118
+ user.user_login_name = "Test User"
119
+ end
120
+ end
121
+ if @group.nil?
122
+ @group = DmGroup.create do |group|
123
+ group.group_name = 'test_group'
124
+ group.description = 'Test Group'
125
+ end
126
+ end
127
+ users_names = DmGroup.first(:columns => 'r_object_id, users_names', :conditions => "r_object_id = '#{@group.r_object_id}'").users_names
128
+ assert_equal(users_names.include?(@user.user_name),false)
129
+ @group.add_member(@user.user_name)
130
+ users_names = DmGroup.first(:columns => 'r_object_id, users_names', :conditions => "r_object_id = '#{@group.r_object_id}'").users_names
131
+ assert_equal(users_names.include?(@user.user_name),true)
132
+ end
133
+
134
+ should "be able to remove a member (user) from a group" do
135
+ @user = DmUser.first(:conditions => {:user_name => 'test_user'})
136
+ @group = DmGroup.first(:conditions => {:group_name => 'test_group'})
137
+ unless @group.nil? or @user.nil?
138
+ users_names = DmGroup.first(:columns => 'r_object_id, users_names', :conditions => "r_object_id = '#{@group.r_object_id}'").users_names
139
+ if users_names.include?(@user.user_name)
140
+ @group.remove_member(@user.user_name)
141
+ users_names = DmGroup.first(:columns => 'r_object_id, users_names', :conditions => "r_object_id = '#{@group.r_object_id}'").users_names
142
+ assert_equal(users_names.include?(@user.user_name),false)
143
+ end
144
+ @group.delete
145
+ @user.delete
146
+ else
147
+ assert_nil(@group)
148
+ assert_nil(@user)
149
+ end
150
+ end
151
+ end