|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.framework.log.LogEntity
org.processmining.framework.log.AuditTrailEntry
org.processmining.framework.log.classic.AuditTrailEntryClassic
public class AuditTrailEntryClassic
A single audit trail entry in a workflow log.
This class only provides some simple getter methods to get the information in an audit trail entry.
Constructor Summary | |
---|---|
AuditTrailEntryClassic(java.lang.String element,
java.lang.String type,
java.util.Date timestamp,
java.lang.String originator,
java.util.Map<java.lang.String,java.lang.String> data)
|
|
AuditTrailEntryClassic(java.lang.String element,
java.lang.String type,
java.lang.String timestamp,
java.lang.String originator,
java.util.Map<java.lang.String,java.lang.String> data)
|
Method Summary | |
---|---|
void |
addDataAttribute(java.lang.String key,
java.lang.String value)
Sets an identified attribute in the data section of this event. |
java.lang.Object |
clone()
Make a deep copy of the object. |
boolean |
equals(java.lang.Object o)
Overridden to specify when two audit trail entries are considered to be equal. |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Returns the meta-data, as map of key-value pairs, associated to this entity. |
java.util.Map<java.lang.String,java.lang.String> |
getData()
Returns a map of key / value pairs describing data available for this event. |
java.lang.String |
getDescription()
Returns the description of this entity. |
java.lang.String |
getElement()
Returns the workflow model element identifier (event name) |
java.lang.String |
getName()
Returns the name of this entity. |
java.lang.String |
getOriginator()
Returns the originator, i.e. |
java.util.Date |
getTimestamp()
Returns the exact date and time, at which this event has occurred. |
java.lang.String |
getType()
Returns the event type, as defined in the MXML finite state machine. |
int |
hashCode()
Overridden to produce the same hash code for equal objects. |
long |
id()
Returns the ID of this audit trail entry. |
void |
removeAttribute(java.lang.String key)
Removes the attribute with the given key from the set of attributes of this entity. |
void |
setAttribute(java.lang.String key,
java.lang.String value)
Sets an attribute of this entity as a key-value pair. |
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> map)
Sets the set of attributes, given as key-value pairs, for this entity. |
void |
setData(java.util.Map<java.lang.String,java.lang.String> data)
Sets the attribute data of this event. |
void |
setDescription(java.lang.String description)
Sets the description of this entity |
void |
setElement(java.lang.String element)
Sets the model element of this event. Notice: Implementations of this interface may support modification of instances to varying degrees. |
void |
setName(java.lang.String name)
Sets the name, or ID, of this entity |
void |
setOriginator(java.lang.String originator)
Sets the name or identifier of the organizational entity which has triggered the occurrence of this event. Notice: Implementations of this interface may support modification of instances to varying degrees. |
void |
setTimestamp(java.util.Date timestamp)
Sets the timestamp of this event. Notice: Implementations of this interface may support modification of instances to varying degrees. |
void |
setType(java.lang.String type)
Sets the type of this event, as defined in the MXML finite state machine. Notice: Implementations of this interface may support modification of instances to varying degrees. |
java.lang.String |
toString()
Returns a string representation of this entity. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AuditTrailEntryClassic(java.lang.String element, java.lang.String type, java.util.Date timestamp, java.lang.String originator, java.util.Map<java.lang.String,java.lang.String> data)
element
- Stringtype
- Stringtimestamp
- Dateoriginator
- Stringdata
- HashMappublic AuditTrailEntryClassic(java.lang.String element, java.lang.String type, java.lang.String timestamp, java.lang.String originator, java.util.Map<java.lang.String,java.lang.String> data)
element
- Stringtype
- Stringtimestamp
- Stringoriginator
- Stringdata
- MapMethod Detail |
---|
public java.lang.String getElement()
AuditTrailEntry
getElement
in class AuditTrailEntry
public java.lang.String getType()
AuditTrailEntry
getType
in class AuditTrailEntry
public java.util.Date getTimestamp()
AuditTrailEntry
null
may be returned.
getTimestamp
in class AuditTrailEntry
public java.lang.String getOriginator()
AuditTrailEntry
getOriginator
in class AuditTrailEntry
public java.util.Map<java.lang.String,java.lang.String> getData()
AuditTrailEntry
getData
in class AuditTrailEntry
public java.lang.String toString()
LogEntity
toString
in class LogEntity
public boolean equals(java.lang.Object o)
AuditTrailEntry
equals
in class AuditTrailEntry
o
- Object The AuditTrailEntry
to be compared with.
public int hashCode()
AuditTrailEntry
hashCode
in class AuditTrailEntry
public java.lang.Object clone()
AuditTrailEntry
clone
in class AuditTrailEntry
public void addDataAttribute(java.lang.String key, java.lang.String value)
AuditTrailEntry
isMutable()
method.
addDataAttribute
in class AuditTrailEntry
key
- Key of the attribute to be set.value
- Value to set the attribute to.public void setData(java.util.Map<java.lang.String,java.lang.String> data)
AuditTrailEntry
Map
collection.isMutable()
method.
setData
in class AuditTrailEntry
data
- A map containing the attributes of this event as
key / value pairs.public void setElement(java.lang.String element)
AuditTrailEntry
isMutable()
method.
setElement
in class AuditTrailEntry
element
- identifier of the workflow model element
associated with this event.isMutable
public void setOriginator(java.lang.String originator)
AuditTrailEntry
isMutable()
method.
setOriginator
in class AuditTrailEntry
originator
- Name or identifier of the organizational
entity having triggered this event.public void setTimestamp(java.util.Date timestamp)
AuditTrailEntry
isMutable()
method.
setTimestamp
in class AuditTrailEntry
timestamp
- The exact date and time at which this event
has been observed.public void setType(java.lang.String type)
AuditTrailEntry
isMutable()
method.
setType
in class AuditTrailEntry
type
- String identifier of the event type to set.public long id()
AuditTrailEntry
An ID for an audit trail entry is defined to be unique within the context of its containing log file collection.
id
in class AuditTrailEntry
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
LogEntity
getAttributes
in class LogEntity
public java.lang.String getName()
LogEntity
getName
in class LogEntity
public void removeAttribute(java.lang.String key)
LogEntity
removeAttribute
in class LogEntity
public void setAttribute(java.lang.String key, java.lang.String value)
LogEntity
setAttribute
in class LogEntity
public void setName(java.lang.String name)
LogEntity
setName
in class LogEntity
public java.lang.String getDescription()
LogEntity
getDescription
in class LogEntity
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> map)
LogEntity
setAttributes
in class LogEntity
public void setDescription(java.lang.String description)
LogEntity
setDescription
in class LogEntity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |