Package com.saperion.operations
Class LegacyOperationAdapter<ResultType extends java.io.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>
,java.io.Serializable
public class LegacyOperationAdapter<ResultType extends java.io.Serializable,EcmExceptionType extends com.lexmark.saperion.exceptions.EcmException> extends LegacyOperation<ResultType>
ThisLegacyOperation
enableslegacy connections
to invokenew operations
. It is a work around for the time where ecm server and legacy jcs still are the same process.- Author:
- jschwarz
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LegacyOperationAdapter.EcmExceptionWrapper
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterInvoke(java.lang.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)
java.lang.String
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
-
-
-
-
Constructor Detail
-
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 Detail
-
invoke
public ResultType invoke() throws SaBasicException
- Throws:
SaBasicException
-
getEcmOperation
public com.lexmark.saperion.remote.common.operations.Operation<ResultType,EcmExceptionType,com.lexmark.saperion.remote.common.Connection> getEcmOperation()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classcom.lexmark.saperion.remote.common.operations.AbstractOperation<ResultType extends java.io.Serializable,SaBasicException,LegacyConnection>
-
beforeInvoke
public void beforeInvoke(int token, LegacyConnection connection) throws SaBasicException
- Overrides:
beforeInvoke
in classLegacyOperation<ResultType extends java.io.Serializable>
- Throws:
SaBasicException
-
newConnection
public com.lexmark.saperion.remote.common.Connection newConnection(LegacyConnection connection)
-
afterInvoke
public void afterInvoke(java.lang.Object result, LegacyConnection connection)
- Specified by:
afterInvoke
in interfacecom.lexmark.saperion.remote.common.operations.Operation<ResultType extends java.io.Serializable,SaBasicException,LegacyConnection>
- Overrides:
afterInvoke
in classcom.lexmark.saperion.remote.common.operations.AbstractOperation<ResultType extends java.io.Serializable,SaBasicException,LegacyConnection>
-
-