|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qedeq.kernel.bo.job.ServiceResultImpl
public class ServiceResultImpl
Execution result of a ModuleServiceCall
.
Field Summary | |
---|---|
static ModuleServiceResult |
INTERRUPTED
A simple service result that has a user interrupt. |
static ModuleServiceResult |
SUCCESSFUL
A simple successful (=ok) service result. |
Constructor Summary | |
---|---|
ServiceResultImpl(boolean interrupted,
boolean ok,
boolean hasWarnings,
boolean hasErrors,
java.lang.String message,
java.lang.Object result)
Constructor. |
|
ServiceResultImpl(java.lang.String errorMessage)
Constructor for a failure call. |
Method Summary | |
---|---|
void |
deleteExecutionResult()
Remove execution result. |
java.lang.String |
getErrorMessage()
Error (and perhaps warning) messages for service call. |
java.lang.Object |
getExecutionResult()
Result of service execution. |
boolean |
hasErrors()
Did the service call finish with errors? |
boolean |
hasWarnings()
Did the service call finish with warnings? |
boolean |
isOk()
Did the call finish without errors and warnings? (And was not interrupted by a user.) |
boolean |
wasInterrupted()
Was the call interrupted by user interaction? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ModuleServiceResult INTERRUPTED
public static final ModuleServiceResult SUCCESSFUL
Constructor Detail |
---|
public ServiceResultImpl(boolean interrupted, boolean ok, boolean hasWarnings, boolean hasErrors, java.lang.String message, java.lang.Object result)
interrupted
- Did a user interrupt occur and ended the service call?ok
- Was the call fully successful (finished ok without errors and warnings)?hasWarnings
- Did warnings occur?hasErrors
- Did errors occur?message
- Error message. Might be empty.result
- Result of service call. Might be null even for a successful call.public ServiceResultImpl(java.lang.String errorMessage)
errorMessage
- Error message. Should not be empty.Method Detail |
---|
public boolean wasInterrupted()
ModuleServiceResult
wasInterrupted
in interface ModuleServiceResult
public boolean isOk()
ModuleServiceResult
isOk
in interface ModuleServiceResult
public boolean hasWarnings()
ModuleServiceResult
hasWarnings
in interface ModuleServiceResult
public boolean hasErrors()
ModuleServiceResult
hasErrors
in interface ModuleServiceResult
public java.lang.String getErrorMessage()
ModuleServiceResult
null
.
Should be of zero length if call ModuleServiceResult.isOk()
.
getErrorMessage
in interface ModuleServiceResult
public java.lang.Object getExecutionResult()
ModuleServiceResult
getExecutionResult
in interface ModuleServiceResult
null
.public void deleteExecutionResult()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |