Hi!
________________________________________ From: [email protected] [[email protected]] On Behalf Of Marius Dumitru Florea [[email protected]] Sent: 06 April 2012 09:58 To: XWiki Users Subject: Re: [xwiki-users] using XWiki groups
On Fri, Apr 6, 2012 at 12:53 AM, <[email protected]> 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.
Yeap, this sounds easy and good. But IMO there is still one thing I'm not confortable with in this approach. We use, or intend to use, XWiki group concept for different "real life objects". Let me give you three examples: 1. research groups (this is classical approach with a one person-one group belonging relationship) 2. research projects (the group will represent the research team); closer to research groups, but it has its own oddities and 3. scientific papers (the group will represent the paper's authorship); in this case, author order will be king. If we add a single new property to XWiki.XWikiGroups class, 'role' property, it will have different meanings and values depending of what "kind" of group it will represent. Won't be more advisable to create as many new properties as different meanings XWiki.XWikiGroups object instances will have? In this case, only one property will have a given value. The others will remain empty. This last fact together with the another issue: we are still using a 2.4 XE release, thus we are facing an update in the short time, make me very reluctant to extend any XWiki class. But, of course, if this is the best or the only solution, will go for it! We are thinking about a "third party" brand new class characterizing any group membership relation. But we have not conceptual model for this data system yet, so I can't offer an objective and independent representation about we are thinking about. Thank you so much for your help! Any idea, comment or criticism will be extremely welcome! Ricardo
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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users 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