public class EventData
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
EventData() |
EventData(java.lang.String type,
Member actor,
int opAction,
Data data) |
EventData(java.lang.String type,
Member actor,
java.lang.String action,
Data data,
javax.servlet.http.HttpServletRequest request) |
EventData(java.lang.String type,
Member actor,
java.lang.String action,
Data data,
javax.servlet.http.HttpServletRequest request,
long eventDate) |
EventData(java.lang.String type,
Member actor,
java.lang.String action,
Data data,
javax.servlet.http.HttpServletRequest request,
long startDate,
long endDate,
long eventDate) |
EventData(java.lang.String type,
Member actor,
java.lang.String action,
java.lang.String dataId,
java.lang.String dataClass,
long eventDate,
java.lang.String urid,
long startDate,
long endDate) |
EventData(java.lang.String type,
java.lang.String action)
Create eventData for some core action (like CSRF error, RSS access, OpenAPI access, AuthFail, ...)
|
Modifier and Type | Method and Description |
---|---|
void |
addContext(java.util.Map<java.lang.String,java.lang.String> tmpContext) |
java.lang.String |
getAction() |
Member |
getActor() |
java.util.Map<java.lang.String,java.lang.String> |
getContext() |
Data |
getData() |
long |
getDate() |
long |
getEndDate() |
java.lang.String |
getObjectClass() |
java.lang.String |
getObjectId() |
java.lang.Class |
getRealObjectClass()
Compute real class from object class string
|
long |
getStartDate() |
java.lang.String |
getType() |
java.lang.String |
getUrid() |
boolean |
isAccess()
Indicates if this event has the type
AnalyticsManager.ACCESS |
boolean |
isCore()
Indicates if this event has the type
AnalyticsManager.CORE |
boolean |
isCreate()
returns true if the eventData is a creation event (op is Create and DeepCopy), false otherwise
|
boolean |
isDelete()
returns true if the eventData is a delete event (op is Delete and DeepDelete), false otherwise
|
boolean |
isInstanceOf(java.lang.Class clazz)
returns true if the
EventData is about the provided class |
boolean |
isOpenApi()
Indicates if this event has the type
AnalyticsManager.OPENAPI |
boolean |
isType(java.lang.String type)
Indicates if this event has the provided type
|
boolean |
isUpdate()
returns true if the eventData is a update event (op is Update and Merge), false otherwise
|
void |
setAction(java.lang.String action) |
void |
setActor(Member actor) |
void |
setContext(java.util.Map<java.lang.String,java.lang.String> context) |
void |
setData(Data data) |
void |
setDate(long date) |
void |
setEndDate(long endDate) |
void |
setObjectClass(java.lang.String objectClass) |
void |
setObjectId(java.lang.String objectId) |
void |
setStartDate(long startDate) |
void |
setType(java.lang.String type) |
void |
setUrid(java.lang.String urid) |
java.lang.String |
toString() |
public EventData()
public EventData(java.lang.String type, Member actor, java.lang.String action, Data data, javax.servlet.http.HttpServletRequest request)
public EventData(java.lang.String type, Member actor, java.lang.String action, Data data, javax.servlet.http.HttpServletRequest request, long eventDate)
public EventData(java.lang.String type, Member actor, java.lang.String action, Data data, javax.servlet.http.HttpServletRequest request, long startDate, long endDate, long eventDate)
public EventData(java.lang.String type, Member actor, java.lang.String action, java.lang.String dataId, java.lang.String dataClass, long eventDate, java.lang.String urid, long startDate, long endDate)
public EventData(java.lang.String type, java.lang.String action)
type
- the type of the EventData
(often AnalyticsManager.CORE
)action
- the action of the EventData
(like AnalyticsManager.CSRF_ERROR
or AnalyticsManager.AUTH_FAIL
)public void setData(Data data)
public Data getData()
public java.lang.String getType()
public void setType(java.lang.String type)
type
- the type to setpublic Member getActor()
public void setActor(Member actor)
actor
- the actor to setpublic java.lang.String getAction()
public void setAction(java.lang.String action)
action
- the action to setpublic java.lang.String getObjectId()
public void setObjectId(java.lang.String objectId)
objectId
- the objectId to setpublic java.lang.String getObjectClass()
public void setObjectClass(java.lang.String objectClass)
objectClass
- the objectClass to setpublic java.util.Map<java.lang.String,java.lang.String> getContext()
public void setContext(java.util.Map<java.lang.String,java.lang.String> context)
context
- the context to setpublic long getDate()
public void setDate(long date)
date
- the date to setpublic long getStartDate()
public void setStartDate(long startDate)
startDate
- the startDate to setpublic long getEndDate()
public void setEndDate(long endDate)
endDate
- the endDate to setpublic java.lang.String getUrid()
public void setUrid(java.lang.String urid)
urid
- the urid to setpublic void addContext(java.util.Map<java.lang.String,java.lang.String> tmpContext)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isType(java.lang.String type)
type
- the type to checkpublic boolean isCore()
AnalyticsManager.CORE
AnalyticsManager.CORE
public boolean isAccess()
AnalyticsManager.ACCESS
AnalyticsManager.ACCESS
public boolean isOpenApi()
AnalyticsManager.OPENAPI
AnalyticsManager.OPENAPI
public boolean isCreate()
public boolean isDelete()
public boolean isUpdate()
public boolean isInstanceOf(java.lang.Class clazz)
EventData
is about the provided classclazz
- the Class
to checkEventData
is about the provided classpublic java.lang.Class getRealObjectClass()
Copyright © 2001-2010 Jalios SA. All Rights Reserved.