Method: CmisServer::Repository::Capabilities#initialize
- Defined in:
- lib/cmis_server/repository.rb
#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 |