com.ibm.commerce.messaging.commands

Class ProductOfferPriceUpdateCmdImpl

    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The internal copyright field.
        See Also:
        Constant Field Values
      • iRequestPropertiesVector

        public java.util.Vector iRequestPropertiesVector
        A vector containing a request property for each update needed.
    • Constructor Detail

      • ProductOfferPriceUpdateCmdImpl

        public ProductOfferPriceUpdateCmdImpl()
    • Method Detail

      • doPostProcess

        public boolean doPostProcess(TypedProperty aRequestProperty)
        This method performs a verification check after the command executes. This method currently always returns true.
        Specified by:
        doPostProcess in interface ProductOfferPriceUpdateCmd
        Parameters:
        aRequestProperty - The request property.
        Returns:
        This method currently always returns true.
        Throws:
        ECException
      • doPreProcess

        public boolean doPreProcess(TypedProperty aRequestProperty)
        This method performs a verification check before the command executes. This method currently always returns true.
        Specified by:
        doPreProcess in interface ProductOfferPriceUpdateCmd
        Parameters:
        aRequestProperty - The request property.
        Returns:
        This method currently always returns true.
        Throws:
        ECException
      • doProcess

        public boolean doProcess(TypedProperty aRequestProperty)
                          throws ECException
        This method updates the product offer price based on the request properties. If a problem with the update occurs, an ECException will be thrown.
        Specified by:
        doProcess in interface ProductOfferPriceUpdateCmd
        Parameters:
        aRequestProperty - The request property
        Returns:
        boolean
        Throws:
        RemoteException - Raised whenever a communication related problems occured
        FinderEception - Raised whenever a request object is not found
        NamingException - Raised whenever a failure to look up the JNDI name occured
        CreateException - Raised whenever a failure to create the EJB occured
        ECException
      • getResourceOwners

        public java.lang.Long[] getResourceOwners()
                                           throws ECException
        This method returns the organization unit reference numbers for all the resources accessed by this command. It will return null if no resource is being accessed by this command.
        Specified by:
        getResourceOwners in interface AccCommand
        Overrides:
        getResourceOwners in class ControllerCommandImpl
        Returns:
        The array of all organization unit reference numbers
        Throws:
        ECException
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        This method indicates whether the command is ready to execute.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
          False if the parents isReadyToCallExecute() fails. Otherwise true.
      • isReadyToCallExecutePerCommandInstance

        public boolean isReadyToCallExecutePerCommandInstance()
        This method indicates whether each command instance is ready to execute.
        Returns:
          False if the parents isReadyToCallExecute() fails. False if the price is null. False if the currency is null. False if the catalog entry ID, offer ID, and product SKU number are null. False if the catalog entry ID, offer ID, and member ID are null. Otherwise true.
      • offerPropertySet

        public void offerPropertySet(OfferAccessBean ab)
                              throws ECException
        This method sets the offer property set
        Parameters:
        The - offer access bean to set.
        Throws:
        ECException - Raised with _ERR_OS_INVALID_NUMERIC whenever a NumberFormatException is thrown Raised with _ERR_OS_INVALID_TIMESTAMP whenever an IllegalArgumentException is thrown
      • performExecute

        public void performExecute()
                            throws ECException
        This method processes each request property in the iRequestPropertiesVector. Before each request property is processed, a precondition check is performed. If the precondition check on the request property succeeds, the business logic runs followed by a postcondition check to ensure integrity is maintained. If either of the three steps fail, an ECException will be thrown.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • setRequestPropertiesPerCommandInstance

        public void setRequestPropertiesPerCommandInstance(TypedProperty aRequestProperties)
                                                    throws ECApplicationException
        This method sets the command instance variables before processing each item in the iRequestPropertiesVector.
        Parameters:
        aRequestProperty - The request property
        Throws:
        ECApplicationException