Interface OrderServiceLocal

    • Method Detail

      • cancelOrdersNotInCurrencies

        int cancelOrdersNotInCurrencies​(User user,
                                        Collection<Currency> currencies)
        Cancels all pending orders which are not linked to the given currencies
      • cancelWithReservedAmount

        int cancelWithReservedAmount​(UserAccount account)
        Cancels all pending orders which have amount reserved on the given account
      • countPending

        Integer countPending​(User user,
                             boolean asSeller,
                             OrderStatus status,
                             Date since)
        Counts pending orders for the current logged user as either seller or buyer, since the given time, or all time if null
      • hasPurchases

        boolean hasPurchases​(User user)
        Returns whether the given user has ever finished a purchase
      • hasSales

        boolean hasSales​(User user)
        Returns whether the given user has ever finished a sale