On Fri, Jul 10, 2009 at 3:50 AM, Anamaria Stoica <anam.stoica(a)gmail.com>wrote;wrote:
Hi,
Is there a way to get all the values for the properties of an object
attached to a page? For example, in my case, I need to get all the
properties that were defined and their values for an object which belongs
to
XWiki.XWikiUsers class, given the name of the document (that the object
belongs to).
From my component I use DocumentAccessBridge, but the only methods to get
properties values are the ones like:
public String getProperty(String documentName, String className, String
propertyName)
Is there a more elegant way to get all of them, besides calling
.getProperty() for each of the property names ? Or, is there a way to get
all the properties defined for a class? (i.e. for the XWiki.XWikiUsers
class).
Have you tried using :
List<Object> getProperties(String documentName, String className);
A method in DocumentAccessBridge.
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-bridge/src/mai…
Are there any other components which provide access to the data model? From
what I understood from here [0], the XWiki data model resides in the old
xwiki-core module, therefore must be used a bridge (like
DocumentAccessBridge).
[0] -
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents#HTheXWi…
Thanks a lot,
Anamaria
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Best Regards,
Arun Reddy