Hi Anamaria,
Anamaria Stoica wrote:
Hi,
Concerning DocumentAccessBridge [0], would it be possible to add
another setProperty method, which would indicate
the number(index) of the object you add the property value to? Its
signature would be:
void setProperty(String documentName, String
className, int
objectNumber, String propertyName, Object propertyValue) throws
Exception;
+1, do you have a patch? You should open a JIRA issue and attach it. But
first lets see if others agree.
I need it to be able to easily add new objects and modify their
property values, from a component.
Is there any other way of doing this I overlooked?
Right now, the only existing setProperty method operates only on the
first object attached to the document:
void setProperty(String documentName, String
className, String
propertyName, Object propertyValue) throws Exception;
This should call:
setProperty(documentName, className, 0, propertyName, propertyValue)
Thanks,
Marius
The corresponding getters are both already present:
Object getProperty(String documentName, String className, int
objectNumber, String propertyName);
Object getProperty(String documentName, String className, String propertyName);
WDYT?
[0] -
https://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-bridge/src/ma…
Thanks,
Anamaria
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs