Package lumis.portal.analytics.event
Class EventContext
- java.lang.Object
-
- lumis.portal.analytics.event.EventContext
-
- All Implemented Interfaces:
java.lang.Cloneable
public class EventContext extends java.lang.Object implements java.lang.Cloneable
Event context.- Since:
- 17.0.0
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description EventContext(java.lang.String monitorUserId, java.util.Map<java.lang.String,java.lang.Object> eventAttributes, java.util.Date date)
Creates a new instance.EventContext(IMonitorEvent event, java.util.Deque<IMonitorValuesProvider> monitoringValues, Document document)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventContext
clone()
java.util.Date
getDate()
Returns the event date.java.util.Map<java.lang.String,java.lang.Object>
getEventAttributes()
Returns the eventAttributes.MonitorUser
getUser()
Returns the user.
-
-
-
Constructor Detail
-
EventContext
public EventContext(IMonitorEvent event, java.util.Deque<IMonitorValuesProvider> monitoringValues, Document document) throws PortalException
Creates a new instance.- Parameters:
event
- the event being executed.monitoringValues
- the event data.document
- the event document.- Throws:
PortalException
- Since:
- 17.0.0
-
EventContext
public EventContext(java.lang.String monitorUserId, java.util.Map<java.lang.String,java.lang.Object> eventAttributes, java.util.Date date)
Creates a new instance. Used only for testing.
This constructor is meant to testing purpose only.- Parameters:
monitorUserId
- the monitor user id.eventAttributes
- the event data.- Since:
- 17.0.0
-
-
Method Detail
-
getDate
public java.util.Date getDate() throws PortalException
Returns the event date.- Returns:
- the event date.
- Throws:
PortalException
- Since:
- 17.0.0
-
getUser
public MonitorUser getUser() throws PortalException
Returns the user.- Returns:
- the user
- Throws:
PortalException
- Since:
- 17.0.0
-
getEventAttributes
public java.util.Map<java.lang.String,java.lang.Object> getEventAttributes()
Returns the eventAttributes.- Returns:
- the eventAttributes
- Since:
- 17.0.0
-
clone
public EventContext clone()
- Overrides:
clone
in classjava.lang.Object
-
-