Class EventLog
- All Implemented Interfaces:
Serializable
An EventLog is an immutable entity. The object contains the following additional properties
- id - identifier for the event log entry
- ref - the reference id of the corresponding workitem or document entity
- topic - the topic of the eventlog
- created - the creation timestamp
- data - an optional data field
- timeout - an optional timestamp indicated the earliest processing time.
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.
- Version:
- 1.0
- Author:
- rsoika
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
returns the creation point of time.getData()
returns the data object part of the Entity represented by a java.util.MapgetId()
returns the unique identifier for the Entity.getRef()
returns the reference ID ($uniqueid) of the associated document or workitem instance.returns an optional timeout information indicated the earliest processing time.getTopic()
returns the topic property of the entity instance.int
hashCode()
void
setCreated
(Calendar created) void
sets a data object for this Entity.protected void
void
void
setTimeout
(Calendar timeout) void
void
setVersion
(Integer version) toString()
-
Constructor Details
-
EventLog
public EventLog()default constructor for JPA -
EventLog
Creates a new EventLog entity.- Parameters:
topic
- - the event topicref
- - the reference to the associated document entitydata
- - a optional data list
-
-
Method Details
-
getId
returns the unique identifier for the Entity.- Returns:
- universal id
-
setId
-
getVersion
-
setVersion
-
getTopic
returns the topic property of the entity instance.- Returns:
-
setTopic
-
getRef
returns the reference ID ($uniqueid) of the associated document or workitem instance.- Returns:
-
setRef
-
getCreated
returns the creation point of time.- Returns:
- time of creation
-
setCreated
-
getTimeout
returns an optional timeout information indicated the earliest processing time.- Returns:
- time of creation
-
setTimeout
-
getData
returns the data object part of the Entity represented by a java.util.MapData is loaded eager because it is read in any case by the DocumentService.
- Returns:
- Map
-
setData
sets a data object for this Entity.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.
- Parameters:
data
-- Throws:
InvalidAccessException
- if $modified is missing
-
hashCode
public int hashCode() -
equals
-
toString
-