Class: CmisServer::DocumentObject

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

Instance Attribute Summary collapse

Attributes inherited from CmisObject

#properties, #secondary_types, #type

Instance Method Summary collapse

Methods inherited from CmisObject

#add_secondary_type, #all_property_definitions, #cmis_created_by, #cmis_creation_date, #cmis_description, #cmis_last_modification_date, #cmis_name, #copy_properties_values_of, #has_secondary_type?, #remove_secondary_type, #save, #to_renderable_object, #update_properties

Constructor Details

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

Returns a new instance of DocumentObject.

Raises:



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

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

Instance Attribute Details

#cmis_object_idObject

Returns the value of attribute cmis_object_id.



4
5
6
# File 'lib/cmis_server/document_object.rb', line 4

def cmis_object_id
  @cmis_object_id
end

#content_streamObject

Returns the value of attribute content_stream.



4
5
6
# File 'lib/cmis_server/document_object.rb', line 4

def content_stream
  @content_stream
end