[Building Sakai] request for review: KNL-498 get last event time for a user

Dunstall, Christopher cdunstall at csu.edu.au
Mon May 17 21:32:57 PDT 2010


Sounds like a great idea and something that could be useable in future tools.

+1

Chris Dunstall | Service Support - Applications
Technology Integration/OLE Virtual Team
Division of Information Technology | Charles Sturt University | Bathurst, NSW

Ph: 02 63384818 | Fax: 02 63384181

From: sakai-dev-bounces at collab.sakaiproject.org [mailto:sakai-dev-bounces at collab.sakaiproject.org] On Behalf Of Steve Swinsburg
Sent: Tuesday, 18 May 2010 11:31 AM
To: sakai-dev Developers
Subject: [Building Sakai] request for review: KNL-498, get last event time for a user

Hi all,

I would like your feedback on two new methods I propose to add to the EventTrackingService in order to retrieve the last event time for a user/set of users. This is an addition that will be used by the Profile2 connections entity provider. Used in conjunction with KNL-497 (see if a user has an active session, already committed) you will be able to see if your connections are online and if they are active/idle (ie no event in the last x minutes = idle).

This entity provider will also be used by the floating chat widget we are prototyping.

http://jira.sakaiproject.org/browse/KNL-498

A patch is attached to the JIRA ticket for your perusal, and the methods are below:

/**
* Get last event time for the given user
*
* @param userId userId to check
* @return time of event as Long, null if no event.
*/
Long getLastEventTimeForUser(String userId);

/**
* Get last event time for the given list of users
*
* @param userIds List of userId's to check
* @return map of userId and time of last event. If no event, there will be no entry in the map for that user.
*/
Map<String, Long> getLastEventTimeForUsers(List<String> userIds);


thanks,
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100518/6dd6ceee/attachment.html 


More information about the sakai-dev mailing list