Class: CmisServer::Repository::Capabitilies
- Inherits:
-
Object
- Object
- CmisServer::Repository::Capabitilies
- Defined in:
- lib/cmis_server/repository.rb
Instance Attribute Summary collapse
-
#acl ⇒ Object
readonly
Returns the value of attribute acl.
-
#all_versions_searchable ⇒ Object
readonly
Returns the value of attribute all_versions_searchable.
-
#append_content_stream ⇒ Object
readonly
CMIS 1.1 capabilities.
-
#bulk_update ⇒ Object
readonly
CMIS 1.1 capabilities.
-
#changes ⇒ Object
readonly
Returns the value of attribute changes.
-
#content_stream_updatability ⇒ Object
readonly
Returns the value of attribute content_stream_updatability.
-
#create_type ⇒ Object
readonly
CMIS 1.1 capabilities.
-
#delete_type ⇒ Object
readonly
CMIS 1.1 capabilities.
-
#get_descendants ⇒ Object
readonly
Returns the value of attribute get_descendants.
-
#get_folder_tree ⇒ Object
readonly
Returns the value of attribute get_folder_tree.
-
#join ⇒ Object
readonly
Returns the value of attribute join.
-
#multifiling ⇒ Object
readonly
Returns the value of attribute multifiling.
-
#pwc_searchable ⇒ Object
readonly
Returns the value of attribute pwc_searchable.
-
#pwc_updatable ⇒ Object
readonly
Returns the value of attribute pwc_updatable.
-
#query ⇒ Object
readonly
Returns the value of attribute query.
-
#renditions ⇒ Object
readonly
Returns the value of attribute renditions.
-
#secondary_types ⇒ Object
readonly
Returns the value of attribute secondary_types.
-
#unfiling ⇒ Object
readonly
Returns the value of attribute unfiling.
-
#update_type ⇒ Object
readonly
CMIS 1.1 capabilities.
-
#version_specific_filing ⇒ Object
readonly
Returns the value of attribute version_specific_filing.
Instance Method Summary collapse
- #[](attr) ⇒ Object
-
#initialize(attrs = {}) ⇒ Capabitilies
constructor
A new instance of Capabitilies.
Constructor Details
#initialize(attrs = {}) ⇒ Capabitilies
Returns a new instance of Capabitilies.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/cmis_server/repository.rb', line 11 def initialize(attrs={}) @acl = attrs.fetch(:acl, :none) @all_versions_searchable = attrs.fetch(:all_versions_searchable, :false) @changes = attrs.fetch(:changes, :none) @content_stream_updatability= attrs.fetch(:content_stream_updatability, :none) @get_descendants = attrs.fetch(:get_descendants, :false) @get_folder_tree = attrs.fetch(:get_folder_tree, :false) @multifiling = attrs.fetch(:multifiling, :false) @pwc_searchable = attrs.fetch(:pwc_searchable, :false) @pwc_updatable = attrs.fetch(:pwc_updatable, :false) @query = attrs.fetch(:query, :metadataonly) @renditions = attrs.fetch(:renditions, :none) @unfiling = attrs.fetch(:unfiling, :true) @version_specific_filing = attrs.fetch(:version_specific_filing, :false) @join = attrs.fetch(:join, :none) @secondary_types = attrs.fetch(:secondary_types, :true) # CMIS 1.1 capabilities @create_type = attrs.fetch(:create_type, false) @bulk_update = attrs.fetch(:bulk_update, false) @append_content_stream = attrs.fetch(:append_content_stream, false) @update_type = attrs.fetch(:update_type, false) @delete_type = attrs.fetch(:delete_type, false) end |
Instance Attribute Details
#acl ⇒ Object (readonly)
Returns the value of attribute acl.
6 7 8 |
# File 'lib/cmis_server/repository.rb', line 6 def acl @acl end |
#all_versions_searchable ⇒ Object (readonly)
Returns the value of attribute all_versions_searchable.
6 7 8 |
# File 'lib/cmis_server/repository.rb', line 6 def all_versions_searchable @all_versions_searchable end |
#append_content_stream ⇒ Object (readonly)
CMIS 1.1 capabilities
9 10 11 |
# File 'lib/cmis_server/repository.rb', line 9 def append_content_stream @append_content_stream end |
#bulk_update ⇒ Object (readonly)
CMIS 1.1 capabilities
9 10 11 |
# File 'lib/cmis_server/repository.rb', line 9 def bulk_update @bulk_update end |
#changes ⇒ Object (readonly)
Returns the value of attribute changes.
6 7 8 |
# File 'lib/cmis_server/repository.rb', line 6 def changes @changes end |
#content_stream_updatability ⇒ Object (readonly)
Returns the value of attribute content_stream_updatability.
6 7 8 |
# File 'lib/cmis_server/repository.rb', line 6 def content_stream_updatability @content_stream_updatability end |
#create_type ⇒ Object (readonly)
CMIS 1.1 capabilities
9 10 11 |
# File 'lib/cmis_server/repository.rb', line 9 def create_type @create_type end |
#delete_type ⇒ Object (readonly)
CMIS 1.1 capabilities
9 10 11 |
# File 'lib/cmis_server/repository.rb', line 9 def delete_type @delete_type end |
#get_descendants ⇒ Object (readonly)
Returns the value of attribute get_descendants.
6 7 8 |
# File 'lib/cmis_server/repository.rb', line 6 def get_descendants @get_descendants end |
#get_folder_tree ⇒ Object (readonly)
Returns the value of attribute get_folder_tree.
6 7 8 |
# File 'lib/cmis_server/repository.rb', line 6 def get_folder_tree @get_folder_tree end |
#join ⇒ Object (readonly)
Returns the value of attribute join.
6 7 8 |
# File 'lib/cmis_server/repository.rb', line 6 def join @join end |
#multifiling ⇒ Object (readonly)
Returns the value of attribute multifiling.
6 7 8 |
# File 'lib/cmis_server/repository.rb', line 6 def multifiling @multifiling end |
#pwc_searchable ⇒ Object (readonly)
Returns the value of attribute pwc_searchable.
6 7 8 |
# File 'lib/cmis_server/repository.rb', line 6 def pwc_searchable @pwc_searchable end |
#pwc_updatable ⇒ Object (readonly)
Returns the value of attribute pwc_updatable.
6 7 8 |
# File 'lib/cmis_server/repository.rb', line 6 def pwc_updatable @pwc_updatable end |
#query ⇒ Object (readonly)
Returns the value of attribute query.
6 7 8 |
# File 'lib/cmis_server/repository.rb', line 6 def query @query end |
#renditions ⇒ Object (readonly)
Returns the value of attribute renditions.
6 7 8 |
# File 'lib/cmis_server/repository.rb', line 6 def renditions @renditions end |
#secondary_types ⇒ Object (readonly)
Returns the value of attribute secondary_types.
6 7 8 |
# File 'lib/cmis_server/repository.rb', line 6 def secondary_types @secondary_types end |
#unfiling ⇒ Object (readonly)
Returns the value of attribute unfiling.
6 7 8 |
# File 'lib/cmis_server/repository.rb', line 6 def unfiling @unfiling end |
#update_type ⇒ Object (readonly)
CMIS 1.1 capabilities
9 10 11 |
# File 'lib/cmis_server/repository.rb', line 9 def update_type @update_type end |
#version_specific_filing ⇒ Object (readonly)
Returns the value of attribute version_specific_filing.
6 7 8 |
# File 'lib/cmis_server/repository.rb', line 6 def version_specific_filing @version_specific_filing end |
Instance Method Details
#[](attr) ⇒ Object
36 37 38 |
# File 'lib/cmis_server/repository.rb', line 36 def [](attr) self.send(attr) end |