[DG: Spanish Sakai] como obtener el identificar del usuario sakai

Alex Balleste alexandre.balleste at udl.cat
Mon Oct 10 08:45:32 PDT 2011


  Diría que en el web.xml lo especificas como parámetro en los 
diferentes servlets.

Si alguien ve que me equivoco, por favor corregidme.


Al 10/10/11 16:16, En/na dani ha escrit:
> y sabes si existe algún truco para saber cual es el vm que corresponde 
> a cada pagina que se muestra,porque no soy capaz de ver donde se pinta 
> la pagina correspondiente.
> Saludos y muchas gracias
>
> El 10 de octubre de 2011 15:53, Alex Balleste 
> <alexandre.balleste at udl.cat <mailto:alexandre.balleste at udl.cat>> escribió:
>
>     Pues así de memoria no sé, pero diría que lo tienes que hacer en
>     el código y si lo necesitas en el VM debes pasarlo por el contexto
>     el la función que construye la interficie. En cada función
>     build... (ej. buildMainViewContext, buildMainMenuContext, ...)
>     verás como se le pasa los objetos necesarios a la plantilla VM
>     para que esta pueda acceder a los objetos. Allí simplemente puedes
>     usarla con el nombre que le hayas registrado.
>
>     No se si te habré ayudado o liado un poco más.
>
>     Saludos
>
>
>
>
>     Al 10/10/11 12:36, En/na dani ha escrit:
>>     A estos servicios ,solo se puede acceder desde dentro de la
>>     aplicación verdad?si quisiera acceder desde otra aplicación seria
>>     posible?
>>
>>     El 10 de octubre de 2011 12:31, Alex Ballesté
>>     <alexandre.balleste at udl.cat <mailto:alexandre.balleste at udl.cat>>
>>     escribió:
>>
>>         Faltaria puntualizar que el uso de esos servicios en modo
>>         cover estan "deprecated". No se recomienda usarlos (aunque a
>>         mi personalment me encantan).
>>
>>         Tendrias que cargar la configuracion via beans, con la ayuda
>>         del ComponentManager.
>>         Puedes ver como hacerlo en:
>>         https://confluence.sakaiproject.org/display/BOOT/Using+the+Sakai+ComponentManager+to+access+Sakai+Services
>>
>>         Saludos
>>         Al 10/10/11 12:11, En/na Alex Ballesté ha escrit:
>>>         User currentUser = UserDirectoryService.getCurrentUser();
>>>         String userId = currentUser.getId();
>>>
>>>         o
>>>
>>>         UsageSession uses = UsageSessionService.getSession();
>>>         String idreal = uses.getUserId();
>>>
>>>         o si cargas el servicio de helper:
>>>
>>>         private DeveloperHelperService developerHelperService = null
>>>         String userId = developerHelperService.getCurrentUserId()
>>>
>>>         Saludos
>>>>
>>>>
>>>>
>>>>         Al 10/10/11 11:09, En/na dani ha escrit:
>>>>>         Buenos días,
>>>>>         Necesito saber como se puede obtener el identificador del
>>>>>         usuario desde codigo,no se si existira alguna variable ya
>>>>>         creada de velocity o algo asi desde la que se pueda acceder.
>>>>>         Saludos y muchas gracias
>>>>>
>>>>>         _______________________________________________
>>>>>         spanish-sakai mailing list
>>>>>         spanish-sakai at collab.sakaiproject.org  <mailto:spanish-sakai at collab.sakaiproject.org>
>>>>>         http://collab.sakaiproject.org/mailman/listinfo/spanish-sakai
>>>>>
>>>>>         TO UNSUBSCRIBE: send email tospanish-sakai-unsubscribe at collab.sakaiproject.org  <mailto:spanish-sakai-unsubscribe at collab.sakaiproject.org>  with a subject of "unsubscribe"
>>>>
>>>>
>>>>         -- 
>>>>         Alexandre Ballesté Crevillén    alex atasic.udl.cat  <http://asic.udl.cat>
>>>>         ===================================================
>>>>         Àrea de sistemes d'informació i comunicacions
>>>>         Universitat de Lleida
>>>>
>>>>         Information and Communications Systems Service
>>>>         University of Lleida
>>>>
>>>>         Pça. Víctor Siurana,1   25003 Lleida SPAIN
>>>>         Tlfn: 34 973 702148
>>>>         ===================================================
>>>>            
>>>
>>>
>>>         -- 
>>>         Alexandre Ballesté Crevillén    alex atasic.udl.cat  <http://asic.udl.cat>
>>>         ===================================================
>>>         Àrea de sistemes d'informació i comunicacions
>>>         Universitat de Lleida
>>>
>>>         Information and Communications Systems Service
>>>         University of Lleida
>>>
>>>         Pça. Víctor Siurana,1   25003 Lleida SPAIN
>>>         Tlfn: 34 973 702148
>>>         ===================================================
>>>            
>>>
>>>
>>>         _______________________________________________
>>>         spanish-sakai mailing list
>>>         spanish-sakai at collab.sakaiproject.org  <mailto:spanish-sakai at collab.sakaiproject.org>
>>>         http://collab.sakaiproject.org/mailman/listinfo/spanish-sakai
>>>
>>>         TO UNSUBSCRIBE: send email tospanish-sakai-unsubscribe at collab.sakaiproject.org  <mailto:spanish-sakai-unsubscribe at collab.sakaiproject.org>  with a subject of "unsubscribe"
>>
>>
>>         -- 
>>         Alexandre Ballesté Crevillén    alex atasic.udl.cat  <http://asic.udl.cat>
>>         ===================================================
>>         Àrea de sistemes d'informació i comunicacions
>>         Universitat de Lleida
>>
>>         Information and Communications Systems Service
>>         University of Lleida
>>
>>         Pça. Víctor Siurana,1   25003 Lleida SPAIN
>>         Tlfn: 34 973 702148
>>         ===================================================
>>
>>
>>         _______________________________________________
>>         spanish-sakai mailing list
>>         spanish-sakai at collab.sakaiproject.org
>>         <mailto:spanish-sakai at collab.sakaiproject.org>
>>         http://collab.sakaiproject.org/mailman/listinfo/spanish-sakai
>>
>>         TO UNSUBSCRIBE: send email to
>>         spanish-sakai-unsubscribe at collab.sakaiproject.org
>>         <mailto:spanish-sakai-unsubscribe at collab.sakaiproject.org>
>>         with a subject of "unsubscribe"
>>
>>
>>
>>     _______________________________________________
>>     spanish-sakai mailing list
>>     spanish-sakai at collab.sakaiproject.org  <mailto:spanish-sakai at collab.sakaiproject.org>
>>     http://collab.sakaiproject.org/mailman/listinfo/spanish-sakai
>>
>>     TO UNSUBSCRIBE: send email tospanish-sakai-unsubscribe at collab.sakaiproject.org  <mailto:spanish-sakai-unsubscribe at collab.sakaiproject.org>  with a subject of "unsubscribe"
>
>
>     _______________________________________________
>     spanish-sakai mailing list
>     spanish-sakai at collab.sakaiproject.org
>     <mailto:spanish-sakai at collab.sakaiproject.org>
>     http://collab.sakaiproject.org/mailman/listinfo/spanish-sakai
>
>     TO UNSUBSCRIBE: send email to
>     spanish-sakai-unsubscribe at collab.sakaiproject.org
>     <mailto:spanish-sakai-unsubscribe at collab.sakaiproject.org> with a
>     subject of "unsubscribe"
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/spanish-sakai/attachments/20111010/98644942/attachment.html 


More information about the spanish-sakai mailing list