Class GetPriceAndAvailabilityCmdImpl

  • All Implemented Interfaces:
    BusinessPolicyCommand,, ECCommand, ECTargetableCommand, TaskCommand, RequestOrderQuotationPolicyCmd,,,,,,

    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


        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
        setRequestProperties in class BusinessPolicyCommandImpl
        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.
        The collaboration name
      • setCollabSpace

        public void setCollabSpace(java.lang.String newCollabSpace)
        This method sets the collaboration name.
        Specified by:
        setCollabSpace in interface RequestOrderQuotationPolicyCmd
        newCollabSpace - The collaboration name to set
      • getName

        public java.lang.String getName()
        This method gets the name of the partner.
        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
        newName - The name of the partner to set
      • getPolicy

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

        public void setPolicy(java.lang.String newPolicy)
        This method sets the policy.
        Specified by:
        setPolicy in interface RequestOrderQuotationPolicyCmd
        newPolicy - The policy to set.
      • getUomStandard

        public java.lang.String getUomStandard()
        This method gets the unit of measure standard.
        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
        newUomStandard - The Unit of Measure standard to set.
      • getBackOrders

        public boolean getBackOrders()
        This method gets the backOrders flag.
        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
        newBackOrders - The backOrders to set
      • getTimeout

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

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

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

        public boolean getAuthenticationRequired()
        This method gets whether authentication is required.
        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
        isAuthenticationRequired - If the partner requires a userid and password on the request message.
      • setPriceAvailabilityRequest

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