org.qedeq.kernel.bo.common
Interface ModuleServiceResult

All Known Implementing Classes:
ServiceResultImpl

public interface ModuleServiceResult

Execution result of a ModuleServiceCall.

Author:
Michael Meyling

Method Summary
 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?
 

Method Detail

wasInterrupted

boolean wasInterrupted()
Was the call interrupted by user interaction?

Returns:
Call was interrupted by a user.

isOk

boolean isOk()
Did the call finish without errors and warnings? (And was not interrupted by a user.)

Returns:
Call finished successfully.

hasWarnings

boolean hasWarnings()
Did the service call finish with warnings?

Returns:
Occurred warnings?

hasErrors

boolean hasErrors()
Did the service call finish with errors?

Returns:
Occurred errors?

getErrorMessage

java.lang.String getErrorMessage()
Error (and perhaps warning) messages for service call. Never null. Should be of zero length if call isOk().

Returns:
Error messages.

getExecutionResult

java.lang.Object getExecutionResult()
Result of service execution.

Returns:
Result. Might be null.


Copyright © 2014. All Rights Reserved.