|
||||||||||
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.rfb.AuditTrailEntryImpl
public class AuditTrailEntryImpl
This class implements an audit trail entry.
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
attributes
|
protected java.lang.String |
element
|
protected java.lang.String |
eventType
|
protected long |
instanceNumber
|
protected static long |
instanceNumberCounter
|
protected java.lang.String |
originator
|
protected java.util.Date |
timestamp
|
Constructor Summary | |
---|---|
AuditTrailEntryImpl()
creates a new audit trail entry with initialized data hashtable |
|
AuditTrailEntryImpl(AuditTrailEntry toBeCloned)
clones the parameter object |
|
AuditTrailEntryImpl(java.util.Map<java.lang.String,java.lang.String> aAttributes,
java.lang.String aWFMElement,
java.lang.String anEventType,
java.util.Date aTimestamp,
java.lang.String anOriginator)
Internal constructor. |
|
AuditTrailEntryImpl(java.util.Map<java.lang.String,java.lang.String> aAttributes,
java.lang.String aWFMElement,
java.lang.String anEventType,
java.util.Date aTimestamp,
java.lang.String anOriginator,
long anID)
Internal constructor. |
Method Summary | |
---|---|
java.lang.Object |
clone()
overriding Object's 'clone' method |
int |
compareTo(java.lang.Object arg0)
implements the 'Comparable' interface |
boolean |
equals(java.lang.Object arg0)
implements the 'Comparable' interface |
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.lang.String |
getDescription()
Returns the description of this entity. |
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()
Retrieves the type of this event |
int |
hashCode()
Overridden to produce the same hash code for equal objects. |
long |
id()
Retrieves the log-wide unique ID of this event |
protected static long |
nextInstanceNumber()
|
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> data)
Sets the set of attributes, given as key-value pairs, for this entity. |
void |
setDescription(java.lang.String description)
Sets the description of this entity |
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 aDate)
set timestamp using a Date object |
void |
setTimestamp(long aDateInMilliseconds)
set the timestamp using a date in milliseconds UN*X time |
void |
setTimestamp(java.sql.Timestamp timestamp)
|
void |
setType(java.lang.String type)
Sets this event's type |
java.lang.String |
toString()
Returns a string representation of this entity. |
Methods inherited from class org.processmining.framework.log.AuditTrailEntry |
---|
addDataAttribute, getData, getElement, setData, setElement |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String element
protected java.lang.String eventType
protected java.util.Date timestamp
protected java.lang.String originator
protected java.util.Map<java.lang.String,java.lang.String> attributes
protected long instanceNumber
protected static long instanceNumberCounter
Constructor Detail |
---|
public AuditTrailEntryImpl()
public AuditTrailEntryImpl(java.util.Map<java.lang.String,java.lang.String> aAttributes, java.lang.String aWFMElement, java.lang.String anEventType, java.util.Date aTimestamp, java.lang.String anOriginator)
aAttributes
- hash table containing data attributes (may be null
)aWFMElement
- workflow model elementanEventType
- event typeanUnknownType
- unknown event type (null
or empty string if well-known)aTimestamp
- timestamp of audit trail entry (may be null
)anOriginator
- originator string (may be null
)public AuditTrailEntryImpl(java.util.Map<java.lang.String,java.lang.String> aAttributes, java.lang.String aWFMElement, java.lang.String anEventType, java.util.Date aTimestamp, java.lang.String anOriginator, long anID)
aAttributes
- hash table containing data attributes (may be null
)aWFMElement
- workflow model elementanEventType
- event typeanUnknownType
- unknown event type (null
or empty string if well-known)aTimestamp
- timestamp of audit trail entry (may be null
)anOriginator
- originator string (may be null
)anID
- ID of the audit trail entry. Warning: Only use this constructor if you wish to reconstruct a properly saved ATE, otherwise you're up for serious identity crisis!
public AuditTrailEntryImpl(AuditTrailEntry toBeCloned)
toBeCloned
- Method Detail |
---|
protected static long nextInstanceNumber()
public java.lang.Object clone()
clone
in class AuditTrailEntry
public java.lang.String getType()
getType
in class AuditTrailEntry
public long id()
id
in class AuditTrailEntry
public void setType(java.lang.String type)
setType
in class AuditTrailEntry
type
- String identifier of the event type to set.public java.lang.String getOriginator()
AuditTrailEntry
getOriginator
in class AuditTrailEntry
public void setOriginator(java.lang.String originator)
AuditTrailEntry
isMutable()
method.
setOriginator
in class AuditTrailEntry
originator
- The originator to set.public java.util.Date getTimestamp()
AuditTrailEntry
null
may be returned.
getTimestamp
in class AuditTrailEntry
public void setTimestamp(java.sql.Timestamp timestamp)
timestamp
- The timestamp to set.public void setTimestamp(java.util.Date aDate)
setTimestamp
in class AuditTrailEntry
aDate
- public void setTimestamp(long aDateInMilliseconds)
aDateInMilliseconds
- public int compareTo(java.lang.Object arg0)
public boolean equals(java.lang.Object arg0)
equals
in class AuditTrailEntry
arg0
- Object The AuditTrailEntry
to be compared with.
public int hashCode()
AuditTrailEntry
hashCode
in class AuditTrailEntry
public java.lang.String toString()
LogEntity
toString
in class LogEntity
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
LogEntity
getAttributes
in class LogEntity
public java.lang.String getDescription()
LogEntity
getDescription
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 setAttributes(java.util.Map<java.lang.String,java.lang.String> data)
LogEntity
setAttributes
in class LogEntity
public void setDescription(java.lang.String description)
LogEntity
setDescription
in class LogEntity
public void setName(java.lang.String name)
LogEntity
setName
in class LogEntity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |