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>
ThisLegacyOperationenableslegacy connectionsto 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 classLegacyOperationAdapter.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 voidafterInvoke(java.lang.Object result, LegacyConnection connection)voidbeforeInvoke(int token, LegacyConnection connection)com.lexmark.saperion.remote.common.operations.Operation<ResultType,EcmExceptionType,com.lexmark.saperion.remote.common.Connection>getEcmOperation()ResultTypeinvoke()com.lexmark.saperion.remote.common.ConnectionnewConnection(LegacyConnection connection)java.lang.StringtoString()-
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:
toStringin 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:
beforeInvokein 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:
afterInvokein interfacecom.lexmark.saperion.remote.common.operations.Operation<ResultType extends java.io.Serializable,SaBasicException,LegacyConnection>- Overrides:
afterInvokein classcom.lexmark.saperion.remote.common.operations.AbstractOperation<ResultType extends java.io.Serializable,SaBasicException,LegacyConnection>
-
-