|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.logging.ApplicationLoggingImpl
atg.commerce.order.processor.ProcAuthorizePayment
public class ProcAuthorizePayment
This processor authorizes payment for an Order in the form of a PaymentGroup. It calls the authorize() method in the PaymentManager passing it a list of PaymentGroups.
PaymentManager
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from interface atg.service.pipeline.PipelineProcessor |
---|
STOP_CHAIN_EXECUTION, STOP_CHAIN_EXECUTION_AND_COMMIT, STOP_CHAIN_EXECUTION_AND_ROLLBACK |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
ProcAuthorizePayment()
|
Method Summary | |
---|---|
protected void |
addCreditCardError(PaymentGroup pFailedPaymentGroup,
java.lang.String pStatusMessage,
PipelineResult pResult,
java.util.ResourceBundle pBundle)
This method handles adding authorization error messages to the pipeline result object. |
protected void |
addErrorToPipelineResult(PaymentGroup pFailedPaymentGroup,
java.lang.String pStatusMessage,
PipelineResult pResult,
java.util.ResourceBundle pBundle)
This method handles calling the appropriate method to place errors into the Pipeline Result object. |
protected void |
addGiftCertificateError(PaymentGroup pFailedPaymentGroup,
java.lang.String pStatusMessage,
PipelineResult pResult,
java.util.ResourceBundle pBundle)
This method handles adding authorization error messages to the pipeline result object. |
protected void |
addPaymentGroupError(PaymentGroup pFailedPaymentGroup,
java.lang.String pStatusMessage,
PipelineResult pResult,
java.util.ResourceBundle pBundle)
This method handles adding authorization error messages to the pipeline result object. |
java.lang.String |
getLoggingIdentifier()
Returns property LoggingIdentifier |
PaymentManager |
getPaymentManager()
Returns the paymentManager |
int[] |
getRetCodes()
Returns the valid return codes 1 - The processor completed |
int |
runProcess(java.lang.Object pParam,
PipelineResult pResult)
This method authorizes payment for an Order in the form of a PaymentGroup. |
void |
setLoggingIdentifier(java.lang.String pLoggingIdentifier)
Sets property LoggingIdentifier |
void |
setPaymentManager(PaymentManager pPaymentManager)
Sets the paymentManager |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public ProcAuthorizePayment()
Method Detail |
---|
public int[] getRetCodes()
getRetCodes
in interface PipelineProcessor
public PaymentManager getPaymentManager()
public void setPaymentManager(PaymentManager pPaymentManager)
public void setLoggingIdentifier(java.lang.String pLoggingIdentifier)
setLoggingIdentifier
in class ApplicationLoggingImpl
public java.lang.String getLoggingIdentifier()
getLoggingIdentifier
in class ApplicationLoggingImpl
public int runProcess(java.lang.Object pParam, PipelineResult pResult) throws java.lang.Exception
runProcess
in interface PipelineProcessor
pParam
- a HashMap which must contain an Order objectpResult
- a PipelineResult object which stores any information which must
be returned from this method invokation
java.lang.Exception
- throws any exception back to the callerPipelineProcessor.runProcess(Object, PipelineResult)
,
atg.commerce.payment.PaymentManager#authorize(List)
protected void addErrorToPipelineResult(PaymentGroup pFailedPaymentGroup, java.lang.String pStatusMessage, PipelineResult pResult, java.util.ResourceBundle pBundle)
pFailedPaymentGroup
- the payment group that failed to authorizepStatusMessage
- message indicating why the payment group failed to authorizepResult
- the pipeline result object.pBundle
- resource bundle specific to users localeprotected void addGiftCertificateError(PaymentGroup pFailedPaymentGroup, java.lang.String pStatusMessage, PipelineResult pResult, java.util.ResourceBundle pBundle)
pFailedPaymentGroup
- the payment group that failed to authorizepStatusMessage
- message indicating why the payment group failed to authorizepResult
- the pipeline result object.pBundle
- resource bundle specific to users localeprotected void addCreditCardError(PaymentGroup pFailedPaymentGroup, java.lang.String pStatusMessage, PipelineResult pResult, java.util.ResourceBundle pBundle)
pFailedPaymentGroup
- the payment group that failed to authorizepStatusMessage
- message indicating why the payment group failed to authorizepResult
- the pipeline result object.pBundle
- resource bundle specific to users localeprotected void addPaymentGroupError(PaymentGroup pFailedPaymentGroup, java.lang.String pStatusMessage, PipelineResult pResult, java.util.ResourceBundle pBundle)
pFailedPaymentGroup
- the payment group that failed to authorizepStatusMessage
- message indicating why the payment group failed to authorizepResult
- the pipeline result object.pBundle
- resource bundle specific to users locale
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |