com.ibm.commerce.ordermanagement.commands

Class InitiateIsBlockedOrderCheckCmdImpl

    • Constructor Detail

      • InitiateIsBlockedOrderCheckCmdImpl

        public InitiateIsBlockedOrderCheckCmdImpl()
    • Method Detail

      • setRequestProperties

        public void setRequestProperties(TypedProperty reqProperties)
                                  throws ECException
        The WebController calls the setRequestProperties method before invoking the execute method in this command. It is the responsibility of the implementer of the ControllerCommand to extract the required input parameters from the request properties and perform parameter checking. This method extracts the storeId parameters from the request properties.
        Specified by:
        setRequestProperties in interface ControllerCommand
        Overrides:
        setRequestProperties in class ControllerCommandImpl
        Parameters:
        reqProperties - the TypedProperty object containing the request properties of the command
        Throws:
        ECException
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        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.
      • setOrderId

        public void setOrderId(java.lang.Long passedOrderId)
        Sets the order ID for checking the block status.
        Parameters:
        passedOrderId -
      • setXtensibleCodeCheck

        public void setXtensibleCodeCheck(java.lang.String passedXTensibleCodeCheck)
        Indicates whether to call the User Extensible code as part of order block checking.
        Parameters:
        passedXTensibleCodeCheck -
      • isBlocked

        public boolean isBlocked()
        This method returns value indicating whether extensible code blocked the Order or not.
        Specified by:
        isBlocked in interface InitiateIsBlockedOrderCheckCmd
        Returns:
        the boolean value of whether the extensible code set a block or not.