Good day.

I'm trying to add users to a users list within a object. After I have
instanciated the object on the document which I want to ammend, how do I
"set" and "get" the user list property in a java component? I have:

BaseObject domainObject = doc.getXObject(referenceClass);
domainObj.set("lisfOfUsers", ??user?? , xcontext);

domainObj is of a class where the "lisfOfUsers" is a List of Users property.
Currently I have the username as a string. I have tried creating a User or
XWikiUser object and setting the property with the object but with no
success. 



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Adding-users-to-a-user-list-form-a-java-component-tp7597177.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to