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 TypeMethodDescriptionvoidafterInvoke(Object result, LegacyConnection connection) voidbeforeInvoke(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.ConnectionnewConnection(LegacyConnection connection) toString()Methods inherited from class com.saperion.operations.LegacyOperation
beforeInvoke, getClientToken, mapEcmException, mapExceptionMethods inherited from class com.lexmark.saperion.remote.common.operations.AbstractOperation
getResult, toArrayList, toCaseInsensitiveMap, toHashMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
toStringin classcom.lexmark.saperion.remote.common.operations.AbstractOperation<ResultType extends Serializable,SaBasicException, LegacyConnection>
-
beforeInvoke
- Overrides:
beforeInvokein classLegacyOperation<ResultType extends Serializable>- Throws:
SaBasicException
-
newConnection
-
afterInvoke
- Specified by:
afterInvokein interfacecom.lexmark.saperion.remote.common.operations.Operation<ResultType extends Serializable,SaBasicException, LegacyConnection> - Overrides:
afterInvokein classcom.lexmark.saperion.remote.common.operations.AbstractOperation<ResultType extends Serializable,SaBasicException, LegacyConnection>
-