public abstract class AbstractDatabaseEventLoggerEventHandler extends Object implements EventLoggerEventHandler
Modifier and Type | Field and Description |
---|---|
protected ActivitiEvent |
event |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected Date |
timeStamp |
Constructor and Description |
---|
AbstractDatabaseEventLoggerEventHandler() |
Modifier and Type | Method and Description |
---|---|
protected EventLogEntryEntity |
createEventLogEntry(Map<String,Object> data) |
protected EventLogEntryEntity |
createEventLogEntry(String processDefinitionId,
String processInstanceId,
String executionId,
String taskId,
Map<String,Object> data) |
protected EventLogEntryEntity |
createEventLogEntry(String type,
String processDefinitionId,
String processInstanceId,
String executionId,
String taskId,
Map<String,Object> data) |
<T> T |
getEntityFromEvent() |
void |
putInMapIfNotNull(Map<String,Object> map,
String key,
Object value) |
void |
setEvent(ActivitiEvent event) |
void |
setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
void |
setTimeStamp(Date timeStamp) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateEventLogEntry
protected ActivitiEvent event
protected Date timeStamp
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
public AbstractDatabaseEventLoggerEventHandler()
protected EventLogEntryEntity createEventLogEntry(Map<String,Object> data)
protected EventLogEntryEntity createEventLogEntry(String processDefinitionId, String processInstanceId, String executionId, String taskId, Map<String,Object> data)
protected EventLogEntryEntity createEventLogEntry(String type, String processDefinitionId, String processInstanceId, String executionId, String taskId, Map<String,Object> data)
public void setEvent(ActivitiEvent event)
setEvent
in interface EventLoggerEventHandler
public void setTimeStamp(Date timeStamp)
setTimeStamp
in interface EventLoggerEventHandler
public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
setObjectMapper
in interface EventLoggerEventHandler
public <T> T getEntityFromEvent()
Copyright © 2016 Alfresco. All rights reserved.