fr.paris.lutece.plugins.stock.modules.tickets.service
Interface IShowService

All Known Implementing Classes:
ShowService

@Transactional
public interface IShowService

IProductService.


Method Summary
 void doDeleteProduct(int nIdProduct)
          Delete the product.
 ShowDTO doSaveProduct(ShowDTO product, java.io.File[] filePosterArray)
          Modifies a product.
 java.util.List<ShowDTO> findAll()
          Return a list of all products.
 java.util.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(java.lang.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.
 java.util.List<ShowDTO> getComeProduct(java.util.List<java.lang.String> orderList, fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginator)
          Return a list of product with date_start after the current date.
 java.util.List<ShowDTO> getCurrentAndComeProduct(java.util.List<java.lang.String> orderList)
          Return a list of product with date_end after the current date.
 java.util.List<ShowDTO> getCurrentProduct(java.util.List<java.lang.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(java.lang.Integer idProduct)
          Gets the image data.
 ShowDTO getProduct(int nIdProduct)
          Return the product object.
 byte[] getTbImage(java.lang.Integer idProduct)
          Gets the thumbnail image.
 void init()
          Init the product service and register it in the global product service.
 

Method Detail

init

void init()
Init the product service and register it in the global product service.


doDeleteProduct

void doDeleteProduct(int nIdProduct)
Delete the product.

Parameters:
nIdProduct - the id of the product to delete

getProduct

ShowDTO getProduct(int nIdProduct)
Return the product object.

Parameters:
nIdProduct - the product id
Returns:
the product

findByFilter

java.util.List<ShowDTO> findByFilter(fr.paris.lutece.plugins.stock.business.product.ProductFilter filter)
Return a filtered list of product.

Parameters:
filter - the product filter
Returns:
list of product

findByFilter

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.

Parameters:
filter - the product filter
paginationProperties - the pagination properties
Returns:
list of product

doSaveProduct

ShowDTO doSaveProduct(ShowDTO product,
                      java.io.File[] filePosterArray)
                      throws fr.paris.lutece.plugins.stock.commons.exception.ValidationException
Modifies a product.

Parameters:
product - The product to modify in database
filePosterArray - files poster
Returns:
the product
Throws:
fr.paris.lutece.plugins.stock.commons.exception.ValidationException - the validation exception

findById

ShowDTO findById(java.lang.Integer nIdProduct)
Find by id.

Parameters:
nIdProduct - the n id product
Returns:
the show dto

getAllProduct

fr.paris.lutece.plugins.stock.commons.ResultList<ShowDTO> getAllProduct(fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
Return a list of all products.

Parameters:
paginationProperties - the pagination properties
Returns:
list of product

findAll

java.util.List<ShowDTO> findAll()
Return a list of all products.

Returns:
list of product

getCurrentProduct

java.util.List<ShowDTO> getCurrentProduct(java.util.List<java.lang.String> orderList,
                                          fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginator)
Return a list of products with date_end after the current date.

Parameters:
orderList - the list of orders
paginator - the paginator
Returns:
list of product

getComeProduct

java.util.List<ShowDTO> getComeProduct(java.util.List<java.lang.String> orderList,
                                       fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginator)
Return a list of product with date_start after the current date.

Parameters:
orderList - the order list
paginator - the paginator
Returns:
list of product

getCurrentAndComeProduct

java.util.List<ShowDTO> getCurrentAndComeProduct(java.util.List<java.lang.String> orderList)
Return a list of product with date_end after the current date.

Parameters:
orderList - the order list
Returns:
list of product

getImage

byte[] getImage(java.lang.Integer idProduct)
Gets the image data.

Parameters:
idProduct - the id product
Returns:
the image

getTbImage

byte[] getTbImage(java.lang.Integer idProduct)
Gets the thumbnail image.

Parameters:
idProduct - the id product
Returns:
the tb image


Copyright © 2012 Mairie de Paris. All Rights Reserved.