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

dani danielhock00000 at gmail.com
Mon Oct 10 03:36:30 PDT 2011


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>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 listspanish-sakai at collab.sakaiproject.orghttp://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
> ===================================================
>
>
>
>
> --
> 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 listspanish-sakai at collab.sakaiproject.orghttp://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
> ===================================================
>
>
> _______________________________________________
> 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"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/spanish-sakai/attachments/20111010/9eb10492/attachment-0001.html 


More information about the spanish-sakai mailing list