com.ibm.commerce.messaging.commands

Class GetBatchAvailabilityCmdImpl

  • All Implemented Interfaces:
    BusinessPolicyCommand, com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, RequestBatchAvailabilityPolicyCmd, 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


    public class GetBatchAvailabilityCmdImpl
    extends BusinessPolicyCommandImpl
    implements RequestBatchAvailabilityPolicyCmd
    The GetBatchAvailabilityCmd Policy Command Implementation is called by the RequestBatchAvailabilityCmd Task Command to send out the BatchAvailability message inquiry request. The given BatchAvailabilityRequest object uses the messaging outbound services to compose the BatchAvailability message and send it out. If the command is successful, it will send out the BatchAvailability message.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • GetBatchAvailabilityCmdImpl

        public GetBatchAvailabilityCmdImpl()
        The constructor for GetBatchAvailabilityCmdImpl calls its parents constructor.
    • Method Detail

      • performExecute

        public void performExecute()
                            throws ECException
        This method first calls its parent performExecute method and then sends the batch availability message.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - Raised if the message is not sent.
      • setRequestProperties

        public void setRequestProperties(TypedProperty requestProperties)
        Sets the request properties for the policy command.
        Specified by:
        setRequestProperties in interface BusinessPolicyCommand
        Overrides:
        setRequestProperties in class BusinessPolicyCommandImpl
        Parameters:
        requestProperties - The request properties.
        • name: The unique identifier for a partner.
        • collabSpace: The collaboration space name.
        • backOrders: Boolean indicating whether the partner accepts shop carts with items whose availability is zero.
        • timeout: A user interface should not timeout while waiting for a requested request until this many seconds has elapsed.
        • enabled: Boolean indicating whether the partner accepts this request (quote/shop cart/order).
        • uomStandard: The unit of measure standard used to communicate. Usually used in conjunction with QuantityUnitMapping objects.
        • authenticationRequired: Boolean indicating whether the partner requires a userid and password on the request message.
        • policy: The policy to apply.
      • getCollabSpace

        public java.lang.String getCollabSpace()
        This method gets the collaboration name.
        Returns:
        The collaboration name
      • setCollabSpace

        public void setCollabSpace(java.lang.String newCollabSpace)
        This method sets the collaboration name.
        Parameters:
        newCollabSpace - The collaboration name to set
      • getName

        public java.lang.String getName()
        This method gets the partner name.
        Returns:
        The name of this partner
      • setName

        public void setName(java.lang.String newName)
        This method sets the name of the partner.
        Parameters:
        newName - The name of the partner to set
      • getPolicy

        public java.lang.String getPolicy()
        This method gets the policy.
        Returns:
        The policy
      • setPolicy

        public void setPolicy(java.lang.String newPolicy)
        This method sets the policy.
        Parameters:
        newPolicy - The policy to set
      • getUomStandard

        public java.lang.String getUomStandard()
        This method gets the unit of measure standard.
        Returns:
        returns a String
      • setUomStandard

        public void setUomStandard(java.lang.String newUomStandard)
        This method sets the unit of measure standard.
        Parameters:
        newUomStandard - The uomStandard to set
      • getBackOrders

        public boolean getBackOrders()
        This method gets the backOrders.
        Returns:
        true if the partner accepts shop carts with items whose availability is zero; false otherwise.
      • setBackOrders

        public void setBackOrders(boolean newBackOrders)
        This method sets the backOrders
        Parameters:
        newBackOrders - true if the partner accepts shop carts with items whose availability is zero; false otherwise.
      • getTimeout

        public long getTimeout()
        This method gets the number of seconds before a timeout for a requested request occurs
        Returns:
        the timeout for a requested request until this many seconds has elapsed
      • setTimeout

        public void setTimeout(long newTimeout)
        This method sets the timeout in seconds.
        Parameters:
        newTimeout - The timeout to set
      • getEnabled

        public boolean getEnabled()
        This method gets the enabled flag to determine if the partner will accept this request.
        Returns:
        true if the partner accept this request (quote/shop cart/order); false otherwise.
      • setEnabled

        public void setEnabled(boolean isEnabled)
        This method sets the enabled flag to determine if the partner will accept this request.
        Parameters:
        isEnabled - true if the partner accept this request (quote/shop cart/order); false otherwise.
      • getAuthenticationRequired

        public boolean getAuthenticationRequired()
        This method gets the authenticationRequired flag.
        Returns:
        true if the partner requires a userid and password on the request message; false otherwise.
      • setAuthenticationRequired

        public void setAuthenticationRequired(boolean isAuthenticationRequired)
        This method sets the authenticationRequired flag.
        Parameters:
        isAuthenticationRequired - true if the partner require a userid and password on the request message; false otherwise.