com.ibm.commerce.order.commands

Class CheckOrderBuyableCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CheckOrderBuyableCmd, 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 CheckOrderBuyableCmdImpl
    extends TaskCommandImpl
    implements CheckOrderBuyableCmd
    This command checks whether the order is buyable.

    Behavior

    The command does the following:

    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

      • CheckOrderBuyableCmdImpl

        public CheckOrderBuyableCmdImpl()
    • Method Detail

      • setOrderItems

        public void setOrderItems(java.util.Vector iOrderItems)
        Sets order items
        Parameters:
        iOrderItems -
      • getOrderItems

        public java.util.Vector getOrderItems()
        Gets order items
        Returns:
        ivOrderItems
      • setNotBuyable

        public void setNotBuyable(java.lang.String[] catEntryList)
        Set catalog entry which is not buyable
        Parameters:
        catEntryList -
      • setMarkForDelete

        public void setMarkForDelete(java.lang.String[] catEntryList)
        Set catalog entry which is marked for delete
        Parameters:
        catEntryList -
      • getNotBuyable

        public java.lang.String[] getNotBuyable()
        Get catalog entry ids which is not buyable
        Specified by:
        getNotBuyable in interface CheckOrderBuyableCmd
        Returns:
        vNotBuyable String array of catalog entry list which is not buyable
      • getMarkForDelete

        public java.lang.String[] getMarkForDelete()
        Get catalog entry ids which is marked for delete
        Specified by:
        getMarkForDelete in interface CheckOrderBuyableCmd
        Returns:
        vMarkForDelete String array of catalog entry list which is marked for delete
      • performExecute

        public void performExecute()
                            throws ECException
        This is the default implementation of this task command. It get all order items' access bean and catalog entry access bean first. Then, check each catalog entry and generate two catalog entry list including marked for delete and not buyable.
        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()
        reset all parameters
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand