Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jbpm.workflow.log.impl
Class LogImpl  view LogImpl download LogImpl.java

java.lang.Object
  extended byorg.jbpm.workflow.log.impl.LogImpl
All Implemented Interfaces:
java.lang.Comparable, org.jbpm.workflow.log.Log

public class LogImpl
extends java.lang.Object
implements org.jbpm.workflow.log.Log, java.lang.Comparable


Field Summary
private  java.lang.String actorId
           
private  java.util.Date date
           
private  java.util.Collection details
           
private  org.jbpm.workflow.definition.EventType eventType
           
private  org.jbpm.workflow.execution.Flow flow
           
private  java.lang.Long id
           
private static org.jbpm.workflow.organisation.OrganisationUtil organisationUtil
           
 
Constructor Summary
LogImpl()
           
LogImpl(java.util.Date date, org.jbpm.workflow.definition.EventType eventType, org.jbpm.workflow.execution.Flow flow)
           
LogImpl(java.lang.String actorId, java.util.Date date, org.jbpm.workflow.definition.EventType eventType, org.jbpm.workflow.execution.Flow flow)
           
 
Method Summary
 int compareTo(java.lang.Object otherEvent)
          Compares this object with another, and returns a numerical result based on the comparison.
 org.jbpm.workflow.organisation.Actor getActor()
           
 java.lang.String getActorId()
           
 java.util.Date getDate()
           
 java.util.Collection getDetails()
           
 org.jbpm.workflow.definition.EventType getEventType()
           
 org.jbpm.workflow.execution.Flow getFlow()
           
 java.lang.Long getId()
           
 java.util.Collection getObjectReferences(java.lang.String className)
           
 void setActorId(java.lang.String actorId)
           
 void setDate(java.util.Date date)
           
 void setDetails(java.util.Collection details)
           
 void setEventType(org.jbpm.workflow.definition.EventType eventType)
           
 void setFlow(org.jbpm.workflow.execution.Flow flow)
           
 void setId(java.lang.Long id)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

private java.lang.Long id

actorId

private java.lang.String actorId

flow

private org.jbpm.workflow.execution.Flow flow

date

private java.util.Date date

eventType

private org.jbpm.workflow.definition.EventType eventType

details

private java.util.Collection details

organisationUtil

private static org.jbpm.workflow.organisation.OrganisationUtil organisationUtil
Constructor Detail

LogImpl

public LogImpl()

LogImpl

public LogImpl(java.util.Date date,
               org.jbpm.workflow.definition.EventType eventType,
               org.jbpm.workflow.execution.Flow flow)

LogImpl

public LogImpl(java.lang.String actorId,
               java.util.Date date,
               org.jbpm.workflow.definition.EventType eventType,
               org.jbpm.workflow.execution.Flow flow)
Method Detail

getId

public java.lang.Long getId()
Specified by:
getId in interface org.jbpm.workflow.log.Log

setId

public void setId(java.lang.Long id)

getActorId

public java.lang.String getActorId()

setActorId

public void setActorId(java.lang.String actorId)

getActor

public org.jbpm.workflow.organisation.Actor getActor()
Specified by:
getActor in interface org.jbpm.workflow.log.Log

getFlow

public org.jbpm.workflow.execution.Flow getFlow()
Specified by:
getFlow in interface org.jbpm.workflow.log.Log

setFlow

public void setFlow(org.jbpm.workflow.execution.Flow flow)

getDate

public java.util.Date getDate()
Specified by:
getDate in interface org.jbpm.workflow.log.Log

setDate

public void setDate(java.util.Date date)

getEventType

public org.jbpm.workflow.definition.EventType getEventType()
Specified by:
getEventType in interface org.jbpm.workflow.log.Log

setEventType

public void setEventType(org.jbpm.workflow.definition.EventType eventType)

getDetails

public java.util.Collection getDetails()
Specified by:
getDetails in interface org.jbpm.workflow.log.Log

setDetails

public void setDetails(java.util.Collection details)

getObjectReferences

public java.util.Collection getObjectReferences(java.lang.String className)
Specified by:
getObjectReferences in interface org.jbpm.workflow.log.Log

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


compareTo

public int compareTo(java.lang.Object otherEvent)
Description copied from interface: java.lang.Comparable
Compares this object with another, and returns a numerical result based on the comparison. If the result is negative, this object sorts less than the other; if 0, the two are equal, and if positive, this object sorts greater than the other. To translate this into boolean, simply perform o1.compareTo(o2) <op> 0, where op is one of <, <=, =, !=, >, or >=.

You must make sure that the comparison is mutual, ie. sgn(x.compareTo(y)) == -sgn(y.compareTo(x)) (where sgn() is defined as -1, 0, or 1 based on the sign). This includes throwing an exception in either direction if the two are not comparable; hence, compareTo(null) should always throw an Exception.

You should also ensure transitivity, in two forms: x.compareTo(y) > 0 && y.compareTo(z) > 0 implies x.compareTo(z) > 0; and x.compareTo(y) == 0 implies x.compareTo(z) == y.compareTo(z).

Specified by:
compareTo in interface java.lang.Comparable