Hi Arun,
Thanks for your reply.

I see it's a new one (the getProperties(String documentName, String
className) method). I didn't update the core for some time now, and googling
it took me to and older version (xwiki-core-1.8) and I didn't noticed it.

Thanks,
Anamaria

On Fri, Jul 10, 2009 at 5:32 AM, Arun Reddy <[email protected]> wrote:

> On Fri, Jul 10, 2009 at 3:50 AM, Anamaria Stoica <[email protected]
> >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/main/java/org/xwiki/bridge/DocumentAccessBridge.java
>
>
> >
> > 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#HTheXWikidatamodel
> >
> >
> > Thanks a lot,
> > Anamaria
> > _______________________________________________
> > devs mailing list
> > [email protected]
> > http://lists.xwiki.org/mailman/listinfo/devs
> >
>
>
>
> --
> Best Regards,
> Arun Reddy
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to