Package com.saperion.operations
Class LegacyOperationAdapter<ResultType extends Serializable,EcmExceptionType extends com.lexmark.saperion.exceptions.EcmException>
java.lang.Object
com.lexmark.saperion.remote.common.operations.AbstractOperation<T,SaBasicException,LegacyConnection>
com.saperion.operations.LegacyOperation<ResultType>
com.saperion.operations.LegacyOperationAdapter<ResultType,EcmExceptionType>
- All Implemented Interfaces:
com.lexmark.saperion.remote.common.operations.Operation<ResultType,
,SaBasicException, LegacyConnection> Serializable
public class LegacyOperationAdapter<ResultType extends Serializable,EcmExceptionType extends com.lexmark.saperion.exceptions.EcmException>
extends LegacyOperation<ResultType>
This
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.- Author:
- jschwarz
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLegacyOperationAdapter
(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. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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> invoke()
com.lexmark.saperion.remote.common.Connection
newConnection
(LegacyConnection connection) toString()
Methods inherited from class com.saperion.operations.LegacyOperation
beforeInvoke, getClientToken, mapEcmException, mapException
Methods inherited from class com.lexmark.saperion.remote.common.operations.AbstractOperation
getResult, toArrayList, toCaseInsensitiveMap, toHashMap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.lexmark.saperion.remote.common.operations.Operation
audit, dispatchEvent, isAuditable, isEventDispatcher
-
Constructor Details
-
LegacyOperationAdapter
public 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.- Parameters:
ecmOperation
- the operation to adapt
-
-
Method Details
-
invoke
- Throws:
SaBasicException
-
getEcmOperation
public com.lexmark.saperion.remote.common.operations.Operation<ResultType,EcmExceptionType, getEcmOperation()com.lexmark.saperion.remote.common.Connection> -
toString
- Overrides:
toString
in classcom.lexmark.saperion.remote.common.operations.AbstractOperation<ResultType extends Serializable,
SaBasicException, LegacyConnection>
-
beforeInvoke
- Overrides:
beforeInvoke
in classLegacyOperation<ResultType extends Serializable>
- Throws:
SaBasicException
-
newConnection
-
afterInvoke
- Specified by:
afterInvoke
in interfacecom.lexmark.saperion.remote.common.operations.Operation<ResultType extends Serializable,
SaBasicException, LegacyConnection> - Overrides:
afterInvoke
in classcom.lexmark.saperion.remote.common.operations.AbstractOperation<ResultType extends Serializable,
SaBasicException, LegacyConnection>
-