active_documentum 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +20 -0
- data/README.rdoc +7 -0
- data/lib/active_documentum.rb +1 -0
- data/lib/active_documentum/access_control_client.rb +1 -0
- data/lib/active_documentum/base.rb +1 -0
- data/lib/active_documentum/docbase_config.rb +1 -0
- data/lib/active_documentum/logging.rb +16 -0
- data/lib/active_documentum/object_client.rb +1 -0
- data/lib/active_documentum/query_client.rb +1 -0
- data/lib/active_documentum/schema.rb +38 -0
- data/lib/active_documentum/schema_client.rb +1 -0
- data/lib/active_documentum/search_client.rb +1 -0
- data/lib/active_documentum/session.rb +1 -0
- data/lib/active_documentum/types/dm_acl.rb +24 -0
- data/lib/active_documentum/types/dm_acs_config.rb +108 -0
- data/lib/active_documentum/types/dm_activity.rb +150 -0
- data/lib/active_documentum/types/dm_aggr_domain.rb +23 -0
- data/lib/active_documentum/types/dm_alias_set.rb +13 -0
- data/lib/active_documentum/types/dm_app_ref.rb +90 -0
- data/lib/active_documentum/types/dm_application.rb +103 -0
- data/lib/active_documentum/types/dm_assembly.rb +15 -0
- data/lib/active_documentum/types/dm_attachments_folder.rb +91 -0
- data/lib/active_documentum/types/dm_audittrail.rb +47 -0
- data/lib/active_documentum/types/dm_audittrail_acl.rb +58 -0
- data/lib/active_documentum/types/dm_audittrail_group.rb +61 -0
- data/lib/active_documentum/types/dm_blobstore.rb +28 -0
- data/lib/active_documentum/types/dm_bocs_config.rb +100 -0
- data/lib/active_documentum/types/dm_builtin_expr.rb +10 -0
- data/lib/active_documentum/types/dm_business_pro.rb +93 -0
- data/lib/active_documentum/types/dm_ca_store.rb +33 -0
- data/lib/active_documentum/types/dm_cabinet.rb +92 -0
- data/lib/active_documentum/types/dm_cache_config.rb +96 -0
- data/lib/active_documentum/types/dm_category.rb +106 -0
- data/lib/active_documentum/types/dm_category_assign.rb +24 -0
- data/lib/active_documentum/types/dm_category_class.rb +99 -0
- data/lib/active_documentum/types/dm_ci_config.rb +108 -0
- data/lib/active_documentum/types/dm_client_registration.rb +93 -0
- data/lib/active_documentum/types/dm_client_rights.rb +96 -0
- data/lib/active_documentum/types/dm_component.rb +93 -0
- data/lib/active_documentum/types/dm_cond_expr.rb +21 -0
- data/lib/active_documentum/types/dm_cond_id_expr.rb +23 -0
- data/lib/active_documentum/types/dm_cont_transfer_config.rb +93 -0
- data/lib/active_documentum/types/dm_cryptographic_key.rb +93 -0
- data/lib/active_documentum/types/dm_dd_info.rb +44 -0
- data/lib/active_documentum/types/dm_decision.rb +95 -0
- data/lib/active_documentum/types/dm_display_config.rb +11 -0
- data/lib/active_documentum/types/dm_distributedstore.rb +29 -0
- data/lib/active_documentum/types/dm_dms_config.rb +94 -0
- data/lib/active_documentum/types/dm_docbase_config.rb +132 -0
- data/lib/active_documentum/types/dm_docbaseid_map.rb +9 -0
- data/lib/active_documentum/types/dm_docset.rb +94 -0
- data/lib/active_documentum/types/dm_docset_run.rb +100 -0
- data/lib/active_documentum/types/dm_document.rb +89 -0
- data/lib/active_documentum/types/dm_domain.rb +16 -0
- data/lib/active_documentum/types/dm_dump_record.rb +21 -0
- data/lib/active_documentum/types/dm_email_message.rb +96 -0
- data/lib/active_documentum/types/dm_esign_template.rb +94 -0
- data/lib/active_documentum/types/dm_expression.rb +9 -0
- data/lib/active_documentum/types/dm_extern_file.rb +38 -0
- data/lib/active_documentum/types/dm_extern_free.rb +34 -0
- data/lib/active_documentum/types/dm_extern_store.rb +34 -0
- data/lib/active_documentum/types/dm_extern_url.rb +34 -0
- data/lib/active_documentum/types/dm_federation.rb +96 -0
- data/lib/active_documentum/types/dm_filestore.rb +29 -0
- data/lib/active_documentum/types/dm_folder.rb +91 -0
- data/lib/active_documentum/types/dm_foreign_key.rb +20 -0
- data/lib/active_documentum/types/dm_format.rb +26 -0
- data/lib/active_documentum/types/dm_format_preferences.rb +89 -0
- data/lib/active_documentum/types/dm_ftengine_config.rb +91 -0
- data/lib/active_documentum/types/dm_ftindex_agent_config.rb +108 -0
- data/lib/active_documentum/types/dm_fulltext_index.rb +14 -0
- data/lib/active_documentum/types/dm_func_expr.rb +20 -0
- data/lib/active_documentum/types/dm_group.rb +57 -0
- data/lib/active_documentum/types/dm_java.rb +92 -0
- data/lib/active_documentum/types/dm_jms_config.rb +104 -0
- data/lib/active_documentum/types/dm_job.rb +114 -0
- data/lib/active_documentum/types/dm_job_request.rb +95 -0
- data/lib/active_documentum/types/dm_job_sequence.rb +95 -0
- data/lib/active_documentum/types/dm_key.rb +9 -0
- data/lib/active_documentum/types/dm_ldap_config.rb +123 -0
- data/lib/active_documentum/types/dm_linkedstore.rb +28 -0
- data/lib/active_documentum/types/dm_literal_expr.rb +9 -0
- data/lib/active_documentum/types/dm_load_record.rb +16 -0
- data/lib/active_documentum/types/dm_location.rb +94 -0
- data/lib/active_documentum/types/dm_locator.rb +90 -0
- data/lib/active_documentum/types/dm_media_profile.rb +93 -0
- data/lib/active_documentum/types/dm_menu_system.rb +89 -0
- data/lib/active_documentum/types/dm_message_address.rb +14 -0
- data/lib/active_documentum/types/dm_message_archive.rb +112 -0
- data/lib/active_documentum/types/dm_message_attachment.rb +10 -0
- data/lib/active_documentum/types/dm_message_container.rb +97 -0
- data/lib/active_documentum/types/dm_message_route_user_data.rb +9 -0
- data/lib/active_documentum/types/dm_message_user_data.rb +9 -0
- data/lib/active_documentum/types/dm_method.rb +104 -0
- data/lib/active_documentum/types/dm_migrate_rule.rb +152 -0
- data/lib/active_documentum/types/dm_mount_point.rb +95 -0
- data/lib/active_documentum/types/dm_network_location_map.rb +95 -0
- data/lib/active_documentum/types/dm_nls_dd_info.rb +21 -0
- data/lib/active_documentum/types/dm_note.rb +89 -0
- data/lib/active_documentum/types/dm_opticalstore.rb +30 -0
- data/lib/active_documentum/types/dm_outputdevice.rb +96 -0
- data/lib/active_documentum/types/dm_plugin.rb +93 -0
- data/lib/active_documentum/types/dm_policy.rb +122 -0
- data/lib/active_documentum/types/dm_procedure.rb +90 -0
- data/lib/active_documentum/types/dm_process.rb +124 -0
- data/lib/active_documentum/types/dm_public_key_certificate.rb +93 -0
- data/lib/active_documentum/types/dm_qual_comp.rb +96 -0
- data/lib/active_documentum/types/dm_query.rb +89 -0
- data/lib/active_documentum/types/dm_reference.rb +30 -0
- data/lib/active_documentum/types/dm_registered.rb +100 -0
- data/lib/active_documentum/types/dm_relation.rb +15 -0
- data/lib/active_documentum/types/dm_relation_ssa_policy.rb +17 -0
- data/lib/active_documentum/types/dm_relation_type.rb +18 -0
- data/lib/active_documentum/types/dm_retainer.rb +101 -0
- data/lib/active_documentum/types/dm_router.rb +130 -0
- data/lib/active_documentum/types/dm_scope_config.rb +9 -0
- data/lib/active_documentum/types/dm_script.rb +89 -0
- data/lib/active_documentum/types/dm_server_config.rb +159 -0
- data/lib/active_documentum/types/dm_shmeconfig.rb +7 -0
- data/lib/active_documentum/types/dm_smart_list.rb +93 -0
- data/lib/active_documentum/types/dm_ssa_policy.rb +90 -0
- data/lib/active_documentum/types/dm_staged.rb +91 -0
- data/lib/active_documentum/types/dm_state_extension.rb +16 -0
- data/lib/active_documentum/types/dm_state_type.rb +7 -0
- data/lib/active_documentum/types/dm_store.rb +26 -0
- data/lib/active_documentum/types/dm_sync_list_relation.rb +16 -0
- data/lib/active_documentum/types/dm_sysobject.rb +89 -0
- data/lib/active_documentum/types/dm_sysprocess_config.rb +104 -0
- data/lib/active_documentum/types/dm_taxonomy.rb +107 -0
- data/lib/active_documentum/types/dm_type.rb +24 -0
- data/lib/active_documentum/types/dm_user.rb +45 -0
- data/lib/active_documentum/types/dm_validation_descriptor.rb +91 -0
- data/lib/active_documentum/types/dm_value_assist.rb +11 -0
- data/lib/active_documentum/types/dm_value_func.rb +13 -0
- data/lib/active_documentum/types/dm_value_list.rb +12 -0
- data/lib/active_documentum/types/dm_value_query.rb +14 -0
- data/lib/active_documentum/types/dm_webc_config.rb +114 -0
- data/lib/active_documentum/types/dm_webc_target.rb +112 -0
- data/lib/active_documentum/types/dm_workflow.rb +39 -0
- data/lib/active_documentum/types/dm_xml_application.rb +96 -0
- data/lib/active_documentum/types/dm_xml_config.rb +90 -0
- data/lib/active_documentum/types/dm_xml_custom_code.rb +92 -0
- data/lib/active_documentum/types/dm_xml_style_sheet.rb +90 -0
- data/lib/active_documentum/types/dm_xml_zone.rb +91 -0
- data/lib/active_documentum/types/dmc_act_group_instance.rb +16 -0
- data/lib/active_documentum/types/dmc_aspect_relation.rb +8 -0
- data/lib/active_documentum/types/dmc_aspect_type.rb +111 -0
- data/lib/active_documentum/types/dmc_class.rb +92 -0
- data/lib/active_documentum/types/dmc_comment.rb +97 -0
- data/lib/active_documentum/types/dmc_completed_workflow.rb +21 -0
- data/lib/active_documentum/types/dmc_completed_workitem.rb +26 -0
- data/lib/active_documentum/types/dmc_composite_predicate.rb +7 -0
- data/lib/active_documentum/types/dmc_config_scope_relation.rb +17 -0
- data/lib/active_documentum/types/dmc_constraint_set.rb +92 -0
- data/lib/active_documentum/types/dmc_dar.rb +92 -0
- data/lib/active_documentum/types/dmc_jar.rb +91 -0
- data/lib/active_documentum/types/dmc_java_library.rb +92 -0
- data/lib/active_documentum/types/dmc_metamodel.rb +89 -0
- data/lib/active_documentum/types/dmc_module.rb +103 -0
- data/lib/active_documentum/types/dmc_module_config.rb +10 -0
- data/lib/active_documentum/types/dmc_notepage.rb +90 -0
- data/lib/active_documentum/types/dmc_preset_info.rb +19 -0
- data/lib/active_documentum/types/dmc_preset_package.rb +93 -0
- data/lib/active_documentum/types/dmc_process_correlation_set.rb +17 -0
- data/lib/active_documentum/types/dmc_process_parameter.rb +99 -0
- data/lib/active_documentum/types/dmc_readcomment.rb +8 -0
- data/lib/active_documentum/types/dmc_relationship_def.rb +104 -0
- data/lib/active_documentum/types/dmc_richtext.rb +92 -0
- data/lib/active_documentum/types/dmc_room.rb +100 -0
- data/lib/active_documentum/types/dmc_routecase_condition.rb +23 -0
- data/lib/active_documentum/types/dmc_tcf_activity.rb +91 -0
- data/lib/active_documentum/types/dmc_tcf_activity_template.rb +91 -0
- data/lib/active_documentum/types/dmc_topic.rb +94 -0
- data/lib/active_documentum/types/dmc_transition_condition.rb +20 -0
- data/lib/active_documentum/types/dmc_validation_module.rb +106 -0
- data/lib/active_documentum/types/dmc_validation_relation.rb +17 -0
- data/lib/active_documentum/types/dmc_wf_package_schema.rb +16 -0
- data/lib/active_documentum/types/dmc_wf_package_skill.rb +17 -0
- data/lib/active_documentum/types/dmc_wf_package_type_info.rb +93 -0
- data/lib/active_documentum/types/dmc_wfsd_element.rb +96 -0
- data/lib/active_documentum/types/dmc_wfsd_element_boolean.rb +97 -0
- data/lib/active_documentum/types/dmc_wfsd_element_date.rb +97 -0
- data/lib/active_documentum/types/dmc_wfsd_element_double.rb +97 -0
- data/lib/active_documentum/types/dmc_wfsd_element_integer.rb +97 -0
- data/lib/active_documentum/types/dmc_wfsd_element_parent.rb +92 -0
- data/lib/active_documentum/types/dmc_wfsd_element_string.rb +97 -0
- data/lib/active_documentum/types/dmc_wfsd_type_info.rb +106 -0
- data/lib/active_documentum/types/dmc_wfsdrp_boolean.rb +16 -0
- data/lib/active_documentum/types/dmc_wfsdrp_date.rb +16 -0
- data/lib/active_documentum/types/dmc_wfsdrp_double.rb +16 -0
- data/lib/active_documentum/types/dmc_wfsdrp_integer.rb +16 -0
- data/lib/active_documentum/types/dmc_wfsdrp_parent.rb +15 -0
- data/lib/active_documentum/types/dmc_wfsdrp_string.rb +16 -0
- data/lib/active_documentum/types/dmc_workqueue.rb +9 -0
- data/lib/active_documentum/types/dmc_workqueue_category.rb +91 -0
- data/lib/active_documentum/types/dmc_workqueue_doc_profile.rb +9 -0
- data/lib/active_documentum/types/dmc_workqueue_policy.rb +16 -0
- data/lib/active_documentum/types/dmc_workqueue_user_profile.rb +10 -0
- data/lib/active_documentum/types/dmc_wpr_parent.rb +16 -0
- data/lib/active_documentum/types/dmc_wq_skill_info.rb +14 -0
- data/lib/active_documentum/types/dmc_wq_task_skill.rb +10 -0
- data/lib/active_documentum/types/dmc_wq_user_skill.rb +10 -0
- data/lib/active_documentum/types/dmi_audittrail_attrs.rb +8 -0
- data/lib/active_documentum/types/dmi_change_record.rb +13 -0
- data/lib/active_documentum/types/dmi_dd_attr_info.rb +116 -0
- data/lib/active_documentum/types/dmi_dd_common_info.rb +57 -0
- data/lib/active_documentum/types/dmi_dd_type_info.rb +87 -0
- data/lib/active_documentum/types/dmi_dist_comp_record.rb +8 -0
- data/lib/active_documentum/types/dmi_dump_object_record.rb +9 -0
- data/lib/active_documentum/types/dmi_expr_code.rb +91 -0
- data/lib/active_documentum/types/dmi_index.rb +15 -0
- data/lib/active_documentum/types/dmi_linkrecord.rb +12 -0
- data/lib/active_documentum/types/dmi_load_object_record.rb +15 -0
- data/lib/active_documentum/types/dmi_otherfile.rb +9 -0
- data/lib/active_documentum/types/dmi_package.rb +22 -0
- data/lib/active_documentum/types/dmi_queue_item.rb +47 -0
- data/lib/active_documentum/types/dmi_recovery.rb +10 -0
- data/lib/active_documentum/types/dmi_registry.rb +21 -0
- data/lib/active_documentum/types/dmi_replica_record.rb +13 -0
- data/lib/active_documentum/types/dmi_sequence.rb +11 -0
- data/lib/active_documentum/types/dmi_session.rb +12 -0
- data/lib/active_documentum/types/dmi_subcontent.rb +9 -0
- data/lib/active_documentum/types/dmi_transactionlog.rb +8 -0
- data/lib/active_documentum/types/dmi_type_info.rb +22 -0
- data/lib/active_documentum/types/dmi_vstamp.rb +6 -0
- data/lib/active_documentum/types/dmi_wf_attachment.rb +11 -0
- data/lib/active_documentum/types/dmi_wf_timer.rb +17 -0
- data/lib/active_documentum/types/dmi_workitem.rb +35 -0
- data/lib/active_documentum/types/dmr_containment.rb +15 -0
- data/lib/active_documentum/types/dmr_content.rb +58 -0
- data/lib/support.rb +13 -0
- data/test/active_documentum/access_control_client_test.rb +15 -0
- data/test/active_documentum/docbase_config_test.rb +41 -0
- data/test/active_documentum/object_client_test.rb +11 -0
- data/test/active_documentum/query_client_test.rb +9 -0
- data/test/active_documentum/schema_client_test.rb +27 -0
- data/test/active_documentum/search_client_test.rb +9 -0
- data/test/active_documentum/types/dm_group_test.rb +151 -0
- data/test/active_documentum/types/dm_user_test.rb +106 -0
- data/test/active_documentum_test.rb +9 -0
- data/test/test_helper.rb +8 -0
- metadata +302 -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
|
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,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,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
|
@@ -0,0 +1,106 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class DmUserTest < Test::Unit::TestCase
|
4
|
+
should "count the number of users" do
|
5
|
+
assert_nothing_raised do
|
6
|
+
@row_count = DmUser.count
|
7
|
+
end
|
8
|
+
assert_not_nil(@row_count)
|
9
|
+
@row_count = nil
|
10
|
+
end
|
11
|
+
|
12
|
+
should "find the first user" do
|
13
|
+
assert_nothing_raised do
|
14
|
+
@user = DmUser.find(:first)
|
15
|
+
end
|
16
|
+
assert_not_nil(@user)
|
17
|
+
assert_equal(false, @user.new_record?)
|
18
|
+
@user = nil
|
19
|
+
end
|
20
|
+
|
21
|
+
should "find a specific user" do
|
22
|
+
assert_nothing_raised do
|
23
|
+
@user = DmUser.find(:first, :conditions => {:user_name => ActiveDocumentum::DocbaseConfig.username})
|
24
|
+
end
|
25
|
+
assert_not_nil(@user)
|
26
|
+
assert_equal(ActiveDocumentum::DocbaseConfig.username,@user.user_name)
|
27
|
+
@user = nil
|
28
|
+
end
|
29
|
+
|
30
|
+
should "find a user by id" do
|
31
|
+
id = DmUser.find(:first, :conditions => {:user_name => ActiveDocumentum::DocbaseConfig.username}).r_object_id
|
32
|
+
assert_not_nil id, "Can't do test with out the '#{ActiveDocumentum::DocbaseConfig.username}' object id"
|
33
|
+
assert_nothing_raised do
|
34
|
+
@user = DmUser.find(id)
|
35
|
+
end
|
36
|
+
assert_not_nil(@user)
|
37
|
+
assert_equal(id, @user.r_object_id)
|
38
|
+
@user = nil
|
39
|
+
end
|
40
|
+
|
41
|
+
should "accept limit as a parameter" do
|
42
|
+
assert_nothing_raised do
|
43
|
+
@users = DmUser.find(:all, :limit => 2)
|
44
|
+
end
|
45
|
+
assert_not_nil(@users)
|
46
|
+
assert_equal(@users.size, 2)
|
47
|
+
@users = nil
|
48
|
+
end
|
49
|
+
|
50
|
+
should "save a new user" do
|
51
|
+
@user = DmUser.new do |user|
|
52
|
+
user.user_name = 'Test User'
|
53
|
+
user.user_login_name = 'test_user'
|
54
|
+
end
|
55
|
+
@user.save
|
56
|
+
assert_equal(@user.new_record?, false)
|
57
|
+
@created_user = DmUser.find(:first, :conditions => "user_login_name = 'test_user'")
|
58
|
+
assert_equal(@created_user.user_name, 'Test User')
|
59
|
+
assert_equal(@created_user.user_name, @user.user_name)
|
60
|
+
end
|
61
|
+
|
62
|
+
should "delete an existing user" do
|
63
|
+
@user = DmUser.find(:first, :conditions => "user_login_name = 'test_user'")
|
64
|
+
unless @user.nil?
|
65
|
+
result = @user.delete
|
66
|
+
assert_equal(result["objects_deleted"].to_i,1)
|
67
|
+
else
|
68
|
+
assert_nil(@user)
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
should "accept a block when initializing a user" do
|
73
|
+
@user = DmUser.new do |user|
|
74
|
+
user.user_name = 'Test User'
|
75
|
+
user.user_login_name = 'test_user'
|
76
|
+
end
|
77
|
+
assert_equal(@user.user_name, 'Test User')
|
78
|
+
end
|
79
|
+
|
80
|
+
should "accept a block when creating a user" do
|
81
|
+
begin
|
82
|
+
@user = DmUser.create do |user|
|
83
|
+
user.user_name = 'Test User2'
|
84
|
+
user.user_login_name = 'test_user2'
|
85
|
+
end
|
86
|
+
@created_user = DmUser.find(:first, :conditions => "user_login_name = 'test_user2'")
|
87
|
+
assert_equal(@created_user.user_name, 'Test User2')
|
88
|
+
assert_equal(@created_user.user_name, @user.user_name)
|
89
|
+
rescue => e
|
90
|
+
flunk e
|
91
|
+
ensure
|
92
|
+
@created_user ||= DmUser.find(:first, :conditions => "user_login_name = 'test_user2'")
|
93
|
+
assert_not_nil(@created_user)
|
94
|
+
@created_user.delete
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
should "find an array of users" do
|
99
|
+
ids = DmUser.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
|
+
@users = DmUser.find(ids)
|
103
|
+
assert_not_nil(@users)
|
104
|
+
assert_equal(@users.size, 2)
|
105
|
+
end
|
106
|
+
end
|