com.ibm.commerce.messaging.commands

Class GetPriceAndAvailabilityCmdImpl

  • All Implemented Interfaces:
    BusinessPolicyCommand, com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, RequestOrderQuotationPolicyCmd, 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 GetPriceAndAvailabilityCmdImpl
    extends BusinessPolicyCommandImpl
    implements RequestOrderQuotationPolicyCmd
    The GetPriceAndAvailabilityCmd Policy Command Implementation is called by the StoreRequestOrderQuotationCmd Task Command to send out the priceAndAvailability message inquiry request. Given the priceAndAvailability object, uses the messaging outbound services to compose the priceAndAvailability message and sends it out. If the command is successful, it will send out the priceAndAvailability 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

      • GetPriceAndAvailabilityCmdImpl

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

      • setRequestProperties

        public void setRequestProperties(TypedProperty requestProperties)
        This method 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.
        Specified by:
        setCollabSpace in interface RequestOrderQuotationPolicyCmd
        Parameters:
        newCollabSpace - The collaboration name to set
      • getName

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

        public void setName(java.lang.String newName)
        /** This method sets the name of the partner.
        Specified by:
        setName in interface RequestOrderQuotationPolicyCmd
        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.
        Specified by:
        setPolicy in interface RequestOrderQuotationPolicyCmd
        Parameters:
        newPolicy - The policy to set.
      • getUomStandard

        public java.lang.String getUomStandard()
        This method gets the unit of measure standard.
        Returns:
        The Unit of Measure standard used to communicate.
      • setUomStandard

        public void setUomStandard(java.lang.String newUomStandard)
        This method sets the unit of measure standard.
        Specified by:
        setUomStandard in interface RequestOrderQuotationPolicyCmd
        Parameters:
        newUomStandard - The Unit of Measure standard to set.
      • getBackOrders

        public boolean getBackOrders()
        This method gets the backOrders flag.
        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 flag.
        Specified by:
        setBackOrders in interface RequestOrderQuotationPolicyCmd
        Parameters:
        newBackOrders - The backOrders to set
      • getTimeout

        public long getTimeout()
        This method gets the request timeout.
        Returns:
        The time for waiting requested request.
      • setTimeout

        public void setTimeout(long newTimeout)
        This method sets the request timeout.
        Specified by:
        setTimeout in interface RequestOrderQuotationPolicyCmd
        Parameters:
        newTimeout - The time for waiting on a request.
      • getEnabled

        public boolean getEnabled()
        This method gets whether 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 whether the partner will accept this request.
        Specified by:
        setEnabled in interface RequestOrderQuotationPolicyCmd
        Parameters:
        isEnabled - If the policy command is enabled.
      • getAuthenticationRequired

        public boolean getAuthenticationRequired()
        This method gets whether authentication is required.
        Returns:
        true if the partner require a userid and password on the request message; false otherwise.
      • setAuthenticationRequired

        public void setAuthenticationRequired(boolean isAuthenticationRequired)
        This method sets whether authentication is required.
        Specified by:
        setAuthenticationRequired in interface RequestOrderQuotationPolicyCmd
        Parameters:
        isAuthenticationRequired - If the partner requires a userid and password on the request message.
      • setPriceAvailabilityRequest

        public void setPriceAvailabilityRequest(com.ibm.commerce.domain.order.PriceAndAvailabilityRequest requestObj)
                                         throws ECSystemException
        This method sets the priceAndAvailabilityRequest bean.
        Specified by:
        setPriceAvailabilityRequest in interface RequestOrderQuotationPolicyCmd
        Parameters:
        requestObj - The priceAndAvailabilityRequest bean set by the caller.
        Throws:
        ECSystemException - Raised with message _ERR_UNSUPPORTED_ENCODING whenever an invalid encoding is used.