com.ibm.commerce.order.utils

Interface ResolveOrdersCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
    All Known Implementing Classes:
    ResolveOrdersCmdImpl


    public interface ResolveOrdersCmd
    extends TaskCommand
    This task command is called by other Order commands to resolve order abbreviations (for example, '*').
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        IBM copyright statement
        See Also:
        Constant Field Values
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The implementation of this command
        See Also:
        Constant Field Values
      • NO_ORDER

        static final java.lang.String NO_ORDER
        Parameter for no orders
        See Also:
        Constant Field Values
      • ALL_ORDER_TEMPLATES

        static final java.lang.String ALL_ORDER_TEMPLATES
        Parameter for all order templates
        See Also:
        Constant Field Values
      • ALL_PENDING_ORDERS

        static final java.lang.String ALL_PENDING_ORDERS
        Parameter for all pending orders
        See Also:
        Constant Field Values
      • CURRENT_NEW_CURRENT

        static final java.lang.String CURRENT_NEW_CURRENT
        Parameter for current and new orders
        See Also:
        Constant Field Values
      • CURRENT_ORDER_TEMPLATES

        static final java.lang.String CURRENT_ORDER_TEMPLATES
        Parameter for the current order templates
        See Also:
        Constant Field Values
      • CURRENT_PENDING_ORDERS

        static final java.lang.String CURRENT_PENDING_ORDERS
        Parameter for current and pending orders
        See Also:
        Constant Field Values
      • NEW_PENDING_ORDER

        static final java.lang.String NEW_PENDING_ORDER
        Parameter for new and pending orders
        See Also:
        Constant Field Values
      • EC_TOKEN_PARENT

        static final java.lang.String EC_TOKEN_PARENT
        Parameter for the parent token
        See Also:
        Constant Field Values
      • EC_TOKEN_CHILD

        static final java.lang.String EC_TOKEN_CHILD
        Parameter for teh child token
        See Also:
        Constant Field Values
    • Method Detail

      • getOrderIds

        java.lang.Long[] getOrderIds()
        Gets the order ids
        Returns:
        An array of the order ids.
      • getOrders

        OrderAccessBean[] getOrders()
        Gets the orders
        Returns:
        An array of the Orders
      • isNewPendingOrder

        boolean isNewPendingOrder()
        Deprecated. This method is replaced by the method getUnprocessedAbbreviations().
        This method is equivalent to (getUnprocessedAbbreviations() != null && getUnprocessedAbbreviations().contains(ResolveOrdersCmd.NEW_PENDING_ORDER))
        Returns:
        true if the order is new pending, false otherwise
      • isSetToCurrent

        boolean isSetToCurrent()
        Deprecated. This method is replaced by the method getUnprocessedAbbreviations().
        This method is equivalent to (getUnprocessedAbbreviations() != null && getUnprocessedAbbreviations().contains(ResolveOrdersCmd.CURRENT_NEW_CURRENT))
        Returns:
        true if it is set to a current order, false otherwise
      • setMemberId

        void setMemberId(java.lang.Long anMemberId)
        Sets the member ID
        Parameters:
        anMemberId - the member id
      • setOrderAbbreviations

        void setOrderAbbreviations(java.lang.String[] astrOrderAbbreviations)
        Sets the order abbreviations
        Parameters:
        astrOrderAbbreviations - a String array of order abbreviations.
      • setStoreId

        void setStoreId(java.lang.Integer anStoreId)
        Sets the store ID
        Parameters:
        anStoreId - the store ID
      • setStrict

        void setStrict(boolean strict)
        Deprecated. This method is replaced by the method setForeignOrdersAllowed(boolean)
        This method is equivalent to setForeignOrdersAllowed(!strict)
        Parameters:
        strict - false if foreign orders are allowed, true otherwise
      • setForeignOrdersAllowed

        void setForeignOrdersAllowed(boolean abForeignOrdersAllowed)
        Sets if foreign orders are allowed
        Parameters:
        abForeignOrdersAllowed - true if foreign orders are allowed, false otherwise
      • setAllowedAbbreviations

        void setAllowedAbbreviations(java.util.Set asetAllowedAbbreviations)
        Sets the allowed abbreviations
        Parameters:
        asetAllowedAbbreviations - a Set of the allowed abbreviations
      • setDisallowedAbbreviations

        void setDisallowedAbbreviations(java.util.Set asetDisallowedAbbreviations)
        Sets the abbreviations that are not allowed
        Parameters:
        asetDisallowedAbbreviations - a Set of the disallowed abbreviations
      • getUnprocessedAbbreviations

        java.util.Set getUnprocessedAbbreviations()
        Gets the unprocessed abbreviations
        Returns:
        The unprocessed abbreviations
      • setIncompleteParsingAllowed

        void setIncompleteParsingAllowed(boolean abIncompleteParsingAllowed)
        Sets if incomplete parsing is allowed
        Parameters:
        abIncompleteParsingAllowed - true if incomplete parsing is allowed, false otherwise
      • setInitialParsingPosition

        void setInitialParsingPosition(int anInitialParsingPosition)
        Sets the initial paring position
        Parameters:
        anInitialParsingPosition - an int value indicating the initial parsing position
      • getParsingPosition

        int getParsingPosition()
        Gets the parsing position
        Returns:
        The parsing position