|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.stock.service.impl.AbstractService
fr.paris.lutece.plugins.stock.service.ProductService
fr.paris.lutece.plugins.stock.modules.tickets.service.ShowService
public class ShowService
ProductService
| Field Summary | |
|---|---|
static String |
ID_SPRING_DEFAULT
|
| Constructor Summary | |
|---|---|
ShowService()
|
|
| Method Summary | |
|---|---|
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. |
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)
|
| Methods inherited from class fr.paris.lutece.plugins.stock.service.ProductService |
|---|
getAllProduct, isFull, isType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ID_SPRING_DEFAULT
| Constructor Detail |
|---|
public ShowService()
| Method Detail |
|---|
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 id
public 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 poster
fr.paris.lutece.plugins.stock.commons.exception.ValidationExceptionpublic ShowDTO findById(Integer nIdProduct)
findById in interface IShowServicenIdProduct - the n id product
public fr.paris.lutece.plugins.stock.commons.ResultList<ShowDTO> getAllProduct(fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
getAllProduct in interface IShowServicepaginationProperties - the pagination properties
public List<ShowDTO> findAll()
findAll in interface IShowService
public List<ShowDTO> getCurrentProduct(List<String> orderList,
fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginator)
getCurrentProduct in interface IShowServiceorderList - the list of orderspaginator - the paginator
public List<ShowDTO> getComeProduct(List<String> ordList,
fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginator)
getComeProduct in interface IShowServiceordList - the order listpaginator - the paginator
public List<ShowDTO> getCurrentAndComeProduct(List<String> orderList)
getCurrentAndComeProduct in interface IShowServiceorderList - the order list
public byte[] getImage(Integer idProduct)
getImage in interface IShowServiceidProduct - the id product
public byte[] getTbImage(Integer idProduct)
getTbImage in interface IShowServiceidProduct - the id product
public void correctProduct(ShowDTO product)
IShowService
correctProduct in interface IShowServiceproduct - the product to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||