com.ibm.commerce.inventory.commands

Class UpdateReleaseManifestStatusCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.base.helpers.EJBConstants, com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, UpdateReleaseManifestStatusCmd, ECConstants, ECToolsConstants, 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 UpdateReleaseManifestStatusCmdImpl
    extends TaskCommandImpl
    implements UpdateReleaseManifestStatusCmd, ECConstants, ECToolsConstants, com.ibm.commerce.base.helpers.EJBConstants
    Update order status and fulfillment status after the order release is packed and shipped.

    This command will update the order status and fulfillment status. If the order release is packed and shipped, the status of the order release will be set to 'MNF'. The fulfillment status of all the order items in the order release will be set to 'SHIP'. And the status of the order will be set to 'S' if all order items in the order are packed and shipped.

    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

      • UpdateReleaseManifestStatusCmdImpl

        public UpdateReleaseManifestStatusCmdImpl()
        Default constructor
    • Method Detail

      • getManifestFound

        public java.lang.String getManifestFound()
        Return the flag to indicate if there is any shipment tracking information for the order release is found.
        Specified by:
        getManifestFound in interface UpdateReleaseManifestStatusCmd
        Returns:
        java.lang.String
      • setManifestFound

        public void setManifestFound(java.lang.String newManifestFound)
        Set the flag to indicate if there is any shipment tracking information for the order release is found.
        Specified by:
        setManifestFound in interface UpdateReleaseManifestStatusCmd
        Parameters:
        newManifestFound - java.lang.String
      • setOrdersId

        public void setOrdersId(java.lang.Long newOrdersId)
        Set the order identifier.
        Specified by:
        setOrdersId in interface UpdateReleaseManifestStatusCmd
        Parameters:
        newOrdersId - java.lang.Long
      • setOrdReleaseNum

        public void setOrdReleaseNum(java.lang.Integer newOrdReleaseNum)
        Set order release number.
        Specified by:
        setOrdReleaseNum in interface UpdateReleaseManifestStatusCmd
        Parameters:
        newOrdReleaseNum - java.lang.Integer
      • getOrderItemVector

        public java.util.Vector getOrderItemVector()
        Get the vector or shipped items
        Returns:
        the items that shipped
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        This command is ready to be executed.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        true if ready to call execute
      • performExecute

        public void performExecute()
                            throws ECException
        This method performs the order and fulfillment status. If the order release is packed and shipped, the status of the order release will be set to 'MNF'. The fulfillment status of all the order items in the order release will be set to 'SHIP'. And the status of the order will be set to 'S' if all order items in the order are packed and shipped.

        This method uses the following AccessBeans:

        • ManifestAccessBean
        • OrderReleaseAccessBean
        • OrderItemAccessBean

        This method calls the following task command:

        • ReleaseShipNotify

        Exception:

        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • reset

        public void reset()
        This method resets the command local variable.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand