Package org.cyclos.impl.marketplace
Interface OrderServiceLocal
-
- All Superinterfaces:
CRUDService<OrderDTO,OrderData,OrderDataParams>,CRUDServiceLocal<Order,OrderDTO,OrderData,OrderDataParams>,OrderService,Service
public interface OrderServiceLocal extends OrderService, CRUDServiceLocal<Order,OrderDTO,OrderData,OrderDataParams>
Local interface forOrderService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcancelOrdersNotInCurrencies(User user, Collection<Currency> currencies)Cancels all pending orders which are not linked to the given currenciesintcancelWithReservedAmount(UserAccount account)Cancels all pending orders which have amount reserved on the given accountIntegercountPending(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 nullOrderfindByOrderNumber(String orderNumber)Returns an order by order number, or throwsEntityNotFoundExceptionif not foundbooleanhasPurchases(User user)Returns whether the given user has ever finished a purchasebooleanhasSales(User user)Returns whether the given user has ever finished a sale-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
Methods inherited from interface org.cyclos.impl.CRUDServiceLocal
find, findAll, getEntityClass, newEntity, remove, removeAll, saveEntity, saveSkippingEntityLog, toDTO, toEntity, validate
-
Methods inherited from interface org.cyclos.services.marketplace.OrderService
accept, addToCart, adjustAndGetMyCart, adjustShoppingCartAndGetData, checkCartStock, checkout, countCartItems, exportOrder, getCheckoutData, getMyCart, getOrderData, getOrderId, getSearchData, modifyQuantityOnCart, reject, removeCart, removeCartById, removeCartItem, search, setDeliveryMethod, submitToBuyer
-
-
-
-
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
-
findByOrderNumber
Order findByOrderNumber(String orderNumber)
Returns an order by order number, or throwsEntityNotFoundExceptionif not found
-
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
-
-