fr.paris.lutece.plugins.stock.service
Interface IOfferService

All Known Implementing Classes:
OfferService

@Transactional
public interface IOfferService

IProductService


Method Summary
 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
 

Method Detail

findByProduct

List<Offer> findByProduct(Integer productId)
List all offers for a product

Parameters:
productId - product to find
Returns:
list of corresponding Offer

getQuantity

Integer getQuantity(Integer offerId)
Return available quantity of offer

Parameters:
offerId - offer id
Returns:
quantity available

findById

Offer findById(Integer offerId)
Returns offer

Parameters:
offerId - id of offer
Returns:
offer


Copyright © 2014 Mairie de Paris. All Rights Reserved.