Class: CmisServer::AtomPub::EntriesController

Inherits:
BaseController show all
Includes:
RepositoryScopable
Defined in:
app/controllers/cmis_server/atom_pub/entries_controller.rb

Instance Method Summary collapse

Methods included from RepositoryScopable

#set_repository

Methods inherited from BaseController

#raw_post_body, #render_standard_error, #request_entry_parser

Methods inherited from CmisServer::ApplicationController

#check_auth, #context

Instance Method Details

#destroyObject



19
20
21
22
# File 'app/controllers/cmis_server/atom_pub/entries_controller.rb', line 19

def destroy
  object_service.delete_object(id)
  head :no_content
end

#showObject



9
10
11
12
# File 'app/controllers/cmis_server/atom_pub/entries_controller.rb', line 9

def show
  @object=object_service.get_object(id, with_object: true, filter: filter)
  render 'cmis_server/atom_pub/entries/object_entry', formats: :atom_entry
end

#updateObject



14
15
16
17
# File 'app/controllers/cmis_server/atom_pub/entries_controller.rb', line 14

def update
  @object=object_service.update_properties(id, request_entry_parser.object_properties, with_object: true)
  render 'cmis_server/atom_pub/entries/object_entry', formats: :atom_entry, status: 200
end