active_documentum 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ *.sw?
2
+ .DS_Store
3
+ coverage
4
+ rdoc
5
+ pkg
6
+ log
7
+ tmp
data/.irbrc ADDED
@@ -0,0 +1 @@
1
+ require 'config/environment'
@@ -0,0 +1,56 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+
4
+ begin
5
+ require 'jeweler'
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = "active_documentum"
8
+ gem.summary = %Q{Active Documentum}
9
+ gem.email = "vertis@coreguardian.org"
10
+ gem.homepage = "http://github.com/vertis/active_documentum"
11
+ gem.authors = ["'Luke"]
12
+ gem.files.include FileList['lib/**/*.rb']
13
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
14
+ end
15
+ rescue LoadError
16
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
17
+ end
18
+
19
+ require 'rake/testtask'
20
+ Rake::TestTask.new(:test) do |test|
21
+ test.libs << 'lib' << 'test'
22
+ test.pattern = 'test/**/*_test.rb'
23
+ test.verbose = true
24
+ end
25
+
26
+ begin
27
+ require 'rcov/rcovtask'
28
+ Rcov::RcovTask.new do |test|
29
+ test.libs << 'test'
30
+ test.pattern = 'test/**/*_test.rb'
31
+ test.verbose = true
32
+ end
33
+ rescue LoadError
34
+ task :rcov do
35
+ abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
36
+ end
37
+ end
38
+
39
+
40
+ task :default => :test
41
+
42
+ require 'rake/rdoctask'
43
+ Rake::RDocTask.new do |rdoc|
44
+ if File.exist?('VERSION.yml')
45
+ config = YAML.load(File.read('VERSION.yml'))
46
+ version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
47
+ else
48
+ version = ""
49
+ end
50
+
51
+ rdoc.rdoc_dir = 'rdoc'
52
+ rdoc.title = "active_documentum #{version}"
53
+ rdoc.rdoc_files.include('README*')
54
+ rdoc.rdoc_files.include('lib/**/*.rb')
55
+ end
56
+
@@ -0,0 +1,5 @@
1
+ ---
2
+ :major: 0
3
+ :minor: 3
4
+ :patch: 1
5
+ :build:
@@ -0,0 +1,298 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{active_documentum}
8
+ s.version = "0.3.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["'Luke"]
12
+ s.date = %q{2010-02-22}
13
+ s.email = %q{vertis@coreguardian.org}
14
+ s.extra_rdoc_files = [
15
+ "LICENSE",
16
+ "README.rdoc"
17
+ ]
18
+ s.files = [
19
+ ".gitignore",
20
+ ".irbrc",
21
+ "LICENSE",
22
+ "README.rdoc",
23
+ "Rakefile",
24
+ "VERSION.yml",
25
+ "active_documentum.gemspec",
26
+ "config/environment.rb",
27
+ "config/environment.yml.sample",
28
+ "lib/active_documentum.rb",
29
+ "lib/active_documentum/access_control_client.rb",
30
+ "lib/active_documentum/base.rb",
31
+ "lib/active_documentum/docbase_config.rb",
32
+ "lib/active_documentum/logging.rb",
33
+ "lib/active_documentum/object_client.rb",
34
+ "lib/active_documentum/query_client.rb",
35
+ "lib/active_documentum/schema.rb",
36
+ "lib/active_documentum/schema_client.rb",
37
+ "lib/active_documentum/search_client.rb",
38
+ "lib/active_documentum/session.rb",
39
+ "lib/active_documentum/types/dm_acl.rb",
40
+ "lib/active_documentum/types/dm_acs_config.rb",
41
+ "lib/active_documentum/types/dm_activity.rb",
42
+ "lib/active_documentum/types/dm_aggr_domain.rb",
43
+ "lib/active_documentum/types/dm_alias_set.rb",
44
+ "lib/active_documentum/types/dm_app_ref.rb",
45
+ "lib/active_documentum/types/dm_application.rb",
46
+ "lib/active_documentum/types/dm_assembly.rb",
47
+ "lib/active_documentum/types/dm_attachments_folder.rb",
48
+ "lib/active_documentum/types/dm_audittrail.rb",
49
+ "lib/active_documentum/types/dm_audittrail_acl.rb",
50
+ "lib/active_documentum/types/dm_audittrail_group.rb",
51
+ "lib/active_documentum/types/dm_blobstore.rb",
52
+ "lib/active_documentum/types/dm_bocs_config.rb",
53
+ "lib/active_documentum/types/dm_builtin_expr.rb",
54
+ "lib/active_documentum/types/dm_business_pro.rb",
55
+ "lib/active_documentum/types/dm_ca_store.rb",
56
+ "lib/active_documentum/types/dm_cabinet.rb",
57
+ "lib/active_documentum/types/dm_cache_config.rb",
58
+ "lib/active_documentum/types/dm_category.rb",
59
+ "lib/active_documentum/types/dm_category_assign.rb",
60
+ "lib/active_documentum/types/dm_category_class.rb",
61
+ "lib/active_documentum/types/dm_ci_config.rb",
62
+ "lib/active_documentum/types/dm_client_registration.rb",
63
+ "lib/active_documentum/types/dm_client_rights.rb",
64
+ "lib/active_documentum/types/dm_component.rb",
65
+ "lib/active_documentum/types/dm_cond_expr.rb",
66
+ "lib/active_documentum/types/dm_cond_id_expr.rb",
67
+ "lib/active_documentum/types/dm_cont_transfer_config.rb",
68
+ "lib/active_documentum/types/dm_cryptographic_key.rb",
69
+ "lib/active_documentum/types/dm_dd_info.rb",
70
+ "lib/active_documentum/types/dm_decision.rb",
71
+ "lib/active_documentum/types/dm_display_config.rb",
72
+ "lib/active_documentum/types/dm_distributedstore.rb",
73
+ "lib/active_documentum/types/dm_dms_config.rb",
74
+ "lib/active_documentum/types/dm_docbase_config.rb",
75
+ "lib/active_documentum/types/dm_docbaseid_map.rb",
76
+ "lib/active_documentum/types/dm_docset.rb",
77
+ "lib/active_documentum/types/dm_docset_run.rb",
78
+ "lib/active_documentum/types/dm_document.rb",
79
+ "lib/active_documentum/types/dm_domain.rb",
80
+ "lib/active_documentum/types/dm_dump_record.rb",
81
+ "lib/active_documentum/types/dm_email_message.rb",
82
+ "lib/active_documentum/types/dm_esign_template.rb",
83
+ "lib/active_documentum/types/dm_expression.rb",
84
+ "lib/active_documentum/types/dm_extern_file.rb",
85
+ "lib/active_documentum/types/dm_extern_free.rb",
86
+ "lib/active_documentum/types/dm_extern_store.rb",
87
+ "lib/active_documentum/types/dm_extern_url.rb",
88
+ "lib/active_documentum/types/dm_federation.rb",
89
+ "lib/active_documentum/types/dm_filestore.rb",
90
+ "lib/active_documentum/types/dm_folder.rb",
91
+ "lib/active_documentum/types/dm_foreign_key.rb",
92
+ "lib/active_documentum/types/dm_format.rb",
93
+ "lib/active_documentum/types/dm_format_preferences.rb",
94
+ "lib/active_documentum/types/dm_ftengine_config.rb",
95
+ "lib/active_documentum/types/dm_ftindex_agent_config.rb",
96
+ "lib/active_documentum/types/dm_fulltext_index.rb",
97
+ "lib/active_documentum/types/dm_func_expr.rb",
98
+ "lib/active_documentum/types/dm_group.rb",
99
+ "lib/active_documentum/types/dm_java.rb",
100
+ "lib/active_documentum/types/dm_jms_config.rb",
101
+ "lib/active_documentum/types/dm_job.rb",
102
+ "lib/active_documentum/types/dm_job_request.rb",
103
+ "lib/active_documentum/types/dm_job_sequence.rb",
104
+ "lib/active_documentum/types/dm_key.rb",
105
+ "lib/active_documentum/types/dm_ldap_config.rb",
106
+ "lib/active_documentum/types/dm_linkedstore.rb",
107
+ "lib/active_documentum/types/dm_literal_expr.rb",
108
+ "lib/active_documentum/types/dm_load_record.rb",
109
+ "lib/active_documentum/types/dm_location.rb",
110
+ "lib/active_documentum/types/dm_locator.rb",
111
+ "lib/active_documentum/types/dm_media_profile.rb",
112
+ "lib/active_documentum/types/dm_menu_system.rb",
113
+ "lib/active_documentum/types/dm_message_address.rb",
114
+ "lib/active_documentum/types/dm_message_archive.rb",
115
+ "lib/active_documentum/types/dm_message_attachment.rb",
116
+ "lib/active_documentum/types/dm_message_container.rb",
117
+ "lib/active_documentum/types/dm_message_route_user_data.rb",
118
+ "lib/active_documentum/types/dm_message_user_data.rb",
119
+ "lib/active_documentum/types/dm_method.rb",
120
+ "lib/active_documentum/types/dm_migrate_rule.rb",
121
+ "lib/active_documentum/types/dm_mount_point.rb",
122
+ "lib/active_documentum/types/dm_network_location_map.rb",
123
+ "lib/active_documentum/types/dm_nls_dd_info.rb",
124
+ "lib/active_documentum/types/dm_note.rb",
125
+ "lib/active_documentum/types/dm_opticalstore.rb",
126
+ "lib/active_documentum/types/dm_outputdevice.rb",
127
+ "lib/active_documentum/types/dm_plugin.rb",
128
+ "lib/active_documentum/types/dm_policy.rb",
129
+ "lib/active_documentum/types/dm_procedure.rb",
130
+ "lib/active_documentum/types/dm_process.rb",
131
+ "lib/active_documentum/types/dm_public_key_certificate.rb",
132
+ "lib/active_documentum/types/dm_qual_comp.rb",
133
+ "lib/active_documentum/types/dm_query.rb",
134
+ "lib/active_documentum/types/dm_reference.rb",
135
+ "lib/active_documentum/types/dm_registered.rb",
136
+ "lib/active_documentum/types/dm_relation.rb",
137
+ "lib/active_documentum/types/dm_relation_ssa_policy.rb",
138
+ "lib/active_documentum/types/dm_relation_type.rb",
139
+ "lib/active_documentum/types/dm_retainer.rb",
140
+ "lib/active_documentum/types/dm_router.rb",
141
+ "lib/active_documentum/types/dm_scope_config.rb",
142
+ "lib/active_documentum/types/dm_script.rb",
143
+ "lib/active_documentum/types/dm_server_config.rb",
144
+ "lib/active_documentum/types/dm_shmeconfig.rb",
145
+ "lib/active_documentum/types/dm_smart_list.rb",
146
+ "lib/active_documentum/types/dm_ssa_policy.rb",
147
+ "lib/active_documentum/types/dm_staged.rb",
148
+ "lib/active_documentum/types/dm_state_extension.rb",
149
+ "lib/active_documentum/types/dm_state_type.rb",
150
+ "lib/active_documentum/types/dm_store.rb",
151
+ "lib/active_documentum/types/dm_sync_list_relation.rb",
152
+ "lib/active_documentum/types/dm_sysobject.rb",
153
+ "lib/active_documentum/types/dm_sysprocess_config.rb",
154
+ "lib/active_documentum/types/dm_taxonomy.rb",
155
+ "lib/active_documentum/types/dm_type.rb",
156
+ "lib/active_documentum/types/dm_user.rb",
157
+ "lib/active_documentum/types/dm_validation_descriptor.rb",
158
+ "lib/active_documentum/types/dm_value_assist.rb",
159
+ "lib/active_documentum/types/dm_value_func.rb",
160
+ "lib/active_documentum/types/dm_value_list.rb",
161
+ "lib/active_documentum/types/dm_value_query.rb",
162
+ "lib/active_documentum/types/dm_webc_config.rb",
163
+ "lib/active_documentum/types/dm_webc_target.rb",
164
+ "lib/active_documentum/types/dm_workflow.rb",
165
+ "lib/active_documentum/types/dm_xml_application.rb",
166
+ "lib/active_documentum/types/dm_xml_config.rb",
167
+ "lib/active_documentum/types/dm_xml_custom_code.rb",
168
+ "lib/active_documentum/types/dm_xml_style_sheet.rb",
169
+ "lib/active_documentum/types/dm_xml_zone.rb",
170
+ "lib/active_documentum/types/dmc_act_group_instance.rb",
171
+ "lib/active_documentum/types/dmc_aspect_relation.rb",
172
+ "lib/active_documentum/types/dmc_aspect_type.rb",
173
+ "lib/active_documentum/types/dmc_class.rb",
174
+ "lib/active_documentum/types/dmc_comment.rb",
175
+ "lib/active_documentum/types/dmc_completed_workflow.rb",
176
+ "lib/active_documentum/types/dmc_completed_workitem.rb",
177
+ "lib/active_documentum/types/dmc_composite_predicate.rb",
178
+ "lib/active_documentum/types/dmc_config_scope_relation.rb",
179
+ "lib/active_documentum/types/dmc_constraint_set.rb",
180
+ "lib/active_documentum/types/dmc_dar.rb",
181
+ "lib/active_documentum/types/dmc_jar.rb",
182
+ "lib/active_documentum/types/dmc_java_library.rb",
183
+ "lib/active_documentum/types/dmc_metamodel.rb",
184
+ "lib/active_documentum/types/dmc_module.rb",
185
+ "lib/active_documentum/types/dmc_module_config.rb",
186
+ "lib/active_documentum/types/dmc_notepage.rb",
187
+ "lib/active_documentum/types/dmc_preset_info.rb",
188
+ "lib/active_documentum/types/dmc_preset_package.rb",
189
+ "lib/active_documentum/types/dmc_process_correlation_set.rb",
190
+ "lib/active_documentum/types/dmc_process_parameter.rb",
191
+ "lib/active_documentum/types/dmc_readcomment.rb",
192
+ "lib/active_documentum/types/dmc_relationship_def.rb",
193
+ "lib/active_documentum/types/dmc_richtext.rb",
194
+ "lib/active_documentum/types/dmc_room.rb",
195
+ "lib/active_documentum/types/dmc_routecase_condition.rb",
196
+ "lib/active_documentum/types/dmc_tcf_activity.rb",
197
+ "lib/active_documentum/types/dmc_tcf_activity_template.rb",
198
+ "lib/active_documentum/types/dmc_topic.rb",
199
+ "lib/active_documentum/types/dmc_transition_condition.rb",
200
+ "lib/active_documentum/types/dmc_validation_module.rb",
201
+ "lib/active_documentum/types/dmc_validation_relation.rb",
202
+ "lib/active_documentum/types/dmc_wf_package_schema.rb",
203
+ "lib/active_documentum/types/dmc_wf_package_skill.rb",
204
+ "lib/active_documentum/types/dmc_wf_package_type_info.rb",
205
+ "lib/active_documentum/types/dmc_wfsd_element.rb",
206
+ "lib/active_documentum/types/dmc_wfsd_element_boolean.rb",
207
+ "lib/active_documentum/types/dmc_wfsd_element_date.rb",
208
+ "lib/active_documentum/types/dmc_wfsd_element_double.rb",
209
+ "lib/active_documentum/types/dmc_wfsd_element_integer.rb",
210
+ "lib/active_documentum/types/dmc_wfsd_element_parent.rb",
211
+ "lib/active_documentum/types/dmc_wfsd_element_string.rb",
212
+ "lib/active_documentum/types/dmc_wfsd_type_info.rb",
213
+ "lib/active_documentum/types/dmc_wfsdrp_boolean.rb",
214
+ "lib/active_documentum/types/dmc_wfsdrp_date.rb",
215
+ "lib/active_documentum/types/dmc_wfsdrp_double.rb",
216
+ "lib/active_documentum/types/dmc_wfsdrp_integer.rb",
217
+ "lib/active_documentum/types/dmc_wfsdrp_parent.rb",
218
+ "lib/active_documentum/types/dmc_wfsdrp_string.rb",
219
+ "lib/active_documentum/types/dmc_workqueue.rb",
220
+ "lib/active_documentum/types/dmc_workqueue_category.rb",
221
+ "lib/active_documentum/types/dmc_workqueue_doc_profile.rb",
222
+ "lib/active_documentum/types/dmc_workqueue_policy.rb",
223
+ "lib/active_documentum/types/dmc_workqueue_user_profile.rb",
224
+ "lib/active_documentum/types/dmc_wpr_parent.rb",
225
+ "lib/active_documentum/types/dmc_wq_skill_info.rb",
226
+ "lib/active_documentum/types/dmc_wq_task_skill.rb",
227
+ "lib/active_documentum/types/dmc_wq_user_skill.rb",
228
+ "lib/active_documentum/types/dmi_audittrail_attrs.rb",
229
+ "lib/active_documentum/types/dmi_change_record.rb",
230
+ "lib/active_documentum/types/dmi_dd_attr_info.rb",
231
+ "lib/active_documentum/types/dmi_dd_common_info.rb",
232
+ "lib/active_documentum/types/dmi_dd_type_info.rb",
233
+ "lib/active_documentum/types/dmi_dist_comp_record.rb",
234
+ "lib/active_documentum/types/dmi_dump_object_record.rb",
235
+ "lib/active_documentum/types/dmi_expr_code.rb",
236
+ "lib/active_documentum/types/dmi_index.rb",
237
+ "lib/active_documentum/types/dmi_linkrecord.rb",
238
+ "lib/active_documentum/types/dmi_load_object_record.rb",
239
+ "lib/active_documentum/types/dmi_otherfile.rb",
240
+ "lib/active_documentum/types/dmi_package.rb",
241
+ "lib/active_documentum/types/dmi_queue_item.rb",
242
+ "lib/active_documentum/types/dmi_recovery.rb",
243
+ "lib/active_documentum/types/dmi_registry.rb",
244
+ "lib/active_documentum/types/dmi_replica_record.rb",
245
+ "lib/active_documentum/types/dmi_sequence.rb",
246
+ "lib/active_documentum/types/dmi_session.rb",
247
+ "lib/active_documentum/types/dmi_subcontent.rb",
248
+ "lib/active_documentum/types/dmi_transactionlog.rb",
249
+ "lib/active_documentum/types/dmi_type_info.rb",
250
+ "lib/active_documentum/types/dmi_vstamp.rb",
251
+ "lib/active_documentum/types/dmi_wf_attachment.rb",
252
+ "lib/active_documentum/types/dmi_wf_timer.rb",
253
+ "lib/active_documentum/types/dmi_workitem.rb",
254
+ "lib/active_documentum/types/dmr_containment.rb",
255
+ "lib/active_documentum/types/dmr_content.rb",
256
+ "lib/support.rb",
257
+ "samples/folder_browse.rb",
258
+ "samples/migrate_power_users.rb",
259
+ "test/active_documentum/access_control_client_test.rb",
260
+ "test/active_documentum/docbase_config_test.rb",
261
+ "test/active_documentum/object_client_test.rb",
262
+ "test/active_documentum/query_client_test.rb",
263
+ "test/active_documentum/schema_client_test.rb",
264
+ "test/active_documentum/search_client_test.rb",
265
+ "test/active_documentum/types/dm_group_test.rb",
266
+ "test/active_documentum/types/dm_user_test.rb",
267
+ "test/active_documentum_test.rb",
268
+ "test/test_helper.rb"
269
+ ]
270
+ s.homepage = %q{http://github.com/vertis/active_documentum}
271
+ s.rdoc_options = ["--charset=UTF-8"]
272
+ s.require_paths = ["lib"]
273
+ s.rubygems_version = %q{1.3.6}
274
+ s.summary = %q{Active Documentum}
275
+ s.test_files = [
276
+ "test/active_documentum/access_control_client_test.rb",
277
+ "test/active_documentum/docbase_config_test.rb",
278
+ "test/active_documentum/object_client_test.rb",
279
+ "test/active_documentum/query_client_test.rb",
280
+ "test/active_documentum/schema_client_test.rb",
281
+ "test/active_documentum/search_client_test.rb",
282
+ "test/active_documentum/types/dm_group_test.rb",
283
+ "test/active_documentum/types/dm_user_test.rb",
284
+ "test/active_documentum_test.rb",
285
+ "test/test_helper.rb"
286
+ ]
287
+
288
+ if s.respond_to? :specification_version then
289
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
290
+ s.specification_version = 3
291
+
292
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
293
+ else
294
+ end
295
+ else
296
+ end
297
+ end
298
+
@@ -0,0 +1,51 @@
1
+ class Dir
2
+ def self.require_all(directory)
3
+ self.entries(directory).each do |file|
4
+ if file =~ /\.rb/ or file =~ /\.rake/
5
+ require directory + file
6
+ end
7
+ end
8
+ end
9
+ end
10
+ APP_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(APP_ROOT)
11
+
12
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
13
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
14
+
15
+ $environment="development"
16
+ require 'rubygems'
17
+
18
+ #gem 'yaml_pure'
19
+ #gem 'log4r'
20
+ #gem 'fastercsv'
21
+
22
+
23
+ require 'yaml'
24
+ require 'log4r'
25
+ require 'fastercsv'
26
+
27
+
28
+ include Log4r
29
+ $log = Logger.new($environment)
30
+ #$log.level = Log4r::INFO
31
+ format = PatternFormatter.new(:pattern => "[%l] %d :: %M")
32
+ stdout_outputter = Outputter.stdout
33
+ stdout_outputter.formatter = format
34
+ FileUtils.mkdir_p('log')
35
+ file = FileOutputter.new('fileOutputter', :filename => "log/#{File.basename($0)}_#{$environment}.log",:trunc => false)
36
+ file.formatter = format
37
+ $log.outputters = stdout_outputter, file
38
+
39
+ #$log.debug 'requiring active_documentum'
40
+ require 'lib/active_documentum'
41
+ #require 'active_documentum'
42
+
43
+ #require 'lib/support'
44
+ # load_paths = ['lib/', 'app/models/']
45
+ # load_paths.each do |path|
46
+ # $log.debug "requiring everything in #{path}"
47
+ # Dir.require_all(path)
48
+ # end
49
+
50
+
51
+
@@ -0,0 +1,5 @@
1
+ development:
2
+ url: http://192.168.1.104:9080
3
+ docbase: dsixfivesptwo
4
+ username: dmadmin
5
+ password: dmadmin
@@ -1,3 +1,8 @@
1
+ # Author:: Luke Chadwick (mailto:luke.a.chadwick@gmail.com)
2
+ # Copyright:: Copyright (c) 2010 Luke Chadwick
3
+ # License:: Distributes under the same terms as Ruby
4
+ #
5
+ # The class handles logging for ActiveDocumentum
1
6
  module ActiveDocumentum
2
7
  class Logging
3
8
  def initialize()
@@ -1,3 +1,9 @@
1
+ # Author:: Luke Chadwick (mailto:luke.a.chadwick@gmail.com)
2
+ # Copyright:: Copyright (c) 2010 Luke Chadwick
3
+ # License:: Distributes under the same terms as Ruby
4
+ #
5
+ # This class handles high level access to Documentum schemas. It supports caching
6
+ # of the schemas to the 'tmp/types' directory
1
7
  module ActiveDocumentum
2
8
  class Schema
3
9
  include Support
@@ -8,24 +14,31 @@ module ActiveDocumentum
8
14
  def initialize
9
15
  @@sc ||= ActiveDocumentum::SchemaClient.new
10
16
  @@schema ||= @@sc.schema_info
11
- @base_dir = "tmp/types/" #TODO find better way of doing this
17
+ @base_dir = "lib/active_documentum/types" #TODO find better way of doing this
12
18
  end
13
19
 
14
20
  def load_type(type_name)
15
21
  file_name = @base_dir + type_name + '.rb'
16
22
  unless File.exists?(file_name)
17
- type = @@sc.type_info(type_name)
23
+ type = @@sc.type_info(type_name)
24
+ class_name = camelize(type_name)
18
25
  parent_name = camelize(type[:parent_name]) unless type[:parent_name].empty?
19
26
  parent_name ||= "ActiveDocumentum::Base"
20
- class_def = "class #{camelize(type_name)} < #{parent_name}\n"
27
+ # FIXME Needs to be cleaner
28
+ class_def = "# Author:: Luke Chadwick (mailto:luke.a.chadwick@gmail.com)"
29
+ class_def += "# Copyright:: Copyright (c) 2010 Luke Chadwick"
30
+ class_def += "# License:: Distributes under the same terms as Ruby"
31
+ class_def += "#"
32
+ class_def += "# This class is an auto generated documentum object type"
33
+ class_def += "class #{class_name} < #{parent_name}\n"
21
34
  type[:properties].each do |property|
22
- class_def += "# #{property[:name]} => #{property.inspect}\n"
35
+ class_def += " # #{property[:name]} => #{property.inspect}\n"
23
36
  end
24
37
  class_def += "end"
25
38
  FileUtils.mkdir_p(@base_dir)
26
- File.open(file_name, 'w') {|f| f.puts class_def }
39
+ File.open(file_name, 'w') {|file| file.puts class_def }
27
40
  end
28
- autoload camelize(type_name).intern, file_name
41
+ autoload class_name.intern, file_name
29
42
  end
30
43
 
31
44
  def load
@@ -1,3 +1,8 @@
1
+ # Author:: Luke Chadwick (mailto:luke.a.chadwick@gmail.com)
2
+ # Copyright:: Copyright (c) 2010 Luke Chadwick
3
+ # License:: Distributes under the same terms as Ruby
4
+ #
5
+ # This class is an auto generated documentum object type
1
6
  class DmAcl < ActiveDocumentum::Base
2
7
  # object_name => {:name=>"object_name", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
3
8
  # description => {:name=>"description", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>128, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
@@ -1,3 +1,8 @@
1
+ # Author:: Luke Chadwick (mailto:luke.a.chadwick@gmail.com)
2
+ # Copyright:: Copyright (c) 2010 Luke Chadwick
3
+ # License:: Distributes under the same terms as Ruby
4
+ #
5
+ # This class is an auto generated documentum object type
1
6
  class DmAcsConfig < DmSysobject
2
7
  # object_name => {:name=>"object_name", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>255, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
3
8
  # 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}
@@ -1,3 +1,8 @@
1
+ # Author:: Luke Chadwick (mailto:luke.a.chadwick@gmail.com)
2
+ # Copyright:: Copyright (c) 2010 Luke Chadwick
3
+ # License:: Distributes under the same terms as Ruby
4
+ #
5
+ # This class is an auto generated documentum object type
1
6
  class DmActivity < DmSysobject
2
7
  # object_name => {:name=>"object_name", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>255, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
3
8
  # 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}
@@ -1,3 +1,8 @@
1
+ # Author:: Luke Chadwick (mailto:luke.a.chadwick@gmail.com)
2
+ # Copyright:: Copyright (c) 2010 Luke Chadwick
3
+ # License:: Distributes under the same terms as Ruby
4
+ #
5
+ # This class is an auto generated documentum object type
1
6
  class DmAggrDomain < DmDomain
2
7
  # domain_name => {:name=>"domain_name", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
3
8
  # parent_id => {:name=>"parent_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
@@ -1,3 +1,8 @@
1
+ # Author:: Luke Chadwick (mailto:luke.a.chadwick@gmail.com)
2
+ # Copyright:: Copyright (c) 2010 Luke Chadwick
3
+ # License:: Distributes under the same terms as Ruby
4
+ #
5
+ # This class is an auto generated documentum object type
1
6
  class DmAliasSet < ActiveDocumentum::Base
2
7
  # owner_name => {:name=>"owner_name", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
3
8
  # object_name => {:name=>"object_name", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>32, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
@@ -1,3 +1,8 @@
1
+ # Author:: Luke Chadwick (mailto:luke.a.chadwick@gmail.com)
2
+ # Copyright:: Copyright (c) 2010 Luke Chadwick
3
+ # License:: Distributes under the same terms as Ruby
4
+ #
5
+ # This class is an auto generated documentum object type
1
6
  class DmAppRef < DmSysobject
2
7
  # object_name => {:name=>"object_name", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>255, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
3
8
  # 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}
@@ -1,3 +1,8 @@
1
+ # Author:: Luke Chadwick (mailto:luke.a.chadwick@gmail.com)
2
+ # Copyright:: Copyright (c) 2010 Luke Chadwick
3
+ # License:: Distributes under the same terms as Ruby
4
+ #
5
+ # This class is an auto generated documentum object type
1
6
  class DmApplication < DmSysobject
2
7
  # object_name => {:name=>"object_name", :description=>"", :data_type=>"STRING", :dependencies=>[], :length=>255, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
3
8
  # 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}
@@ -1,3 +1,8 @@
1
+ # Author:: Luke Chadwick (mailto:luke.a.chadwick@gmail.com)
2
+ # Copyright:: Copyright (c) 2010 Luke Chadwick
3
+ # License:: Distributes under the same terms as Ruby
4
+ #
5
+ # This class is an auto generated documentum object type
1
6
  class DmAssembly < ActiveDocumentum::Base
2
7
  # book_id => {:name=>"book_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
3
8
  # parent_id => {:name=>"parent_id", :description=>"", :data_type=>"OBJECT_ID", :dependencies=>[], :length=>0, :default_values=>[], :is_array=>false, :is_dynamic=>false, :is_required=>false}
File without changes
@@ -0,0 +1 @@
1
+ DmGroup.find(:all, :columns => "r_object_id, i_all_users_names", :conditions => {:group_name => 'ey_tax_power_user'})
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - "'Luke"
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2009-09-11 00:00:00 +10:00
17
+ date: 2010-02-22 00:00:00 +11:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -28,6 +28,15 @@ extra_rdoc_files:
28
28
  - LICENSE
29
29
  - README.rdoc
30
30
  files:
31
+ - .gitignore
32
+ - .irbrc
33
+ - LICENSE
34
+ - README.rdoc
35
+ - Rakefile
36
+ - VERSION.yml
37
+ - active_documentum.gemspec
38
+ - config/environment.rb
39
+ - config/environment.yml.sample
31
40
  - lib/active_documentum.rb
32
41
  - lib/active_documentum/access_control_client.rb
33
42
  - lib/active_documentum/base.rb
@@ -257,8 +266,18 @@ files:
257
266
  - lib/active_documentum/types/dmr_containment.rb
258
267
  - lib/active_documentum/types/dmr_content.rb
259
268
  - lib/support.rb
260
- - LICENSE
261
- - README.rdoc
269
+ - samples/folder_browse.rb
270
+ - samples/migrate_power_users.rb
271
+ - test/active_documentum/access_control_client_test.rb
272
+ - test/active_documentum/docbase_config_test.rb
273
+ - test/active_documentum/object_client_test.rb
274
+ - test/active_documentum/query_client_test.rb
275
+ - test/active_documentum/schema_client_test.rb
276
+ - test/active_documentum/search_client_test.rb
277
+ - test/active_documentum/types/dm_group_test.rb
278
+ - test/active_documentum/types/dm_user_test.rb
279
+ - test/active_documentum_test.rb
280
+ - test/test_helper.rb
262
281
  has_rdoc: true
263
282
  homepage: http://github.com/vertis/active_documentum
264
283
  licenses: []
@@ -290,8 +309,6 @@ signing_key:
290
309
  specification_version: 3
291
310
  summary: Active Documentum
292
311
  test_files:
293
- - test/active_documentum_test.rb
294
- - test/test_helper.rb
295
312
  - test/active_documentum/access_control_client_test.rb
296
313
  - test/active_documentum/docbase_config_test.rb
297
314
  - test/active_documentum/object_client_test.rb
@@ -300,3 +317,5 @@ test_files:
300
317
  - test/active_documentum/search_client_test.rb
301
318
  - test/active_documentum/types/dm_group_test.rb
302
319
  - test/active_documentum/types/dm_user_test.rb
320
+ - test/active_documentum_test.rb
321
+ - test/test_helper.rb