Difference between updateContent() and deleteContent() + addContent()?

22 views
Skip to first unread message

Thomas Ehardt

unread,
Aug 27, 2007, 2:41:39 PM8/27/07
to IBM Content Manager
In the context of "replacing" a TIFF image (base part, only part),
what is the difference between calling updateContent() vs.
deleteContent()/addContent() on a CMBDataManagement object?

We've run across a couple of instances where updateContent() appears
to have allowed the update to happen, but then threw a CMBException.
When we tested the same documents with delete/add, we had no problems.

We are running CM8.2 on 390 library server and Win2* resource
managers; our documents typically consist of a single multi-page TIFF
+ annotations/notelogs.


regards,
Thomas

javier plumey

unread,
Aug 27, 2007, 3:20:52 PM8/27/07
to IBM Content Manager
Thomas,
 
It's been a while since I have looked at that API but I think the difference between the replacing vs the delete/add is that the replacement method is meant to preserve the original item id for the part for the object. Doing it the other way creates a new part with a different item id. I don't know what exception you're getting but I have used them both reliably in the past.
 
Regards,
 
Javier Plumey
 


From: IBM-Conte...@googlegroups.com on behalf of Thomas Ehardt
Sent: Mon 8/27/2007 1:41 PM
To: IBM Content Manager
Subject: Difference between updateContent() and deleteContent() + addContent()?

Reply all
Reply to author
Forward
0 new messages