[DG: Spanish Sakai] como obtener el identificar del usuario sakai
Alex Ballesté
alexandre.balleste at udl.cat
Mon Oct 10 03:11:18 PDT 2011
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
===================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/spanish-sakai/attachments/20111010/9d1611e9/attachment.html
More information about the spanish-sakai
mailing list