Module: ActiveCMIS::Rel

Defined in:
lib/active_cmis/rel.rb

Class Method Summary collapse

Class Method Details

.[](version) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/active_cmis/rel.rb', line 3

def self.[](version)
  if version == '1.0'
    prefix = "http://docs.oasis-open.org/ns/cmis/link/200908/"
    {
      :allowableactions => "#{prefix}allowableactions",
      :acl => "#{prefix}acl",
      :relationships => "#{prefix}relationships",
      :changes => "#{prefix}changes",
    }
  else
    raise ActiveCMIS::Error.new("ActiveCMIS only works with CMIS 1.0, requested version was #{version}")
  end
end