[xwiki-users] Easy to set object properties from strings?
Ludovic Dubost
ludovic at xwiki.com
Thu Mar 15 23:32:17 CET 2007
Hi Thomas or Brian (which one is it ?)
There is a "set" function in BaseObject which either takes a typed
object but also a String. It calls "fromString" if it is a String
So something like
doc.getObject("XWiki.ClassName",0).set("fieldname", "value", context)
should work
Ludovic
THOMAS, BRIAN M (ATTSI) a écrit :
> Brief background: I have a servlet filter that handles authentication.
> It wants to auto-register previously unseen users, and update
> already-registered users, from information in cookies. The information
> is mostly in the form of strings, but the object's fields might not be.
>
> The question: Is there a simple, type-independent method to set an
> XWiki Object field's value from a string? The question is not "how can
> this be done", since I can easily work that out, but rather "is there a
> method currently available"?
>
> brain[sic]
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the xwiki-users at objectweb.org mailing list.
> To unsubscribe: mailto:xwiki-users-unsubscribe at objectweb.org
> For general help: mailto:sympa at objectweb.org?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
--
Ludovic Dubost
Blog: http://www.ludovic.org/blog/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
AIM: nvludo Yahoo: ludovic
More information about the users
mailing list