public class CreateDocumentOperation extends AbstractOperation<com.lexmark.saperion.document.DocumentStoreInformationType>
Operation
stores a new document in the system.Constructor and Description |
---|
CreateDocumentOperation(com.lexmark.saperion.document.DocumentDefinitionReferenceType definition,
Map<String,Object> indexData,
com.lexmark.saperion.document.DocumentElementType rootElement) |
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.
|
com.lexmark.saperion.document.DocumentStoreInformationType |
invoke()
The method that will be called on the server side.
|
afterInvoke, getResult, toArrayList, toString
getClientToken, mapException
public void beforeInvoke(int token, Connection connection) throws SaAuthenticationException, SaSystemException
Operation
BaseOperation
.
The token can be retrieved by BaseOperation.getClientToken()
.beforeInvoke
in interface Operation<com.lexmark.saperion.document.DocumentStoreInformationType>
beforeInvoke
in class BaseOperation<com.lexmark.saperion.document.DocumentStoreInformationType>
token
- session tokenconnection
- the connection the operation is invoked onSaAuthenticationException
SaSystemException
public com.lexmark.saperion.document.DocumentStoreInformationType invoke() throws SaBasicException
Operation
SaBasicException
- exception when invoking this operationCopyright © 2016 SAPERION AG. All rights reserved.