Class: CmisServer::AtomPub::EntriesController
Instance Method Summary
collapse
#set_repository
#raw_post_body, #render_standard_error, #request_entry_parser
#check_auth, #context
Instance Method Details
#destroy ⇒ Object
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
|
#show ⇒ Object
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
|
#update ⇒ Object
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
|