T - - The return type of the invocation of the command.public interface Operation<T extends Serializable> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
afterInvoke(Object result,
Connection connection)
This method will be called on the client side e.g.
|
void |
beforeInvoke(int token,
Connection connection)
This method will be called on the client-side to prepare an operation for invocation on the
server-side.
|
T |
getResult()
This method will only yield a valid result after a call to invoke.
|
T |
invoke()
The method that will be called on the server side.
|
T invoke() throws SaBasicException
SaBasicException - exception when invoking this operationvoid afterInvoke(Object result, Connection connection)
result - The result of invoke obtained by the rmi-callT getResult()
void beforeInvoke(int token,
Connection connection)
throws SaAuthenticationException,
SaSystemException
BaseOperation.
The token can be retrieved by BaseOperation.getClientToken().token - session tokenconnection - the connection the operation is invoked onSaAuthenticationExceptionSaSystemExceptionCopyright © 2016 SAPERION AG. All rights reserved.