public class ProductService extends fr.paris.lutece.plugins.stock.service.impl.AbstractService implements IProductService
| Constructor and Description |
|---|
ProductService() |
| Modifier and Type | Method and Description |
|---|---|
List<Product> |
findByFilter(ProductFilter productFilter)
Find by filter and returns a list of products
|
List<Product> |
getAllProduct()
Return a list of products
|
List<Integer> |
getProductsIdsForTaskTimed(String keyDate,
Timestamp timestampStart,
Timestamp timestampEnd)
Returns products IDs between two timestamps
|
Boolean |
isFull(Integer productId)
Check if product is ful
|
Boolean |
isType(Integer productId,
Integer genreId)
Check if product is type of representation
|
Boolean |
isTypeOffer(Integer productId,
Integer genreId,
String keyDate,
Timestamp now,
String annuleKey) |
public List<Product> getAllProduct()
getAllProduct in interface IProductServicepublic Boolean isFull(Integer productId)
isFull in interface IProductServiceproductId - the product idpublic Boolean isType(Integer productId, Integer genreId)
isType in interface IProductServicegenreId - the genre to checkpublic Boolean isTypeOffer(Integer productId, Integer genreId, String keyDate, Timestamp now, String annuleKey)
isTypeOffer in interface IProductServicepublic List<Product> findByFilter(ProductFilter productFilter)
findByFilter in interface IProductServiceproductFilter - the filterpublic List<Integer> getProductsIdsForTaskTimed(String keyDate, Timestamp timestampStart, Timestamp timestampEnd)
getProductsIdsForTaskTimed in interface IProductServicekeyDate - the attribute keytimestampStart - the start timestamptimestamsEnd - the end timestampCopyright © 2023 City of Paris. All rights reserved.