yaccl 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -11,8 +11,8 @@ module YACCL
|
|
11
11
|
class BrowserBindingService
|
12
12
|
def initialize(service_url)
|
13
13
|
@service_url = service_url
|
14
|
-
@repository_urls = LRUCache.new(ttl:
|
15
|
-
@root_folder_urls = LRUCache.new(ttl:
|
14
|
+
@repository_urls = LRUCache.new(ttl: 3600)
|
15
|
+
@root_folder_urls = LRUCache.new(ttl: 3600)
|
16
16
|
end
|
17
17
|
|
18
18
|
def perform_request(required_params={}, optional_params={})
|
@@ -1,21 +1,63 @@
|
|
1
1
|
module YACCL
|
2
|
-
module VersioningServices
|
3
|
-
def check_out(repository_id, object_id,
|
2
|
+
module VersioningServices # TODO Check 'version_series_id' confusion.
|
3
|
+
def check_out(repository_id, object_id, extension={})
|
4
|
+
required = {cmisaction: 'checkOut',
|
5
|
+
repositoryId: repository_id,
|
6
|
+
objectId: object_id}
|
7
|
+
perform_request(required)
|
4
8
|
end
|
5
9
|
|
6
10
|
def cancel_check_out(repository_id, object_id, extension={})
|
11
|
+
required = {cmisaction: 'cancelCheckOut',
|
12
|
+
repositoryId: repository_id,
|
13
|
+
objectId: object_id}
|
14
|
+
perform_request(required)
|
7
15
|
end
|
8
16
|
|
9
|
-
def check_in(repository_id, object_id, major, properties,
|
17
|
+
def check_in(repository_id, object_id, major, properties, content, checkin_comment, policies, add_aces, remove_aces, extension={})
|
18
|
+
required = {cmisaction: 'checkIn',
|
19
|
+
repositoryId: repository_id,
|
20
|
+
objectId: object_id}
|
21
|
+
optional = {major: major,
|
22
|
+
properties: properties,
|
23
|
+
content: content,
|
24
|
+
checkinComment: checkin_comment,
|
25
|
+
policies: policies,
|
26
|
+
addACEs: add_aces,
|
27
|
+
removeACEs: remove_aces}
|
28
|
+
perform_request(required, optional)
|
10
29
|
end
|
11
30
|
|
12
|
-
def get_object_of_latest_version(repository_id,
|
31
|
+
def get_object_of_latest_version(repository_id, version_series_id, major, filter, include_allowable_actions, include_relationships, rendition_filter, include_policy_ids, include_acl, extension={})
|
32
|
+
required = {cmisselector: 'object',
|
33
|
+
repositoryId: repository_id,
|
34
|
+
objectId: version_series_id}
|
35
|
+
optional = {major: major,
|
36
|
+
filter: filter,
|
37
|
+
includeAllowableActions: include_allowable_actions,
|
38
|
+
includeRelationships: include_relationships,
|
39
|
+
renditionFilter: rendition_filter,
|
40
|
+
includePolicyIds: include_policy_ids,
|
41
|
+
includeACL: include_acl}
|
42
|
+
perform_request(required, optional)
|
13
43
|
end
|
14
44
|
|
15
|
-
def get_properties_of_latest_version(repository_id,
|
45
|
+
def get_properties_of_latest_version(repository_id, version_series_id, major, filter, extension={})
|
46
|
+
required = {cmisselector: 'properties',
|
47
|
+
repositoryId: repository_id,
|
48
|
+
objectId: version_series_id}
|
49
|
+
optional = {major: major,
|
50
|
+
filter: filter}
|
51
|
+
perform_request(required, optional)
|
16
52
|
end
|
17
53
|
|
18
|
-
def get_all_versions(repository_id,
|
54
|
+
def get_all_versions(repository_id, version_series_id, filter, include_allowable_actions, extension={})
|
55
|
+
required = {cmisselector: 'versions',
|
56
|
+
repositoryId: repository_id,
|
57
|
+
objectId: version_series_id}
|
58
|
+
optional = {filter: filter,
|
59
|
+
includeAllowableActions: include_allowable_actions}
|
60
|
+
perform_request(required, optional)
|
19
61
|
end
|
20
62
|
end
|
21
63
|
end
|
data/lib/yaccl.rb
CHANGED
data/yaccl.gemspec
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
$:.push File.expand_path("../lib", __FILE__)
|
3
|
-
require 'yaccl'
|
3
|
+
require 'yaccl/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = 'yaccl'
|
7
7
|
s.version = YACCL::VERSION
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
|
-
s.authors = ['Kenneth', 'Michael']
|
10
|
-
s.email = ['
|
11
|
-
s.homepage = '
|
12
|
-
s.summary = '
|
13
|
-
s.description = 'Ruby CMIS browser binding client
|
9
|
+
s.authors = ['Kenneth Geerts', 'Michael Brackx']
|
10
|
+
s.email = ['gem@up-nxt.com']
|
11
|
+
s.homepage = 'https://github.com/UP-nxt'
|
12
|
+
s.summary = 'CMIS browser binding client lib.'
|
13
|
+
s.description = 'A Ruby CMIS browser binding client library implementation.'
|
14
14
|
|
15
15
|
s.add_dependency 'httparty', '~> 0.10'
|
16
16
|
s.add_dependency 'multipart-post', '~> 1.1'
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yaccl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
- Kenneth
|
9
|
-
- Michael
|
8
|
+
- Kenneth Geerts
|
9
|
+
- Michael Brackx
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-03-
|
13
|
+
date: 2013-03-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httparty
|
@@ -76,9 +76,9 @@ dependencies:
|
|
76
76
|
- - ~>
|
77
77
|
- !ruby/object:Gem::Version
|
78
78
|
version: '0.1'
|
79
|
-
description: Ruby CMIS browser binding client
|
79
|
+
description: A Ruby CMIS browser binding client library implementation.
|
80
80
|
email:
|
81
|
-
-
|
81
|
+
- gem@up-nxt.com
|
82
82
|
executables: []
|
83
83
|
extensions: []
|
84
84
|
extra_rdoc_files: []
|
@@ -111,6 +111,7 @@ files:
|
|
111
111
|
- lib/yaccl/services/relationship_services.rb
|
112
112
|
- lib/yaccl/services/repository_services.rb
|
113
113
|
- lib/yaccl/services/versioning_services.rb
|
114
|
+
- lib/yaccl/version.rb
|
114
115
|
- readme.md
|
115
116
|
- spec/helper.rb
|
116
117
|
- spec/model/document_spec.rb
|
@@ -122,7 +123,7 @@ files:
|
|
122
123
|
- spec/services/object_services_spec.rb
|
123
124
|
- spec/services/repository_services_spec.rb
|
124
125
|
- yaccl.gemspec
|
125
|
-
homepage:
|
126
|
+
homepage: https://github.com/UP-nxt
|
126
127
|
licenses: []
|
127
128
|
post_install_message:
|
128
129
|
rdoc_options: []
|
@@ -145,7 +146,7 @@ rubyforge_project:
|
|
145
146
|
rubygems_version: 1.8.24
|
146
147
|
signing_key:
|
147
148
|
specification_version: 3
|
148
|
-
summary:
|
149
|
+
summary: CMIS browser binding client lib.
|
149
150
|
test_files:
|
150
151
|
- spec/helper.rb
|
151
152
|
- spec/model/document_spec.rb
|