[Building Sakai] Modify sakai user entity (sakai.kernel-1.2.8)
Alvaro Navarro Iborra
alvaro.navarro at diagroup.com
Thu Jan 31 08:54:53 PST 2013
Thank you very much for the information. I'm considering use this option
but I would like
to know if I will can do other requirements requested.
For example, it's needed in the sakai-user-tool to modify the vm templates
(chef_users_list.vm,
chef_users_create.vm, chef_users_edit.vm, chef_users_view.vm).
In users list page the new field must be added to the table and the filter
must be extended
adding a new field for filtering by nif (fiscal id).
Also, in the edit and create user page the new filed should have a
validation.
Is it possible to do all this thing using the User's ResourceProperties
(SAKAI_USER_PROPERTY)?
"Mark J. Norton" <markjnorton at earthlink.net>
Enviado por: sakai-dev-bounces at collab.sakaiproject.org
31/01/2013 16:50
Para
sakai-dev at collab.sakaiproject.org
cc
Asunto
Re: [Building Sakai] Modify sakai user entity (sakai.kernel-1.2.8)
I agree. Changing the database table definitions is strongly
discouraged. It would screw up all sorts of things.
- Mark
On 1/31/2013 10:02 AM, Matthew Buckett wrote:
>> I need to change the sakai-kernel module (1.2.8).
>> It's required alter the SAKAI_USER table in database and all logic and
>> services associated.
>> It's needed to add a new field called NIF (fiscal id).
> The easiest solution is normally to use the User's ResourceProperties
> to store this information. For users saved in Sakai's DB you can just
> add the additional properties with something like:
>
> User user = UserDirectoryService.editUser('userId");
> user.getProperties().addProperty("NIF", "1234");
> UserDirectoryService.commitEdit(user);
>
_______________________________________________
sakai-dev mailing list
sakai-dev at collab.sakaiproject.org
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
TO UNSUBSCRIBE: send email to
sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
"unsubscribe"
This e-mail and any attachment are confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. Unauthorized publication, use, dissemination, forwarding, printing or copying of this e-mail and its associated attachments is strictly prohibited.
http://disclaimer.diacorporate.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130131/059b3353/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 2599 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130131/059b3353/attachment.jpe
More information about the sakai-dev
mailing list