org.processmining.framework.log.proxy
Class ProxyAuditTrailEntry

java.lang.Object
  extended by org.processmining.framework.log.LogEntity
      extended by org.processmining.framework.log.AuditTrailEntry
          extended by org.processmining.framework.log.proxy.ProxyAuditTrailEntry

public class ProxyAuditTrailEntry
extends AuditTrailEntry

Author:
Christian W. Guenther (christian@deckfour.org)

Field Summary
protected  AuditTrailEntryList parentList
           
protected  int parentPosition
           
 
Constructor Summary
ProxyAuditTrailEntry(AuditTrailEntryList aParentList, int aPosition)
           
 
Method Summary
 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.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()
          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.
protected  AuditTrailEntry parent()
           
 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 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 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

parentList

protected AuditTrailEntryList parentList

parentPosition

protected int parentPosition
Constructor Detail

ProxyAuditTrailEntry

public ProxyAuditTrailEntry(AuditTrailEntryList aParentList,
                            int aPosition)
Method Detail

parent

protected AuditTrailEntry parent()

clone

public java.lang.Object clone()
Description copied from class: AuditTrailEntry
Make a deep copy of the object. Note that this method needs to be extended as soon as there are attributes added to the class which are not primitive or immutable.

Specified by:
clone in class AuditTrailEntry
Returns:
Object The cloned object.

equals

public boolean equals(java.lang.Object o)
Description copied from class: AuditTrailEntry
Overridden to specify when two audit trail entries are considered to be equal.

Specified by:
equals in class AuditTrailEntry
Parameters:
o - Object The AuditTrailEntry to be compared with.
Returns:
boolean True if all attributes are equal, false otherwise.

getOriginator

public java.lang.String getOriginator()
Description copied from class: AuditTrailEntry
Returns the originator, i.e. the name or identifier of the entity which has triggered the occurrence of the described event.

Specified by:
getOriginator in class AuditTrailEntry
Returns:
String

getTimestamp

public java.util.Date getTimestamp()
Description copied from class: AuditTrailEntry
Returns the exact date and time, at which this event has occurred. Notice that this is an optional attribute, thus null may be returned.

Specified by:
getTimestamp in class AuditTrailEntry
Returns:
Date

getType

public java.lang.String getType()
Description copied from class: AuditTrailEntry
Returns the event type, as defined in the MXML finite state machine.

Specified by:
getType in class AuditTrailEntry
Returns:
String

hashCode

public int hashCode()
Description copied from class: AuditTrailEntry
Overridden to produce the same hash code for equal objects.

Specified by:
hashCode in class AuditTrailEntry
Returns:
int The hash code calculated.

id

public long id()
Description copied from class: AuditTrailEntry
Returns the ID of this audit trail entry.

An ID for an audit trail entry is defined to be unique within the context of its containing log file collection.

Specified by:
id in class AuditTrailEntry
Returns:

setOriginator

public void setOriginator(java.lang.String originator)
Description copied from class: AuditTrailEntry
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. It is suggested that you test the modification support of the underlying implementation by use of the isMutable() method.

Specified by:
setOriginator in class AuditTrailEntry
Parameters:
originator - Name or identifier of the organizational entity having triggered this event.

setTimestamp

public void setTimestamp(java.util.Date timestamp)
Description copied from class: AuditTrailEntry
Sets the timestamp of this event.
Notice: Implementations of this interface may support modification of instances to varying degrees. It is suggested that you test the modification support of the underlying implementation by use of the isMutable() method.

Specified by:
setTimestamp in class AuditTrailEntry
Parameters:
timestamp - The exact date and time at which this event has been observed.

setType

public void setType(java.lang.String type)
Description copied from class: AuditTrailEntry
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. It is suggested that you test the modification support of the underlying implementation by use of the isMutable() method.

Specified by:
setType in class AuditTrailEntry
Parameters:
type - String identifier of the event type to set.

getAttributes

public java.util.Map<java.lang.String,java.lang.String> getAttributes()
Description copied from class: LogEntity
Returns the meta-data, as map of key-value pairs, associated to this entity.

Specified by:
getAttributes in class LogEntity
Returns:

getDescription

public java.lang.String getDescription()
Description copied from class: LogEntity
Returns the description of this entity.

Specified by:
getDescription in class LogEntity
Returns:

getName

public java.lang.String getName()
Description copied from class: LogEntity
Returns the name of this entity.

Specified by:
getName in class LogEntity
Returns:

removeAttribute

public void removeAttribute(java.lang.String key)
Description copied from class: LogEntity
Removes the attribute with the given key from the set of attributes of this entity.

Specified by:
removeAttribute in class LogEntity

setAttribute

public void setAttribute(java.lang.String key,
                         java.lang.String value)
Description copied from class: LogEntity
Sets an attribute of this entity as a key-value pair. If a previous mapping for the given key exists, it will be removed. Otherwise a new mapping will be added.

Specified by:
setAttribute in class LogEntity

setAttributes

public void setAttributes(java.util.Map<java.lang.String,java.lang.String> data)
Description copied from class: LogEntity
Sets the set of attributes, given as key-value pairs, for this entity. Replaces the previously contained set of attributes.

Specified by:
setAttributes in class LogEntity

setDescription

public void setDescription(java.lang.String description)
Description copied from class: LogEntity
Sets the description of this entity

Specified by:
setDescription in class LogEntity

setName

public void setName(java.lang.String name)
Description copied from class: LogEntity
Sets the name, or ID, of this entity

Specified by:
setName in class LogEntity

toString

public java.lang.String toString()
Description copied from class: LogEntity
Returns a string representation of this entity.

Specified by:
toString in class LogEntity