This post is more than 5 years old
45 Posts
0
4314
January 9th, 2009 03:00
updating clip attributes after creation
Hi again, sorry to post so many questions but I have another question the javadoc does not seem to cover fully:
I have created a clip and set some attributes on it using
clip.setDescriptionAttribute("version", "1");
after some time I add additional tags to the clip and want to update this fact in the description attributes (I set a new version indicator on it).
As it seems another call of
clip.setDescriptionAttribute("version", "2");
does not seem to have any effect, after closing the clip and another query on it there is still the old version (1) on the version attribute.
Is it possible to modify the clip attributes after having created a clip?
regards, Chris
No Events found!
gstuartemc
2 Intern
•
417 Posts
0
January 9th, 2009 03:00
Hi Chris - If the Clip has already been written (which your post suggests it has) then after updating the value of the attribute you need to write the Clip again to persist your change. This will result in a new Clip ID and you must delete the old one.
Remember that Centera is geared towards fixed content - any updates required on a clip after it has been written will require the clip to be written again and will result in a new clip. The only exception to this is the Event Based Retention and Litigation Hold features which use mutable metadata.
If you do update the Clip then you must manage the deletion of the old clip - either immediately via Privileged Delete or once Retention has expired. The "new" clip you have written contains the original "base" clip ID in the metadata (prev.clip).
The new XAM based SDK for Centera allows you to create XSets (the XAM equivalent of a Clip) that facilitates mutable metadata withought resulting in a new XSet each time. You may want to investigate this option if it fits your Use Case.
christoph_retti
45 Posts
0
January 9th, 2009 05:00
Hello, thank you for your answer, this explains the behaviour I see. I guess it is then time to switch to the XAM SDK as we will have a lot of updates
on the clips: our customer wants us to keep a change history with the clip and therefore every update of the content will have to be tracked.
Many thanks, Chris
christoph_retti
45 Posts
0
January 12th, 2009 07:00
Hi, sorry to reopen this issue but I now have updated a clip with attributes and new tags; when I look at the clip id I got back from the
clip.Write() call i can see that the new tags are attached, but the clip attributes themself did not change. Also i don't have a reference
to the old clip it.
I have created the clip on emea 1 with emea1_profile1_rdqeDcw.pea profile and the ids are
AJNU5R9EHJ7JQe84MFHBV9EQ452 (original)
AR4RGM1VMD218e0F6Q97ROGIAIS (updated)
Any suggestion on that?
gstuartemc
2 Intern
•
417 Posts
0
January 13th, 2009 03:00
Chris - I can only assume there is an error in your code. I just opened your updated clip, changed the value of the "foo" and "bar" attributes and wrote it out (clip ID DLF7OPET1I5JGeDUJVLFTECD0JO). If you open that clip you will see that those attributes have updated values.