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

Alex Ballesté alexandre.balleste at udl.cat
Mon Oct 10 03:31:29 PDT 2011


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 at 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 at 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
> http://collab.sakaiproject.org/mailman/listinfo/spanish-sakai
>
> TO UNSUBSCRIBE: send email to spanish-sakai-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"


-- 
Alexandre Ballesté Crevillén    alex at 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
===================================================

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


More information about the spanish-sakai mailing list