EventLog

public class EventLog

The EventLog class represents a single, logged event record, that is persisted in the database.

Constructors

EventLog

public EventLog()

Creates a new instance of EventLog, with all fields set to null.

EventLog

public EventLog(String subject, Map<String, Object> parameters, DateTime timeStamp)

Creates a new instance of EventLog, with all fields set to the values specified in the parameters.

Parameters:
  • subject – the event subject
  • parameters – map of key-value pairs representing the event parameters
  • timeStamp – the date/time at which the event occurred

Methods

getParameters

public Map<String, Object> getParameters()

Gets the event parameters.

Returns:map of key-value pairs representing the event parameters

getSubject

public String getSubject()

Gets the event subject.

Returns:the event subject

getTimeStamp

public DateTime getTimeStamp()

Gets the event timestamp.

Returns:the date/time at which the event occurred

setParameters

public void setParameters(Map<String, Object> parameters)

Sets the event parameters.

Parameters:
  • parameters – map of key-value pairs representing the event parameters

setSubject

public void setSubject(String subject)

Sets the event subject.

Parameters:
  • subject – the event subject

setTimeStamp

public void setTimeStamp(DateTime timeStamp)

Sets the event timestamp.

Parameters:
  • timeStamp – the date/time at which the event occurred