com.ibm.commerce.payment.commands

Class DoCancelCLCmdImpl

  • All Implemented Interfaces:
    BusinessPolicyCommand, com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, DoCancelPolicyCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable

    Deprecated. 

    public class DoCancelCLCmdImpl
    extends BusinessPolicyCommandImpl
    implements DoCancelPolicyCmd
    This DoCancelPolicy business policy command implementation class is the default implementation class for cancelling payment for CreditLine.

    Parameters:

    Parameter Name Type Descriptions
    abOrder OrderAccessBean The Order Access Bean
    errorViewName String Optional error view name passed in by the Caller.

    Behavior:

    • Make sure the Credit Line of the Account is still active.

    Default Error View Name:

    • DoCancelErrorView

    ErrorCodes:

    This command uses the following AccessBeans:

    • AccountAccessBean
    • CreditLineAccessBean
    • OrderAccessBean
    • OrderPaymentMethodAccessBean

    This command does not call other TaskCommand.

    See Also:
    Serialized Form
    • Constructor Detail

      • DoCancelCLCmdImpl

        public DoCancelCLCmdImpl()
        Deprecated. 
    • Method Detail

      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Deprecated. 
        This method is called by the Command Framework to check if all basic mandatory parameters have been set for this command. This is done before the Framework calls the performExecute method of the command.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        true if we can execute the command; false otherwise.
      • setErrorViewName

        public void setErrorViewName(java.lang.String sEVN)
        Deprecated. 
        Sets the error view to be used to report error. This overrides the default error view of the command.
        Specified by:
        setErrorViewName in interface DoCancelPolicyCmd
        Parameters:
        sEVN - the Error View name
        See Also:
        DoCancelPolicyCmd.ERRTASK_NAME
      • setOrder

        public void setOrder(OrderAccessBean ab)
        Deprecated. 
        Sets the order property of the command.
        Specified by:
        setOrder in interface DoCancelPolicyCmd
        Parameters:
        ab - the OrderAccessBean representing the Order whose payment is to be canceled.