Package io.ebean.event.readaudit
Class ReadEvent
- java.lang.Object
-
- io.ebean.event.readaudit.ReadEvent
-
-
Constructor Summary
Constructors Constructor Description ReadEvent()
Constructor for JSON tools.ReadEvent(String beanType)
Construct for many future list query.ReadEvent(String beanType, String queryKey, String bindLog, Object id)
Construct for a single bean read.ReadEvent(String beanType, String queryKey, String bindLog, List<Object> ids)
Construct for many beans read.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBeanType()
Return the type of bean read.String
getBindLog()
Return the bind log used when executing the query.long
getEventTime()
Return the event date time.Object
getId()
Return the id of the bean read.List<Object>
getIds()
Return the ids of the beans read.String
getQueryKey()
Return the query key (relative to the bean type).String
getSource()
Return a code that identifies the source of the change (like the name of the application).Map<String,String>
getUserContext()
Return a user context value - anything you set yourself in ChangeLogListener prepare().String
getUserId()
Return the application user Id.String
getUserIpAddress()
Return the application users ip address.void
setBeanType(String beanType)
Set the type of bean read.void
setBindLog(String bindLog)
Set the bind log used when executing the query.void
setEventTime(long eventTime)
Set the event date time.void
setId(Object id)
Set the id of the bean read.void
setIds(List<Object> ids)
Set the ids of the beans read.void
setQueryKey(String queryKey)
Set the query key (relative to the bean type).void
setSource(String source)
Set the source of the change (like the name of the application).void
setUserContext(Map<String,String> userContext)
Set a user context value (anything you like).void
setUserId(String userId)
Set the application user Id.void
setUserIpAddress(String userIpAddress)
Set the application users ip address.
-
-
-
Constructor Detail
-
ReadEvent
public ReadEvent(String beanType, String queryKey, String bindLog, Object id)
Construct for a single bean read.
-
ReadEvent
public ReadEvent(String beanType, String queryKey, String bindLog, List<Object> ids)
Construct for many beans read.
-
ReadEvent
public ReadEvent()
Constructor for JSON tools.
-
-
Method Detail
-
getSource
public String getSource()
Return a code that identifies the source of the change (like the name of the application).
-
setSource
public void setSource(String source)
Set the source of the change (like the name of the application).
-
setUserId
public void setUserId(String userId)
Set the application user Id.This can be set by the ChangeLogListener in the prepare() method which is called in the foreground thread.
-
getUserIpAddress
public String getUserIpAddress()
Return the application users ip address.
-
setUserIpAddress
public void setUserIpAddress(String userIpAddress)
Set the application users ip address.This can be set by the ChangeLogListener in the prepare() method which is called in the foreground thread.
-
getUserContext
public Map<String,String> getUserContext()
Return a user context value - anything you set yourself in ChangeLogListener prepare().
-
setUserContext
public void setUserContext(Map<String,String> userContext)
Set a user context value (anything you like).This can be set by the ChangeLogListener in the prepare() method which is called in the foreground thread.
-
getBeanType
public String getBeanType()
Return the type of bean read.
-
setBeanType
public void setBeanType(String beanType)
Set the type of bean read.
-
getQueryKey
public String getQueryKey()
Return the query key (relative to the bean type).
-
setQueryKey
public void setQueryKey(String queryKey)
Set the query key (relative to the bean type).
-
getBindLog
public String getBindLog()
Return the bind log used when executing the query.
-
setBindLog
public void setBindLog(String bindLog)
Set the bind log used when executing the query.
-
getEventTime
public long getEventTime()
Return the event date time.
-
setEventTime
public void setEventTime(long eventTime)
Set the event date time.
-
-