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

All Known Implementing Classes:
SeanceService

@Transactional(rollbackFor=java.lang.Exception.class)
public interface ISeanceService

The Interface ISeanceService.


Method Summary
 void doDeleteOffer(int nIdSeance)
          Delete a seance.
 void doSaveOffer(SeanceDTO seance)
          Modifies a seance.
 java.util.List<SeanceDTO> findAll()
          Find all.
 java.util.List<fr.paris.lutece.plugins.stock.business.offer.OfferGenre> findAllGenre()
          Return all the offer genre.
 fr.paris.lutece.plugins.stock.commons.ResultList<SeanceDTO> findByFilter(fr.paris.lutece.plugins.stock.business.offer.OfferFilter filter, fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
          Find by filter.
 java.util.List<SeanceDTO> findSeanceByDate(java.lang.Integer showId, java.util.Date dateHour)
          Find seance by date and hour.
 SeanceDTO findSeanceById(java.lang.Integer nIdOffer)
          Return an offer by his id.
 java.util.List<java.lang.String> findSeanceByShow(java.lang.Integer showId, fr.paris.lutece.plugins.stock.business.offer.OfferFilter filter)
          List of seance dates for a show.
 void init()
          Init this service.
 void update(SeanceDTO offer)
          Update.
 

Method Detail

init

void init()
Init this service.


doSaveOffer

void doSaveOffer(SeanceDTO seance)
Modifies a seance.

Parameters:
seance - The seance to modify in database

doDeleteOffer

void doDeleteOffer(int nIdSeance)
Delete a seance.

Parameters:
nIdSeance - the identifier of the seance to delete

findByFilter

fr.paris.lutece.plugins.stock.commons.ResultList<SeanceDTO> findByFilter(fr.paris.lutece.plugins.stock.business.offer.OfferFilter filter,
                                                                         fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
Find by filter.

Parameters:
filter - the filter
paginationProperties - the pagination properties
Returns:
the offer list filtered

update

void update(SeanceDTO offer)
Update.

Parameters:
offer - the offer

findAll

java.util.List<SeanceDTO> findAll()
Find all.

Returns:
the list

findSeanceById

SeanceDTO findSeanceById(java.lang.Integer nIdOffer)
Return an offer by his id.

Parameters:
nIdOffer - offer id
Returns:
the other

findAllGenre

java.util.List<fr.paris.lutece.plugins.stock.business.offer.OfferGenre> findAllGenre()
Return all the offer genre.

Returns:
the list of offer genre

findSeanceByShow

java.util.List<java.lang.String> findSeanceByShow(java.lang.Integer showId,
                                                  fr.paris.lutece.plugins.stock.business.offer.OfferFilter filter)
List of seance dates for a show.

Parameters:
showId - id of the show
filter - offer filter
Returns:
list of date string

findSeanceByDate

java.util.List<SeanceDTO> findSeanceByDate(java.lang.Integer showId,
                                           java.util.Date dateHour)
Find seance by date and hour.

Parameters:
showId - the show id
dateHour - date and hour
Returns:
seance list


Copyright © 2012 Mairie de Paris. All Rights Reserved.