Object
Helper methods for dispatching Behavior Tracking events to the Event Service.
Object
TrackingEventHelper
Constructor Summary |
Method Summary |
public static void |
|
public static void |
|
public static void |
|
public static void |
|
public static void |
|
public static void |
|
public static void |
|
public static void |
|
public static void |
|
public static |
|
public static |
|
public static |
|
public static |
|
Methods from class java.lang. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TrackingEventHelper()
Method Detail |
DEPRECATED Use EventService.dispatchEvent(Event theEvent).
public static void dispatchEvent(Event theEvent)
Dispatch an event, looking up the EventService EJB each time.
It is recommended that the caller instead get an instance of the
EventServiceBean using TrackingEventHelperImpl.getEventService(),
then call TrackingEventHelperImpl.dispatchEvent()
with with that EventServiceBean.
To enable debugging for monitoring event firing, set this in debug.properties:
com.bea.p13n.tracking.TrackingEventHelperImpl: on
public static void dispatchEvent(Fire the event, passing in the reference of the EventService EJB. To enable debugging for monitoring event firing, set this in debug.properties:EventServiceeventService,Eventevt)
com.bea.p13n.tracking.TrackingEventHelperImpl: on
public static void dispatchEvent(Dispatch an event using an EventService that is cached in theRequest. To enable debugging for monitoring event firing, set this in debug.properties:HttpServletRequesttheRequest,EventtheEvent)
com.bea.p13n.tracking.TrackingEventHelperImpl: on
public static void dispatchSessionLoginEvent(Utility method to dispatch a SessionLoginEvent for the specified userId, if it hasn't been done already.HttpServletRequesttheRequest,StringuserId)
public static void dispatchSessionLoginEvent(HttpServletRequest theRequest)
Utility method to dispatch a SessionLoginEvent for the user logged
into the given servlet request, if it hasn't been done already.
Related Topics
TrackingEventHelper.getUserId(HttpServletRequest)
public static void dispatchSessionLoginEvent(Utility method to dispatch a SessionLoginEvent for the user logged into the given servlet request, if it hasn't been done already.HttpSessionsession,StringuserId)
Related Topics
TrackingEventHelper.getUserId(HttpServletRequest)
public static void dispatchUserRegistrationEvent(Utility method to dispatch a UserRegistrationEvent for the specified user, if it hasn't been done already.HttpServletRequestrequest,StringnewUserId,UserRegistrationEventevt)
public static void dispatchUserRegistrationEvent(Utility method to dispatch a UserRegistrationEvent for the specified user, if it hasn't been done already.HttpServletRequestrequest,StringnewUserId)
public static void dispatchUserRegistrationEvent(HttpServletRequest request)
Utility method to dispatch a UserRegistrationEvent for the user logged
into the given servlet request, if it hasn't been done already.
Related Topics
TrackingEventHelper.getUserId(HttpServletRequest)
public staticGet an instance of the EventService EJB. This class (Helper) should not be responsible for caching instances of the EventService EJB. That should be done by the calling application.EventServicegetEventService()
throwsException
This API will use the ApplicationHelper to get the application name and prepend it to .BEA_personalization.EventService to do the JNDI lookup. If the JNDI lookup name is known (such as an ejb-ref), then use the getEventService(String lookup) API.
Exception
public staticGet an instance of the EventService EJB. This class (Helper) should not be responsible for caching instances of the EventService EJB. That should be done by the calling application.EventServicegetEventService(Stringlookup)
throwsException
This API will use the ApplicationHelper to get the application name and prepend it to .BEA_personalization.EventService to do the JNDI lookup. If the JNDI lookup name is not known, then use the getEventService() API.
Exception
public staticGet a new event service instance and set it in theRequest for later event dispatching.EventServicegetEventService(HttpServletRequesttheRequest)
throwsRemoteException,Exception
RemoteException
Exception
public staticReturn the user id of the currently logged in user (i.e. the user associated to the thread, not neccessarily the request's remote user).StringgetUserId(HttpServletRequestreq)