Class: CmisServer::FolderObject

Inherits:
CmisObject show all
Defined in:
lib/cmis_server/folder_object.rb

Instance Attribute Summary

Attributes inherited from CmisObject

#properties, #secondary_types, #type

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from CmisObject

#add_secondary_type, #all_property_definitions, #copy_properties_values_of, #has_secondary_type?, #remove_secondary_type, #save, #to_renderable_object, #update_properties

Constructor Details

#initialize(type:, properties: {}) ⇒ FolderObject

Returns a new instance of FolderObject.

Raises:



12
13
14
15
# File 'lib/cmis_server/folder_object.rb', line 12

def initialize(type:, properties: {})
  raise InvalidType unless type.base_id == 'cmis:folder'
  super
end

Class Method Details

.root_folderObject



4
5
6
7
8
9
10
# File 'lib/cmis_server/folder_object.rb', line 4

def self.root_folder
  unless @root
    @root=new(CmisServer.configuration.arguments_for_root_folder)
    @root.define_singleton_method :is_root?,(lambda { true })
  end
  @root
end