public class OfferService extends fr.paris.lutece.plugins.stock.service.impl.AbstractService implements IOfferService
| Constructor and Description |
|---|
OfferService() |
| Modifier and Type | Method and Description |
|---|---|
Offer |
findById(Integer offerId)
Returns offer
|
List<Offer> |
findByProduct(Integer productId)
List all offers for a product
|
Integer |
getQuantity(Integer offerId)
Return available quantity of offer
|
public List<Offer> findByProduct(Integer productId)
findByProduct in interface IOfferServiceproductId - product to findOfferpublic Integer getQuantity(Integer offerId)
getQuantity in interface IOfferServiceofferId - offer idpublic Offer findById(Integer offerId)
findById in interface IOfferServiceofferId - id of offerCopyright © 2019 City of Paris. All rights reserved.