From: Naomi M. <na...@sm...> - 2006-10-19 09:49:57
|
That's what I kind of thought, just thought I'd check. We're trying to set up reports, so that users can display who's been doing what in their various rooms. So, we're pulling back all the Events for a particular resource and then building up xml to display events per resource. Something like: >> <resource id="1234"> >> <user id="eo01nm"> >> <event code="1" time="2005-01-19 14:58:32" /> >> </user> >> </resouce> But we really need the type of event otherwise the event code is meaningless. Cheers, N. On 19 Oct 2006, at 10:41, Matthew Buckett wrote: > Naomi Miles wrote: >> Quick q. I'm retrieving all Events for a resource. Is there a quick >> way of finding out what type of Event they may be e.g. >> NavigationEvent, LogBookEvent etc > > if (event instanceof NavigationEvent) { > blah... > } > > Event if you got the events through Event.findxxxx() they should be > the > correct object type when returned. If you are only wanting one type of > events could you just use NavigationEvent.findxxxx() or create it > if it > doesn't exist? > > Most of the time code just wants to be able to call methods in Event > API. Could you explain what you are trying todo when with all the > events > for a resource? > > -- > -- Matthew Buckett, VLE Developer > -- Learning Technologies Group, Oxford University Computing Services > -- Tel: +44 (0)1865 283660 http://www.oucs.ox.ac.uk/ltg/ > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Bodington-developers mailing list > Bod...@li... > https://lists.sourceforge.net/lists/listinfo/bodington-developers |