content::revision::update_content (private)

 content::revision::update_content -item_id item_id \
    -revision_id revision_id -content content \
    -storage_type storage_type -mime_type mime_type \
    [ -tmp_filename tmp_filename ]

Defined in packages/acs-content-repository/tcl/content-revision-procs.tcl

Update content column separately. Oracle does not allow insert into a BLOB. This assumes that if storage type is lob and no file is specified that the content is really text and store it in the text column in PostgreSQL

Switches:
-item_id (required)
-revision_id (required)
Content revision to update
-content (required)
Content to add to resivsion
-storage_type (required)
text, file, or lob
-mime_type (required)
mime type of the content
-tmp_filename (optional)
For storage types except 'text' a filename can be specified instead of 'content'. The caller is responsible for cleaning up the temporary file
Author:
Dave Bauer <dave@thedesignexperience.org>
Created:
2005-02-09

Partial Call Graph (max 5 caller/called nodes):
%3 content::revision::new content::revision::new (public) content::revision::update_content content::revision::update_content content::revision::new->content::revision::update_content cr_import_content cr_import_content (public) cr_import_content->content::revision::update_content

Testcases:
No testcase defined.
Source code:
    #ns_log notice "::content::revision::update_content"  "update_content-$storage_type $revision_id"  "content '$content' mime_type $mime_type tmp_filename '$tmp_filename'"

    ::content::revision::update_content-$storage_type  -item_id $item_id  -revision_id $revision_id  -content $content  -mime_type $mime_type  -tmp_filename $tmp_filename
Generic XQL file:
packages/acs-content-repository/tcl/content-revision-procs.xql

PostgreSQL XQL file:
packages/acs-content-repository/tcl/content-revision-procs-postgresql.xql

Oracle XQL file:
packages/acs-content-repository/tcl/content-revision-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: