Hi, I would also need a way to completely remove an object attached to a document. I see DAB doesn't permit this either. Should I go ahead with this too? Thanks, Anamaria On Sun, Aug 16, 2009 at 12:33 AM, Anamaria Stoica<[email protected]> wrote:
Hi,
I created a JIRA issue XWIKI-4172 (http://jira.xwiki.org/jira/browse/XWIKI-4172), and attached a patch to it: http://jira.xwiki.org/jira/secure/attachment/15597/patch_XWIKI-4172.txt
Thanks, Anamaria
On Sat, Aug 15, 2009 at 4:28 PM, Sergiu Dumitriu<[email protected]> wrote:
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;
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;
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?
+1
-- Sergiu Dumitriu http://purl.org/net/sergiu/
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs