public class ShowService extends fr.paris.lutece.plugins.stock.service.ProductService implements IShowService
| Modifier and Type | Field and Description |
|---|---|
static String |
ID_SPRING_DEFAULT |
| Constructor and Description |
|---|
ShowService() |
| 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 products
|
List<ShowDTO> |
getComeProduct(List<String> ordList,
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 |
updateProduct(ShowDTO product) |
public static final String ID_SPRING_DEFAULT
public void init()
init in interface IShowServicepublic void doDeleteProduct(int nIdProduct)
doDeleteProduct in interface IShowServicenIdProduct - the id of the product to deletepublic ShowDTO getProduct(int nIdProduct)
getProduct in interface IShowServicenIdProduct - the product idpublic fr.paris.lutece.plugins.stock.business.product.Product getProductById(Integer id)
getProductById in interface IShowServicepublic List<ShowDTO> findByFilter(fr.paris.lutece.plugins.stock.business.product.ProductFilter filter)
findByFilter in interface IShowServicefilter - the product filter@Transactional(readOnly=false,
propagation=REQUIRES_NEW)
public void updateProduct(ShowDTO product)
public 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)
findByFilter in interface IShowServicefilter - the product filterpaginationProperties - the pagination properties@Transactional(readOnly=false,
propagation=REQUIRES_NEW)
public ShowDTO doSaveProduct(ShowDTO product,
File[] filePosterArray)
throws fr.paris.lutece.plugins.stock.commons.exception.ValidationException
doSaveProduct in interface IShowServiceproduct - The product to modify in databasefilePosterArray - files posterfr.paris.lutece.plugins.stock.commons.exception.ValidationExceptionpublic ShowDTO findById(Integer nIdProduct)
findById in interface IShowServicenIdProduct - the n id productpublic fr.paris.lutece.plugins.stock.commons.ResultList<ShowDTO> getAllProduct(fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
getAllProduct in interface IShowServicepaginationProperties - the pagination propertiespublic List<ShowDTO> findAll()
findAll in interface IShowServicepublic List<ShowDTO> getCurrentProduct(List<String> orderList, fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginator)
getCurrentProduct in interface IShowServiceorderList - the list of orderspaginator - the paginatorpublic List<ShowDTO> getComeProduct(List<String> ordList, fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginator)
getComeProduct in interface IShowServiceordList - the order listpaginator - the paginatorpublic List<ShowDTO> getCurrentAndComeProduct(List<String> orderList)
getCurrentAndComeProduct in interface IShowServiceorderList - the order listpublic byte[] getImage(Integer idProduct)
getImage in interface IShowServiceidProduct - the id productpublic byte[] getTbImage(Integer idProduct)
getTbImage in interface IShowServiceidProduct - the id productpublic byte[] getRealImage(Integer idProduct)
IShowServicegetRealImage in interface IShowServiceidProduct - the id productpublic void correctProduct(ShowDTO product)
IShowServicecorrectProduct in interface IShowServiceproduct - the product to checkCopyright © 2019 City of Paris. All rights reserved.