On Fri, 05 Dec 2008 17:21:49 +0100, Hamed, Ahmed A.  
<[EMAIL PROTECTED]> wrote:

> Very good! I am actually using only their getters in conjunction
> findObject() method. The question now is, after you user the setters,  
> how an
> you set ObjectFields back to the object?
> There is not a method that does: apim.setObjectMetadata(ObjectFields).  
> Any
> suggestions?

i just played with the setters and they do not set the value in the actual  
object in repo :-(
another way would be to use
modifyDatastreamByValue()
since DC is an internal datastream. then you can create your own xml with  
new values and push it back to the object as byte[]. so far it seems the  
best way and with a jdom Document it shouldn't be to hard to create a  
simple structure like DC.
for the required params you could fetch the DC datastream via  
getDatastream() and use the getters from Datastream.


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to