org.alfresco.bm.event
Class RecordedEvent

java.lang.Object
  extended by org.alfresco.bm.event.Event
      extended by org.alfresco.bm.event.RecordedEvent

public class RecordedEvent
extends Event

The record of a processed event.

Since:
1.0
Author:
Derek Hulley

Field Summary
 
Fields inherited from class org.alfresco.bm.event.Event
EVENT_BEAN_PREFIX, EVENT_NAME_START, EVENT_NAME_STOP, FIELD_END_TIME, FIELD_ID, FIELD_NAME, FIELD_OWNER_ID, FIELD_SCHEDULED_TIME, FIELD_START_TIME, INDEX_NEXT_AVAILABLE_EVENT
 
Constructor Summary
RecordedEvent()
          Default constructor for auto-construction by frameworks.
RecordedEvent(Event processedEvent, Serializable data, boolean success)
           
 
Method Summary
 Serializable getEventData()
           
 long getEventProcessTime()
           
 String getWarning()
           
 boolean isSuccess()
           
 void setEndTime(long endTime)
          Set the process end time provided it is greater than the start time.
 void setEventData(Serializable eventData)
           
 void setEventProcessTime(long eventProcessTime)
           
 void setStartTime(long startTime)
           
 void setSuccess(boolean success)
           
 void setWarning(String warning)
           
 
Methods inherited from class org.alfresco.bm.event.Event
checkIndexes, equals, getCreatedTime, getData, getEndTime, getId, getName, getOwnerId, getScheduledTime, getStartTime, hashCode, setCreatedTime, setData, setId, setName, setOwnerId, setScheduledTime, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RecordedEvent

public RecordedEvent()
Default constructor for auto-construction by frameworks.


RecordedEvent

public RecordedEvent(Event processedEvent,
                     Serializable data,
                     boolean success)
Parameters:
processedEvent - the event that was processed
data - any additional data that should be recorded with this event
success - true if this represents a successful event otherwise false
Method Detail

setStartTime

public void setStartTime(long startTime)
Overrides:
setStartTime in class Event

setEndTime

public void setEndTime(long endTime)
Description copied from class: Event
Set the process end time provided it is greater than the start time.

Overrides:
setEndTime in class Event

getEventProcessTime

public long getEventProcessTime()

setEventProcessTime

public void setEventProcessTime(long eventProcessTime)

isSuccess

public boolean isSuccess()

setSuccess

public void setSuccess(boolean success)

getWarning

public String getWarning()

setWarning

public void setWarning(String warning)

getEventData

public Serializable getEventData()

setEventData

public void setEventData(Serializable eventData)


Copyright © 2012. All Rights Reserved.