public class BasicResult extends EventObject implements ResultEvent
ResultEvent
Modifier and Type | Field and Description |
---|---|
protected String |
description |
protected ExecutionEnvironment |
environment |
protected Boolean |
result |
protected Map<String,?> |
resultDetails |
protected org.joda.time.DateTime |
timestamp |
protected String |
type |
source
ACTION_EXECUTED, PROPOSITION_EVALUATED, RULE_EVALUATED, TIMING_EVENT
Constructor and Description |
---|
BasicResult(Map<String,?> resultDetails,
String eventType,
Object source,
ExecutionEnvironment environment,
boolean result)
Constructor
|
BasicResult(Map<String,?> resultDetails,
String description,
String eventType,
Object source,
ExecutionEnvironment environment,
boolean result)
Constructor
|
BasicResult(String eventType,
Object source,
ExecutionEnvironment environment)
Constructor
|
BasicResult(String eventType,
Object source,
ExecutionEnvironment environment,
boolean result)
Constructor
|
BasicResult(String description,
String eventType,
Object source,
ExecutionEnvironment environment,
boolean result)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns the description of the ResultEvent as a String
|
ExecutionEnvironment |
getEnvironment()
Returns the
ExecutionEnvironment of the ResultEvent. |
Boolean |
getResult()
Returns the Boolean result of the ResultEvent.
|
Map<String,?> |
getResultDetails()
Returns the result details of the ResultEvent as an unmodifiable Map,?>
|
org.joda.time.DateTime |
getTimestamp()
Returns the org.joda.time.DateTime timestamp of the ResultEvent.
|
String |
getType()
Returns the type of the ResultEvent.
|
String |
toString() |
getSource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSource
protected org.joda.time.DateTime timestamp
protected ExecutionEnvironment environment
protected String description
protected Map<String,?> resultDetails
public BasicResult(Map<String,?> resultDetails, String eventType, Object source, ExecutionEnvironment environment, boolean result)
resultDetails
- of the ResultEventeventType
- String of the ResultEventsource
- Object of the ResultEventenvironment
- ExecutionEnvironment
result
- boolean of the ResultEventpublic BasicResult(Map<String,?> resultDetails, String description, String eventType, Object source, ExecutionEnvironment environment, boolean result)
resultDetails
- of the ResultEventdescription
- String of the ResultEventeventType
- String of the ResultEventsource
- Object of the ResultEventenvironment
- ExecutionEnvironment
result
- boolean of the ResultEventpublic BasicResult(String description, String eventType, Object source, ExecutionEnvironment environment, boolean result)
description
- String of the ResultEventeventType
- String of the ResultEventsource
- Object of the ResultEventenvironment
- ExecutionEnvironment
result
- boolean of the ResultEventpublic BasicResult(String eventType, Object source, ExecutionEnvironment environment, boolean result)
eventType
- String of the ResultEventsource
- Object of the ResultEventenvironment
- ExecutionEnvironment
result
- boolean of the ResultEventpublic BasicResult(String eventType, Object source, ExecutionEnvironment environment)
eventType
- String of the ResultEventsource
- Object of the ResultEventenvironment
- ExecutionEnvironment
public String getType()
ResultEvent
getType
in interface ResultEvent
public org.joda.time.DateTime getTimestamp()
ResultEvent
getTimestamp
in interface ResultEvent
public ExecutionEnvironment getEnvironment()
ResultEvent
ExecutionEnvironment
of the ResultEvent.getEnvironment
in interface ResultEvent
ExecutionEnvironment
of the ResultEvent.public Boolean getResult()
ResultEvent
getResult
in interface ResultEvent
public String getDescription()
ResultEvent
getDescription
in interface ResultEvent
public Map<String,?> getResultDetails()
getResultDetails
in interface ResultEvent
public String toString()
toString
in class EventObject
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.