@Entity public class EventLog extends Object implements Serializable
An EventLog is an immutable entity. The object contains the following additional properties
The 'data' attribute of an eventLog is optional and can hold any kind of event specific data (e.g. a Mail Message).
EventLog entities can be created and accessed by the EventLogService. Typically a new EventLog entity is created within the same transaction of the main processing or update life cycle. With this mechanism a client can be sure that eventLogEntries returned by the EventLogService are created during a committed Transaction.
Note: for the same document reference ($uniqueid) there can exist different eventlog entries. Eventlog entries are unique over there internal ID.
EventLogService,
Serialized Form| Constructor and Description |
|---|
EventLog()
default constructor for JPA
|
EventLog(String topic,
String ref,
Map<String,List<Object>> data)
Creates a new EventLog entity.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Calendar |
getCreated()
returns the creation point of time.
|
Map<String,List<Object>> |
getData()
returns the data object part of the Entity represented by a java.util.Map
Data is loaded eager because it is read in any case by the DocumentService.
|
String |
getId()
returns the unique identifier for the Entity.
|
String |
getRef()
returns the reference ID ($uniqueid) of the associated document or workitem
instance.
|
String |
getTopic()
returns the topic property of the entity instance.
|
Integer |
getVersion() |
int |
hashCode() |
void |
setCreated(Calendar created) |
void |
setData(Map<String,List<Object>> itemCol)
sets a data object for this Entity.
|
protected void |
setId(String aID) |
void |
setRef(String ref) |
void |
setTopic(String topic) |
void |
setVersion(Integer version) |
String |
toString() |
public String getId()
protected void setId(String aID)
public Integer getVersion()
public void setVersion(Integer version)
public String getTopic()
public void setTopic(String topic)
public String getRef()
public void setRef(String ref)
public Calendar getCreated()
public void setCreated(Calendar created)
public Map<String,List<Object>> getData()
Data is loaded eager because it is read in any case by the DocumentService.
public void setData(Map<String,List<Object>> itemCol)
Note: the modified timestamp will be updated automatically to the current point of time (see setModified) independent from the value of the item $modified. The item $modified will be updated by the DocumentService on read.
data - InvalidAccessException - if $modified is missingCopyright © 2006–2020 Imixs Software Solutions GmbH. All rights reserved.