public class CreateDocument extends AbstractOperation<SaSaveInfo>
invoke()
method will return an instance of
SaSaveInfo
.Constructor and Description |
---|
CreateDocument(DocumentInfo document) |
Modifier and Type | Method and Description |
---|---|
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.
|
SaSaveInfo |
invoke()
The method that will be called on the server side.
|
afterInvoke, getResult, toArrayList, toString
getClientToken, mapException
public CreateDocument(DocumentInfo document)
document
- information about the document to createpublic void beforeInvoke(int token, Connection connection) throws SaAuthenticationException, SaSystemException
Operation
BaseOperation
.
The token can be retrieved by BaseOperation.getClientToken()
.beforeInvoke
in interface Operation<SaSaveInfo>
beforeInvoke
in class BaseOperation<SaSaveInfo>
token
- session tokenconnection
- the connection the operation is invoked onSaAuthenticationException
SaSystemException
public SaSaveInfo invoke() throws SaBasicException
Operation
SaBasicException
- exception when invoking this operationCopyright © 2016 SAPERION AG. All rights reserved.