Class: CmisServer::Document
- Defined in:
- lib/cmis_server/base_objects/document.rb
Class Attribute Summary collapse
-
.content_stream_allowed ⇒ Object
readonly
Returns the value of attribute content_stream_allowed.
-
.versionable ⇒ Object
readonly
Returns the value of attribute versionable.
Instance Attribute Summary collapse
-
#content_stream ⇒ Object
Returns the value of attribute content_stream.
Attributes inherited from BaseType
#base_id, #controllable_acl, #controllable_policy, #creatable, #description, #display_name, #fileable, #fulltext_indexed, #id, #included_in_supertype_query, #local_name, #local_namespace, #parent_type, #properties, #property_definitions, #query_name, #queryable
Class Method Summary collapse
Methods inherited from BaseType
#==, #adapter, #adapter_class, adapter_class, base_type, #copy_properties_values_of, #initialize, #initialize_properties, parent_id, parent_property_definitions, property, property_definitions, #to_renderable_object
Constructor Details
This class inherits a constructor from CmisServer::BaseType
Class Attribute Details
.content_stream_allowed ⇒ Object (readonly)
Returns the value of attribute content_stream_allowed.
5 6 7 |
# File 'lib/cmis_server/base_objects/document.rb', line 5 def content_stream_allowed @content_stream_allowed end |
.versionable ⇒ Object (readonly)
Returns the value of attribute versionable.
4 5 6 |
# File 'lib/cmis_server/base_objects/document.rb', line 4 def versionable @versionable end |
Instance Attribute Details
#content_stream ⇒ Object
Returns the value of attribute content_stream.
59 60 61 |
# File 'lib/cmis_server/base_objects/document.rb', line 59 def content_stream @content_stream end |
Class Method Details
.base_id ⇒ Object
13 14 15 |
# File 'lib/cmis_server/base_objects/document.rb', line 13 def base_id id end |
.type_definition(opts = {}) ⇒ Object
7 8 9 10 11 |
# File 'lib/cmis_server/base_objects/document.rb', line 7 def type_definition(opts={}) super(opts) @versionable = opts.fetch(:versionable,false) @content_stream_allowed = opts.fetch(:content_stream_allowed,:notallowed) #may be in [:notallowed,:allowed, :required] end |