Class: CmisServer::Repository::Capabitilies

Inherits:
Object
  • Object
show all
Defined in:
lib/cmis_server/repository.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#aclObject (readonly)

Returns the value of attribute acl.



6
7
8
# File 'lib/cmis_server/repository.rb', line 6

def acl
  @acl
end

#all_versions_searchableObject (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_streamObject (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_updateObject (readonly)

CMIS 1.1 capabilities



9
10
11
# File 'lib/cmis_server/repository.rb', line 9

def bulk_update
  @bulk_update
end

#changesObject (readonly)

Returns the value of attribute changes.



6
7
8
# File 'lib/cmis_server/repository.rb', line 6

def changes
  @changes
end

#content_stream_updatabilityObject (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_typeObject (readonly)

CMIS 1.1 capabilities



9
10
11
# File 'lib/cmis_server/repository.rb', line 9

def create_type
  @create_type
end

#delete_typeObject (readonly)

CMIS 1.1 capabilities



9
10
11
# File 'lib/cmis_server/repository.rb', line 9

def delete_type
  @delete_type
end

#get_descendantsObject (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_treeObject (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

#joinObject (readonly)

Returns the value of attribute join.



6
7
8
# File 'lib/cmis_server/repository.rb', line 6

def join
  @join
end

#multifilingObject (readonly)

Returns the value of attribute multifiling.



6
7
8
# File 'lib/cmis_server/repository.rb', line 6

def multifiling
  @multifiling
end

#pwc_searchableObject (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_updatableObject (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

#queryObject (readonly)

Returns the value of attribute query.



6
7
8
# File 'lib/cmis_server/repository.rb', line 6

def query
  @query
end

#renditionsObject (readonly)

Returns the value of attribute renditions.



6
7
8
# File 'lib/cmis_server/repository.rb', line 6

def renditions
  @renditions
end

#secondary_typesObject (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

#unfilingObject (readonly)

Returns the value of attribute unfiling.



6
7
8
# File 'lib/cmis_server/repository.rb', line 6

def unfiling
  @unfiling
end

#update_typeObject (readonly)

CMIS 1.1 capabilities



9
10
11
# File 'lib/cmis_server/repository.rb', line 9

def update_type
  @update_type
end

#version_specific_filingObject (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