@Transactional
public interface IShowService
Modifier and Type | Method and Description |
---|---|
void |
correctProduct(ShowDTO product)
Check if rules should be apply to the product
|
void |
doDeleteProduct(int nIdProduct)
Delete the product.
|
ShowDTO |
doSaveProduct(ShowDTO product,
File[] filePosterArray)
Modifies a product.
|
List<ShowDTO> |
findAll()
Return a list of all products.
|
List<ShowDTO> |
findByFilter(fr.paris.lutece.plugins.stock.business.product.ProductFilter filter)
Return a filtered list of product.
|
fr.paris.lutece.plugins.stock.commons.ResultList<ShowDTO> |
findByFilter(fr.paris.lutece.plugins.stock.business.product.ProductFilter filter,
fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
Return a filtered list of product.
|
ShowDTO |
findById(Integer nIdProduct)
Find by id.
|
fr.paris.lutece.plugins.stock.commons.ResultList<ShowDTO> |
getAllProduct(fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
Return a list of all products.
|
List<ShowDTO> |
getComeProduct(List<String> orderList,
fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginator)
Return a list of product with date_start after the current date.
|
List<ShowDTO> |
getCurrentAndComeProduct(List<String> orderList)
Return a list of product with date_end after the current date.
|
List<ShowDTO> |
getCurrentProduct(List<String> orderList,
fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginator)
Return a list of products with date_end after the current date.
|
byte[] |
getImage(Integer idProduct)
Gets the image data.
|
ShowDTO |
getProduct(int nIdProduct)
Return the product object.
|
fr.paris.lutece.plugins.stock.business.product.Product |
getProductById(Integer id) |
byte[] |
getRealImage(Integer idProduct)
Gets the real image.
|
byte[] |
getTbImage(Integer idProduct)
Gets the thumbnail image.
|
void |
init()
Init the product service and register it in the global product service.
|
void init()
void doDeleteProduct(int nIdProduct)
nIdProduct
- the id of the product to deleteShowDTO getProduct(int nIdProduct)
nIdProduct
- the product idfr.paris.lutece.plugins.stock.business.product.Product getProductById(Integer id)
List<ShowDTO> findByFilter(fr.paris.lutece.plugins.stock.business.product.ProductFilter filter)
filter
- the product filterfr.paris.lutece.plugins.stock.commons.ResultList<ShowDTO> findByFilter(fr.paris.lutece.plugins.stock.business.product.ProductFilter filter, fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
filter
- the product filterpaginationProperties
- the pagination propertiesShowDTO doSaveProduct(ShowDTO product, File[] filePosterArray) throws fr.paris.lutece.plugins.stock.commons.exception.ValidationException
product
- The product to modify in databasefilePosterArray
- files posterfr.paris.lutece.plugins.stock.commons.exception.ValidationException
- the validation exceptionShowDTO findById(Integer nIdProduct)
nIdProduct
- the n id productfr.paris.lutece.plugins.stock.commons.ResultList<ShowDTO> getAllProduct(fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
paginationProperties
- the pagination propertiesList<ShowDTO> getCurrentProduct(List<String> orderList, fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginator)
orderList
- the list of orderspaginator
- the paginatorList<ShowDTO> getComeProduct(List<String> orderList, fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginator)
orderList
- the order listpaginator
- the paginatorList<ShowDTO> getCurrentAndComeProduct(List<String> orderList)
orderList
- the order listbyte[] getImage(Integer idProduct)
idProduct
- the id productbyte[] getTbImage(Integer idProduct)
idProduct
- the id productbyte[] getRealImage(Integer idProduct)
idProduct
- the id productvoid correctProduct(ShowDTO product)
product
- the product to checkCopyright © 2020 City of Paris. All rights reserved.