Class: CmisServer::Repository::Capabilities
- Inherits:
-
Object
- Object
- CmisServer::Repository::Capabilities
- 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_delete_properties ⇒ Object
readonly
CMIS 1.1 capabilities.
-
#bulk_move ⇒ 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.
-
#extended_acl ⇒ Object
readonly
CMIS 1.1 capabilities.
-
#extended_query ⇒ 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 = {}) ⇒ Capabilities
constructor
A new instance of Capabilities.
- #to_h ⇒ Object
Constructor Details
#initialize(attrs = {}) ⇒ Capabilities
Returns a new instance of Capabilities.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# 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) @bulk_delete_properties = attrs.fetch(:bulk_delete_properties, false) @bulk_move = attrs.fetch(:bulk_move, false) @extended_query = attrs.fetch(:extended_query, false) @extended_acl = attrs.fetch(:extended_acl, 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_delete_properties ⇒ Object (readonly)
CMIS 1.1 capabilities
9 10 11 |
# File 'lib/cmis_server/repository.rb', line 9 def bulk_delete_properties @bulk_delete_properties end |
#bulk_move ⇒ Object (readonly)
CMIS 1.1 capabilities
9 10 11 |
# File 'lib/cmis_server/repository.rb', line 9 def bulk_move @bulk_move 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 |
#extended_acl ⇒ Object (readonly)
CMIS 1.1 capabilities
9 10 11 |
# File 'lib/cmis_server/repository.rb', line 9 def extended_acl @extended_acl end |
#extended_query ⇒ Object (readonly)
CMIS 1.1 capabilities
9 10 11 |
# File 'lib/cmis_server/repository.rb', line 9 def extended_query @extended_query 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
40 41 42 |
# File 'lib/cmis_server/repository.rb', line 40 def [](attr) self.send(attr) end |
#to_h ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/cmis_server/repository.rb', line 44 def to_h { acl: @acl, all_versions_searchable: @all_versions_searchable, changes: @changes, content_stream_updatability: @content_stream_updatability, get_descendants: @get_descendants, get_folder_tree: @get_folder_tree, multifiling: @multifiling, pwc_searchable: @pwc_searchable, pwc_updatable: @pwc_updatable, query: @query, renditions: @renditions, unfiling: @unfiling, version_specific_filing: @version_specific_filing, join: @join, secondary_types: @secondary_types, create_type: @create_type, bulk_update: @bulk_update, append_content_stream: @append_content_stream, update_type: @update_type, delete_type: @delete_type, bulk_delete_properties: @bulk_delete_properties, bulk_move: @bulk_move, extended_query: @extended_query, extended_acl: @extended_acl } end |