On Fri, Apr 6, 2012 at 12:53 AM,
<Ricardo.Julio.Rodriguez.Fernandez(a)sergas.es> wrote:
Hi,
We found XWiki groups really useful as a metaphor for rather different types of
entities.
But we are facing a problem. Please, could you follow this reasoning?
Given an user, let's say, USER01, she/he will belong to a given number of XWiki
groups. Our doubt is, how to represent/stora the particularities of a given user when
he/she is included in a given group.
Let's me to describe an example. Any user in our organization could play different
roles. For instance, for given set of groups he/she could play a coordinator role. But
this fact won't affect /conditonate his/her roles when assigned to a different group.
The only solution I could think off is to create one
property per group a given user belongs to to store his/her role in this group.
You mean extending XWiki.XWikiGroups class with a 'role' property? So
when you add an user to a group you add a new XWiki.XWikiGroups object
to the group's document and set the 'member' property to the user name
(XWiki.Ricardo) and the 'role' property to the role the user will have
in that group (e.g. 'coordinator').
This sounds good to me.
Hope this helps,
Marius
Please, could you figure out a better solution?
Thanks for your help!!!
Ricardo
--
Ricardo Rodríguez
Research Management and Promotion Technician
Technical Secretariat
Health Research Institute of Santiago de Compostela (IDIS)
http://www.idisantiago.es
Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é
privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é
o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia
desta mensaxe non está autorizada.
Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es
privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es
el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o
copia de este mensaje no está autorizada.
See more languages:
http://www.sergas.es/aviso_confidencialidad.htm
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users