org.ikasan.framework.event.exclusion.model
Class ExcludedEvent

java.lang.Object
  extended by org.ikasan.framework.event.exclusion.model.ExcludedEvent

public class ExcludedEvent
extends Object

Author:
The Ikasan Development Team

Field Summary
static String RESOLUTION_CANCELLED
          Resolution indicator for a Cancelled ExcludedEvent
static String RESOLUTION_RESUBMITTED
          Resolution indicator for a Resubmitted ExcludedEvent
 
Constructor Summary
ExcludedEvent(Event event, String moduleName, String flowName, Date exclusionTime)
          Constructor
 
Method Summary
 List<ErrorOccurrence> getErrorOccurrences()
          Accessor for errorOccurrences
 Event getEvent()
          Accessor for event
 Date getExclusionTime()
          Accessor for exclusionTime
 String getFlowName()
          Accessor for flowName
 Long getId()
          Accessor for id
 String getLastUpdatedBy()
          Accessor for lastUpdatedBy
 Date getLastUpdatedTime()
          Accessor for resubmissionTime
 String getModuleName()
          Accessor for moduleName
 String getResolution()
          Accessor for resolution
 boolean isResolved()
          Shortcut for determining if this has been resolved
 void resolveAsCancelled(String resolver)
          Marks the ExcludedEvent as Cancelled, setting the lastUpdatedBy and lastUpdatedTime fields
 void resolveAsResubmitted(String resolver)
          Marks the ExcludedEvent as Resubmitted, setting the lastUpdatedBy and lastUpdatedTime fields
 void setErrorOccurrences(List<ErrorOccurrence> errorOccurrences)
          Mutator for errorOccurrences TODO would be great if this didnt need to be public
 void setLastUpdatedBy(String lastUpdatedBy)
          Mutator for lastUpdatedBy
 void setLastUpdatedTime(Date lastUpdatedTime)
          Mutator for lastUpdatedTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOLUTION_RESUBMITTED

public static final String RESOLUTION_RESUBMITTED
Resolution indicator for a Resubmitted ExcludedEvent

See Also:
Constant Field Values

RESOLUTION_CANCELLED

public static final String RESOLUTION_CANCELLED
Resolution indicator for a Cancelled ExcludedEvent

See Also:
Constant Field Values
Constructor Detail

ExcludedEvent

public ExcludedEvent(Event event,
                     String moduleName,
                     String flowName,
                     Date exclusionTime)
Constructor

Parameters:
event - - the event being excluded
moduleName - - module from which event is excluded
flowName - - flow from which event is excluded
exclusionTime - - date/time of event exclusion
Method Detail

resolveAsResubmitted

public void resolveAsResubmitted(String resolver)
Marks the ExcludedEvent as Resubmitted, setting the lastUpdatedBy and lastUpdatedTime fields

Parameters:
resolver - to be used for lastUpdatedBy

resolveAsCancelled

public void resolveAsCancelled(String resolver)
Marks the ExcludedEvent as Cancelled, setting the lastUpdatedBy and lastUpdatedTime fields

Parameters:
resolver - to be used for lastUpdatedBy

getId

public Long getId()
Accessor for id

Returns:
id

getEvent

public Event getEvent()
Accessor for event

Returns:
event

getModuleName

public String getModuleName()
Accessor for moduleName

Returns:
moduleName

getFlowName

public String getFlowName()
Accessor for flowName

Returns:
flowName

getExclusionTime

public Date getExclusionTime()
Accessor for exclusionTime

Returns:
exclusionTime

getLastUpdatedTime

public Date getLastUpdatedTime()
Accessor for resubmissionTime

Returns:
resubmissionTime

setLastUpdatedTime

public void setLastUpdatedTime(Date lastUpdatedTime)
Mutator for lastUpdatedTime

Parameters:
lastUpdatedTime -

getLastUpdatedBy

public String getLastUpdatedBy()
Accessor for lastUpdatedBy

Returns:
lastUpdatedBy

setLastUpdatedBy

public void setLastUpdatedBy(String lastUpdatedBy)
Mutator for lastUpdatedBy

Parameters:
lastUpdatedBy -

getErrorOccurrences

public List<ErrorOccurrence> getErrorOccurrences()
Accessor for errorOccurrences

Returns:
listing of occurrences of errors processing the Event

setErrorOccurrences

public void setErrorOccurrences(List<ErrorOccurrence> errorOccurrences)
Mutator for errorOccurrences TODO would be great if this didnt need to be public

Parameters:
errorOccurrences -

isResolved

public boolean isResolved()
Shortcut for determining if this has been resolved

Returns:
true if resolution exists

getResolution

public String getResolution()
Accessor for resolution

Returns:
resolution


Copyright © 2007-2012 Ikasan. All Rights Reserved.