public abstract class ProcProcessPaymentGroup extends GenericService implements PipelineProcessor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
static int |
SUCCESS
The possible return value for this processor.
|
SERVICE_INFO_KEY
STOP_CHAIN_EXECUTION, STOP_CHAIN_EXECUTION_AND_COMMIT, STOP_CHAIN_EXECUTION_AND_ROLLBACK
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
ProcProcessPaymentGroup()
Empty Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract PaymentStatus |
authorizePaymentGroup(PaymentManagerPipelineArgs pParams)
Method called to perform an authorization of a PaymentGroup.
|
abstract PaymentStatus |
creditPaymentGroup(PaymentManagerPipelineArgs pParams)
Method called to perform a credit of a PaymentGroup.
|
abstract PaymentStatus |
debitPaymentGroup(PaymentManagerPipelineArgs pParams)
Method called to perform a debit of a PaymentGroup.
|
PaymentStatus |
decreaseAuthorizationForPaymentGroup(PaymentManagerPipelineArgs pParams)
Method called to perform a decrease in authorization for a payment group.
|
int[] |
getRetCodes()
The possible return values for this processor.
|
protected void |
invokeProcessorAction(PaymentManagerAction pProcessorAction,
PaymentManagerPipelineArgs pParams)
Method which can distribute a particular chain invocation
to the correct method to invoke.
|
int |
runProcess(java.lang.Object pParam,
PipelineResult pResult)
This method is the one called by the pipelin chain.
|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static java.lang.String CLASS_VERSION
public static final int SUCCESS
protected void invokeProcessorAction(PaymentManagerAction pProcessorAction, PaymentManagerPipelineArgs pParams) throws CommerceException
pParams
map using PipelineConstants.PAYMENT_STATUS
as the key.pProcessorAction
- the action to perform. Should match
a value in atg.commerce.payment.ConstantspParams
- map of params handed to pipeline chainCommerceException
- if an error occurspublic PaymentStatus decreaseAuthorizationForPaymentGroup(PaymentManagerPipelineArgs pParams) throws CommerceException
This implementations does nothing by default and returns null.
pParams
- params handed to pipeline processorPaymentStatus
valueCommerceException
- if an error occurspublic abstract PaymentStatus authorizePaymentGroup(PaymentManagerPipelineArgs pParams) throws CommerceException
pParams
- params handed to pipeline processorPaymentStatus
valueCommerceException
- if an error occurspublic abstract PaymentStatus debitPaymentGroup(PaymentManagerPipelineArgs pParams) throws CommerceException
pParams
- params handed to pipeline processorPaymentStatus
valueCommerceException
- if an error occurspublic abstract PaymentStatus creditPaymentGroup(PaymentManagerPipelineArgs pParams) throws CommerceException
pParams
- params handed to pipeline processorPaymentStatus
valueCommerceException
- if an error occurspublic int runProcess(java.lang.Object pParam, PipelineResult pResult) throws java.lang.Exception
PipelineConstants.PAYMENT_PROC_ACTION
value from the pipeline and then call
invokeProcessorAction() with this values.
Classes will have to subclass this class in order to provide
meaningful implementations of the auth, debit and credit methods.
runProcess
in interface PipelineProcessor
pParam
- an Object
valuepResult
- a PipelineResult
valueint
valuejava.lang.Exception
- if an error occurspublic int[] getRetCodes()
getRetCodes
in interface PipelineProcessor
int[]
value. This is
just the SUCCESS
value.