public class LegacyOperationAdapter<ResultType extends Serializable,EcmExceptionType extends com.lexmark.saperion.exceptions.EcmException> extends LegacyOperation<ResultType>
LegacyOperation
enables legacy connections
to invoke
new operations
. It is a work around for the time where ecm server and legacy jcs still are
the same process.Modifier and Type | Class and Description |
---|---|
static class |
LegacyOperationAdapter.EcmExceptionWrapper |
Constructor and Description |
---|
LegacyOperationAdapter(com.lexmark.saperion.remote.common.operations.Operation<ResultType,EcmExceptionType,com.lexmark.saperion.remote.common.Connection> ecmOperation)
This constructor creates an adapter that adapts the given ecm operation to a legacy operation.
|
Modifier and Type | Method and Description |
---|---|
void |
afterInvoke(Object result,
LegacyConnection connection) |
void |
beforeInvoke(int token,
LegacyConnection connection) |
com.lexmark.saperion.remote.common.operations.Operation<ResultType,EcmExceptionType,com.lexmark.saperion.remote.common.Connection> |
getEcmOperation() |
ResultType |
invoke() |
com.lexmark.saperion.remote.common.Connection |
newConnection(LegacyConnection connection) |
String |
toString() |
beforeInvoke, getClientToken, mapEcmException, mapException
getResult, toArrayList, toCaseInsensitiveMap, toHashMap
public LegacyOperationAdapter(com.lexmark.saperion.remote.common.operations.Operation<ResultType,EcmExceptionType,com.lexmark.saperion.remote.common.Connection> ecmOperation)
ecmOperation
- the operation to adaptpublic ResultType invoke() throws SaBasicException
SaBasicException
public com.lexmark.saperion.remote.common.operations.Operation<ResultType,EcmExceptionType,com.lexmark.saperion.remote.common.Connection> getEcmOperation()
public String toString()
toString
in class com.lexmark.saperion.remote.common.operations.AbstractOperation<ResultType extends Serializable,SaBasicException,LegacyConnection>
public void beforeInvoke(int token, LegacyConnection connection) throws SaBasicException
beforeInvoke
in class LegacyOperation<ResultType extends Serializable>
SaBasicException
public com.lexmark.saperion.remote.common.Connection newConnection(LegacyConnection connection)
public void afterInvoke(Object result, LegacyConnection connection)
afterInvoke
in interface com.lexmark.saperion.remote.common.operations.Operation<ResultType extends Serializable,SaBasicException,LegacyConnection>
afterInvoke
in class com.lexmark.saperion.remote.common.operations.AbstractOperation<ResultType extends Serializable,SaBasicException,LegacyConnection>
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.