Hi All, How do you modify the User Profile and add additional persistent properties? Do I modify the XWiki.XWikiUsers class? Also how do you retrieve these property values? Thanks. Duke
Hi Duke, Duke Tantiprasut a écrit :
Hi All,
How do you modify the User Profile and add additional persistent properties?
Do I modify the XWiki.XWikiUsers class?
Yes.. You can add field there
Also how do you retrieve these property values?
You can add the fields to the XWiki.XWikiUserSheet using the display API $doc.display("propname", $obj) (see how it is done in XWiki.XWikiUserSheet) there is also $doc.getStringValue("propname", "XWiki.XWikiUsers") You can also use the "Edit Object" link in "More Actions" to modify the data in a user page.
Thanks.
Duke
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
Hi Duke, Stéphane Laurière of Mandriva has done some excellent work in this area. If I remember our discussion with Ludovic about this, its better to create a new class like maybe XWiki.UserProfile add your extra properties there and modify the forms to take the new fields into account. There may be some tricky stuff there. Stéphane do you have a simple example that Duke could use to get started ? This should be packaged in the default database I suppose. Luis. On 7/5/05, Duke Tantiprasut <[email protected]> wrote:
Hi All,
How do you modify the User Profile and add additional persistent properties?
Do I modify the XWiki.XWikiUsers class?
Also how do you retrieve these property values?
Thanks.
Duke
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Luis Arias http://www.xwiki.com http://www.innover-entreprendre.net +33 6 14 20 87 93 mobile
Thanks guys. Is it possible to remove existing properties from a class? I can rename / redefine it but I couldnt see a way to remove the fields. Thanks. Duke _____ From: Luis Arias [mailto:[email protected]] Sent: Wednesday, July 06, 2005 3:02 AM To: [email protected] Subject: Re: [xwiki-dev] user profile Hi Duke, Stéphane Laurière of Mandriva has done some excellent work in this area. If I remember our discussion with Ludovic about this, its better to create a new class like maybe XWiki.UserProfile add your extra properties there and modify the forms to take the new fields into account. There may be some tricky stuff there. Stéphane do you have a simple example that Duke could use to get started ? This should be packaged in the default database I suppose. Luis. On 7/5/05, Duke Tantiprasut <[email protected]> wrote: Hi All, How do you modify the User Profile and add additional persistent properties? Do I modify the XWiki.XWikiUsers class? Also how do you retrieve these property values? Thanks. Duke -- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto: <mailto:[email protected]> [email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- Luis Arias http://www.xwiki.com http://www.innover-entreprendre.net <http://www.innover-entreprendre.net> +33 6 14 20 87 93 mobile
Hi, No this is not allowed yet.. Currently you can only rename a property.. To actually remove it you need to remove it from the xwikiclassesprop table If you want to help out on this you are most welcome ! You can add it as a JIRA task Ludovic Duke Tantiprasut a écrit :
Thanks guys.
Is it possible to remove existing properties from a class? I can rename / redefine it but I couldnt see a way to remove the fields.
Thanks.
Duke
------------------------------------------------------------------------ *From:* Luis Arias [mailto:[email protected]] *Sent:* Wednesday, July 06, 2005 3:02 AM *To:* [email protected] *Subject:* Re: [xwiki-dev] user profile
Hi Duke,
Stéphane Laurière of Mandriva has done some excellent work in this area. If I remember our discussion with Ludovic about this, its better to create a new class like maybe XWiki.UserProfile add your extra properties there and modify the forms to take the new fields into account. There may be some tricky stuff there. Stéphane do you have a simple example that Duke could use to get started ? This should be packaged in the default database I suppose.
Luis.
On 7/5/05, *Duke Tantiprasut* <[email protected] <mailto:[email protected]>> wrote:
Hi All,
How do you modify the User Profile and add additional persistent properties?
Do I modify the XWiki.XWikiUsers class?
Also how do you retrieve these property values?
Thanks.
Duke
-- You receive this message as a subscriber of the [email protected] <mailto:[email protected]> mailing list. To unsubscribe: mailto: [email protected] <mailto:[email protected]> For general help: mailto:[email protected] <mailto:[email protected]>?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Luis Arias http://www.xwiki.com http://www.innover-entreprendre.net <http://www.innover-entreprendre.net> +33 6 14 20 87 93 mobile
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
I'll add to the jira task.
-----Original Message----- From: Ludovic Dubost [mailto:[email protected]] Sent: Saturday, July 09, 2005 7:40 AM To: [email protected] Subject: Re: [xwiki-dev] user profile
Hi,
No this is not allowed yet.. Currently you can only rename a property.. To actually remove it you need to remove it from the xwikiclassesprop table
If you want to help out on this you are most welcome ! You can add it as a JIRA task
Ludovic
Duke Tantiprasut a écrit :
Thanks guys.
Is it possible to remove existing properties from a class? I can rename / redefine it but I couldnt see a way to remove the fields.
Thanks.
Duke
-------------------------------------------------------------- ----------
*From:* Luis Arias [mailto:[email protected]] *Sent:* Wednesday, July 06, 2005 3:02 AM *To:* [email protected] *Subject:* Re: [xwiki-dev] user profile
Hi Duke,
Stéphane Laurière of Mandriva has done some excellent
work in this
area. If I remember our discussion with Ludovic about this, its better to create a new class like maybe
XWiki.UserProfile add your
extra properties there and modify the forms to take the
new fields
into account. There may be some tricky stuff there.
Stéphane do
you have a simple example that Duke could use to get started ? This should be packaged in the default database I suppose.
Luis.
On 7/5/05, *Duke Tantiprasut* <[email protected] <mailto:[email protected]>> wrote:
Hi All,
How do you modify the User Profile and add additional persistent properties?
Do I modify the XWiki.XWikiUsers class?
Also how do you retrieve these property values?
Thanks.
Duke
-- You receive this message as a subscriber of the [email protected] <mailto:[email protected]> mailing list. To unsubscribe: mailto: [email protected] <mailto:[email protected]> For general help: mailto:[email protected] <mailto:[email protected]>?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Luis Arias http://www.xwiki.com http://www.innover-entreprendre.net <http://www.innover-entreprendre.net> +33 6 14 20 87 93 mobile
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
I'll add to the jira task.
-----Original Message----- From: Ludovic Dubost [mailto:[email protected]] Sent: Saturday, July 09, 2005 7:40 AM To: [email protected] Subject: Re: [xwiki-dev] user profile
Hi,
No this is not allowed yet.. Currently you can only rename a property.. To actually remove it you need to remove it from the xwikiclassesprop table
If you want to help out on this you are most welcome ! You can add it as a JIRA task
Ludovic
Duke Tantiprasut a écrit :
Thanks guys.
Is it possible to remove existing properties from a class? I can rename / redefine it but I couldnt see a way to remove the fields.
Thanks.
Duke
-------------------------------------------------------------- ----------
*From:* Luis Arias [mailto:[email protected]] *Sent:* Wednesday, July 06, 2005 3:02 AM *To:* [email protected] *Subject:* Re: [xwiki-dev] user profile
Hi Duke,
Stéphane Laurière of Mandriva has done some excellent
work in this
area. If I remember our discussion with Ludovic about this, its better to create a new class like maybe
XWiki.UserProfile add your
extra properties there and modify the forms to take the
new fields
into account. There may be some tricky stuff there.
Stéphane do
you have a simple example that Duke could use to get started ? This should be packaged in the default database I suppose.
Luis.
On 7/5/05, *Duke Tantiprasut* <[email protected] <mailto:[email protected]>> wrote:
Hi All,
How do you modify the User Profile and add additional persistent properties?
Do I modify the XWiki.XWikiUsers class?
Also how do you retrieve these property values?
Thanks.
Duke
-- You receive this message as a subscriber of the [email protected] <mailto:[email protected]> mailing list. To unsubscribe: mailto: [email protected] <mailto:[email protected]> For general help: mailto:[email protected] <mailto:[email protected]>?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Luis Arias http://www.xwiki.com http://www.innover-entreprendre.net <http://www.innover-entreprendre.net> +33 6 14 20 87 93 mobile
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
Hi Duke, Luis, Luis Arias wrote:
Hi Duke,
Stéphane Laurière of Mandriva has done some excellent work in this area. If I remember our discussion with Ludovic about this, its better to create a new class like maybe XWiki.UserProfile add your extra properties there and modify the forms to take the new fields into account. There may be some tricky stuff there. Stéphane do you have a simple example that Duke could use to get started ? This should be packaged in the default database I suppose.
Luis.
Sorry for the late answer. Actually what I did has consisted in creating an additional Hibernate mapping for storing XWikiUsers into a dedicated table, for various reasons. I've created a mapping for storing groups too. I'm at your disposal if you need something like this. Stéphane
Actually Stéphane, I'd be interested in seeing what you have done in this area. We are starting to look at setting up a generic way of giving a specific hibernate mapping to an XWiki Class. The objective would be to use that first for the user, groups and preferences. I think we will look to put a system in place that will speed up reading and writing of these core objects while still allowing to customize them and add properties You could publish the code on xwiki.org so we can have a look. Ludovic Stéphane Laurière a écrit :
Hi Duke, Luis,
Luis Arias wrote:
Hi Duke,
Stéphane Laurière of Mandriva has done some excellent work in this area. If I remember our discussion with Ludovic about this, its better to create a new class like maybe XWiki.UserProfile add your extra properties there and modify the forms to take the new fields into account. There may be some tricky stuff there. Stéphane do you have a simple example that Duke could use to get started ? This should be packaged in the default database I suppose.
Luis.
Sorry for the late answer. Actually what I did has consisted in creating an additional Hibernate mapping for storing XWikiUsers into a dedicated table, for various reasons. I've created a mapping for storing groups too. I'm at your disposal if you need something like this.
Stéphane
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
Ok great! I'll publish the code on xwiki.org web site in the next days. Stéphane Ludovic Dubost wrote:
Actually Stéphane,
I'd be interested in seeing what you have done in this area. We are starting to look at setting up a generic way of giving a specific hibernate mapping to an XWiki Class. The objective would be to use that first for the user, groups and preferences. I think we will look to put a system in place that will speed up reading and writing of these core objects while still allowing to customize them and add properties
You could publish the code on xwiki.org so we can have a look.
Ludovic
Stéphane Laurière a écrit :
Hi Duke, Luis,
Luis Arias wrote:
Hi Duke,
Stéphane Laurière of Mandriva has done some excellent work in this area. If I remember our discussion with Ludovic about this, its better to create a new class like maybe XWiki.UserProfile add your extra properties there and modify the forms to take the new fields into account. There may be some tricky stuff there. Stéphane do you have a simple example that Duke could use to get started ? This should be packaged in the default database I suppose.
Luis.
Sorry for the late answer. Actually what I did has consisted in creating an additional Hibernate mapping for storing XWikiUsers into a dedicated table, for various reasons. I've created a mapping for storing groups too. I'm at your disposal if you need something like this.
Stéphane
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
I've uploaded what has been done on our side for storing user and groups in specific tables: http://www.xwiki.org/xwiki/bin/view/Dev/Storing+users+and+groups+in+dedicate... I've added also the scripts we use for managing the contents of this tables from the web interface (quite rudimentary though). Feel free to ask if something is unclear of course! As there is not much comments I'm afraid. Stéphane
participants (4)
-
Duke Tantiprasut -
Ludovic Dubost -
Luis Arias -
Stéphane Laurière