Class: CmisServer::Repository::Capabilities

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#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_delete_propertiesObject (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_moveObject (readonly)

CMIS 1.1 capabilities



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

def bulk_move
  @bulk_move
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

#extended_aclObject (readonly)

CMIS 1.1 capabilities



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

def extended_acl
  @extended_acl
end

#extended_queryObject (readonly)

CMIS 1.1 capabilities



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

def extended_query
  @extended_query
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



40
41
42
# File 'lib/cmis_server/repository.rb', line 40

def [](attr)
  self.send(attr)
end

#to_hObject



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