Hello,
I'm trying to add properties (PropertyNode) to ObjectNodes by using the SlideAPI.
(See piece of code below).
I don't get any Exception, but no property is added? Am I missing something obvious?
I'm using Slide2.0.
Thanks in advance for your help,
JClaude
public void setProperty(String uri, String propertyName, String propertyValue)
throws Exception {
try{
token.begin();
ObjectNode on = getStructure().retrieve(slideToken,uri);
NodeRevisionDescriptors revisionDescriptors =
content.retrieve(slideToken, uri);
NodeRevisionDescriptor revisionDescriptor =
content.retrieve(slideToken, revisionDescriptors);
revisionDescriptor.setProperty(propertyName, propertyValue);
token.commit();
}catch(Exception se){
token.rollback();
System.out.println(se);
throw se;
}
}