[Building Sakai] Modify sakai user entity (sakai.kernel-1.2.8)

John Bush john.bush at rsmart.com
Thu Jan 31 21:25:18 PST 2013


Even in the cases where this can't be the EID, maybe you have 2 or 3 ids
you need to store, there are still other options. For example, as has
already been brought up you can certainly store all this stuff as
userProperties which is typically what most people do.  If you have some
front end requirements to display this stuff, you could even implement
a ContextualUserDisplayService depending on what you are trying to do.

Unless you are planning on never upgrading and you want to just fork it for
the task at hand, you definitely want to think about doing things the right
way so that saves you pain down the road.




On Thu, Jan 31, 2013 at 10:09 AM, Mark J. Norton
<markjnorton at earthlink.net>wrote:

>  You indicated in your first post that you were trying to create a
> "fiscal id".  Is this the same as the Enterprise Identifier (EID).  If this
> identifier is associated with a specific user, then you should be using the
> EID.  That's what it's for.  Perhaps you could tell us a bit more about
> what you are trying to accomplish?
>
> - Mark
>
>
> On 1/31/2013 11:54 AM, Alvaro Navarro Iborra wrote:
>
>
> 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><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* <http://disclaimer.diacorporate.com/>
>
>
>
> _______________________________________________
> 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"
>



-- 
John Bush
602-490-0470
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130131/95679ab0/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/95679ab0/attachment.jpe 


More information about the sakai-dev mailing list