cmis-ruby 0.5.33 → 0.5.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cmis/query.rb +17 -0
- data/lib/cmis/repository.rb +7 -0
- data/lib/cmis/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c6753c97ec57f2364e03300951c6ca5581ef10e
|
4
|
+
data.tar.gz: f11cc59bc93e6ae43016f6fc70b93194fcc1a62d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0323adcdc7a73c64ecaf4551d785927ff44095df33956a4b97b98810438bcf41e9a2c94641e548fdecf4b973d6207ab86becb2354e1da2bab2e18213babbfb9f
|
7
|
+
data.tar.gz: a0faa2114412cecbad47a8a364eeb87e623b09e3060a3413c1117789760fbcaa7622a7e106a54b51c2c2239eeeb1e12b666602e231ff299f49199a8c9c34cf5b
|
data/lib/cmis/query.rb
CHANGED
@@ -69,6 +69,23 @@ module CMIS
|
|
69
69
|
@total = @total == -1 ? result.num_items : @total # CMIS AWS trickery
|
70
70
|
end
|
71
71
|
|
72
|
+
def do_token_query(max, token=nil)
|
73
|
+
params = { repositoryId: @repository.id, maxItems: max }
|
74
|
+
params[:nextToken] = token if token
|
75
|
+
|
76
|
+
if @method == 'post'
|
77
|
+
params.merge!(cmisselector: 'query', q: @statement)
|
78
|
+
else
|
79
|
+
params.merge!(cmisaction: 'query', statement: @statement)
|
80
|
+
end
|
81
|
+
|
82
|
+
result = @repository.server.execute!(params, @opts)
|
83
|
+
{
|
84
|
+
nextToken: result['nextToken'] ,
|
85
|
+
objects: result['results'].map { |r| ObjectFactory.create(r, @repository) }
|
86
|
+
}
|
87
|
+
end
|
88
|
+
|
72
89
|
def debug_info
|
73
90
|
@debug_info
|
74
91
|
end
|
data/lib/cmis/repository.rb
CHANGED
@@ -143,6 +143,13 @@ module CMIS
|
|
143
143
|
end
|
144
144
|
end
|
145
145
|
|
146
|
+
def bulk_update_objects(object_ids_and_change_tokens, properties)
|
147
|
+
server.execute!(cmisaction: 'bulkUpdate',
|
148
|
+
repositoryId: id,
|
149
|
+
objectIdAndChangeToken: object_ids_and_change_tokens,
|
150
|
+
properties: properties)
|
151
|
+
end
|
152
|
+
|
146
153
|
def inspect
|
147
154
|
"#{self.class}[#{id}] @ #{server.inspect}"
|
148
155
|
end
|
data/lib/cmis/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmis-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.34
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenneth Geerts
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-06-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
115
|
rubyforge_project:
|
116
|
-
rubygems_version: 2.
|
116
|
+
rubygems_version: 2.6.12
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: Ruby client for CMIS
|