|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.p13n.tracking.TrackingEventHelper
public class TrackingEventHelper
Helper methods for dispatching Behavior Tracking events to the Event Service.
Constructor Summary | |
---|---|
TrackingEventHelper()
|
Method Summary | |
---|---|
static void |
dispatchEvent(Event theEvent)
Deprecated Use EventService.dispatchEvent(Event theEvent). |
static void |
dispatchEvent(EventService eventService,
Event evt)
Fire the event, passing in the reference of the EventService EJB. |
static void |
dispatchEvent(javax.servlet.http.HttpServletRequest theRequest,
Event theEvent)
Dispatch an event using an EventService that is cached in theRequest. |
static void |
dispatchSessionLoginEvent(javax.servlet.http.HttpServletRequest theRequest)
Utility method to dispatch a SessionLoginEvent for the user logged into the given servlet request, if it hasn't been done already. |
static void |
dispatchSessionLoginEvent(javax.servlet.http.HttpServletRequest theRequest,
String userId)
Utility method to dispatch a SessionLoginEvent for the specified userId, if it hasn't been done already. |
static void |
dispatchSessionLoginEvent(javax.servlet.http.HttpSession session,
String userId)
Utility method to dispatch a SessionLoginEvent for the user logged into the given servlet request, if it hasn't been done already. |
static void |
dispatchUserRegistrationEvent(javax.servlet.http.HttpServletRequest request)
Utility method to dispatch a UserRegistrationEvent for the user logged into the given servlet request, if it hasn't been done already. |
static void |
dispatchUserRegistrationEvent(javax.servlet.http.HttpServletRequest request,
String newUserId)
Utility method to dispatch a UserRegistrationEvent for the specified user, if it hasn't been done already. |
static void |
dispatchUserRegistrationEvent(javax.servlet.http.HttpServletRequest request,
String newUserId,
UserRegistrationEvent evt)
Utility method to dispatch a UserRegistrationEvent for the specified user, if it hasn't been done already. |
static EventService |
getEventService()
Get an instance of the EventService EJB. |
static EventService |
getEventService(javax.servlet.http.HttpServletRequest theRequest)
Get a new event service instance and set it in theRequest for later event dispatching. |
static EventService |
getEventService(String lookup)
Get an instance of the EventService EJB. |
static String |
getUserId(javax.servlet.http.HttpServletRequest req)
Return the user id of the currently logged in user (i.e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TrackingEventHelper()
Method Detail |
---|
public static void dispatchEvent(Event theEvent)
To enable debugging for monitoring event firing, set this in debug.properties:
com.bea.p13n.tracking.TrackingEventHelperImpl: on
public static void dispatchEvent(EventService eventService, Event evt)
com.bea.p13n.tracking.TrackingEventHelperImpl: on
public static void dispatchEvent(javax.servlet.http.HttpServletRequest theRequest, Event theEvent)
com.bea.p13n.tracking.TrackingEventHelperImpl: on
public static EventService getEventService() throws Exception
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 static EventService getEventService(String lookup) throws Exception
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.
lookup
- The JNDI lookup name
Exception
public static EventService getEventService(javax.servlet.http.HttpServletRequest theRequest) throws RemoteException, Exception
RemoteException
Exception
public static String getUserId(javax.servlet.http.HttpServletRequest req)
public static void dispatchSessionLoginEvent(javax.servlet.http.HttpServletRequest theRequest, String userId)
theRequest
- the http servlet request the event is generating from.userId
- the user id to generate the event for.public static void dispatchSessionLoginEvent(javax.servlet.http.HttpServletRequest theRequest)
theRequest
- the http servlet request the event is generating from.getUserId(javax.servlet.http.HttpServletRequest)
public static void dispatchSessionLoginEvent(javax.servlet.http.HttpSession session, String userId)
session
- the http servlet session the event is generating from.getUserId(javax.servlet.http.HttpServletRequest)
public static void dispatchUserRegistrationEvent(javax.servlet.http.HttpServletRequest request, String newUserId, UserRegistrationEvent evt)
request
- the http servlet request the event is generating from.newUserId
- the user id to generate the event for.evt
- the event to fire.public static void dispatchUserRegistrationEvent(javax.servlet.http.HttpServletRequest request, String newUserId)
request
- the http servlet request the event is generating from.newUserId
- the user id to generate the event for.public static void dispatchUserRegistrationEvent(javax.servlet.http.HttpServletRequest request)
request
- the http servlet request the event is generating from.getUserId(javax.servlet.http.HttpServletRequest)
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |