@Transactional(rollbackFor=java.lang.Exception.class) public class SeanceService extends fr.paris.lutece.plugins.stock.service.OfferService implements ISeanceService
Modifier and Type | Field and Description |
---|---|
static String |
RESOURCE_TYPE
The Constant RESOURCE_TYPE.
|
static String |
RIGHT_MANAGE_OFFRES
The Constant RIGHT_MANAGE_OFFRES.
|
Constructor and Description |
---|
SeanceService() |
Modifier and Type | Method and Description |
---|---|
void |
checkAvailability(Integer offerId,
String userName)
Check availability.
|
void |
doDeleteOffer(int nIdOffer)
Delete a seance.
|
void |
doMasseDeleteOffer(List<Integer> nIdsOffer)
Same action as doDeleteOffer but with many offer
|
void |
doSaveOffer(SeanceDTO offer)
Modifies a seance.
|
List<SeanceDTO> |
findAll()
Find all.
|
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.
|
List<SeanceDTO> |
findSeanceByDate(Integer showId,
Date dateHour)
Find seance by date and hour.
|
SeanceDTO |
findSeanceById(Integer nIdOffer)
Return an offer by his id.
|
List<String> |
findSeanceByShow(Integer showId,
fr.paris.lutece.plugins.stock.business.offer.OfferFilter filter,
Locale locale)
List of seance dates for a show.
|
void |
init()
Init this service.
|
void |
update(SeanceDTO offer)
Update.
|
public static final String RIGHT_MANAGE_OFFRES
public static final String RESOURCE_TYPE
public void init()
init
in interface ISeanceService
public void doSaveOffer(SeanceDTO offer)
doSaveOffer
in interface ISeanceService
offer
- The seance to modify in databasepublic void doDeleteOffer(int nIdOffer)
doDeleteOffer
in interface ISeanceService
nIdOffer
- the identifier of the seance to deletepublic void doMasseDeleteOffer(List<Integer> nIdsOffer)
doMasseDeleteOffer
in interface ISeanceService
nIdsOffer
- the list of offer which must be deletepublic void update(SeanceDTO offer)
update
in interface ISeanceService
offer
- the offerpublic 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)
findByFilter
in interface ISeanceService
filter
- the filterpaginationProperties
- the pagination propertiespublic List<SeanceDTO> findAll()
findAll
in interface ISeanceService
public SeanceDTO findSeanceById(Integer nIdOffer)
findSeanceById
in interface ISeanceService
nIdOffer
- offer idpublic List<fr.paris.lutece.plugins.stock.business.offer.OfferGenre> findAllGenre()
findAllGenre
in interface ISeanceService
public List<String> findSeanceByShow(Integer showId, fr.paris.lutece.plugins.stock.business.offer.OfferFilter filter, Locale locale)
findSeanceByShow
in interface ISeanceService
showId
- id of the showfilter
- offer filterlocale
- the localepublic List<SeanceDTO> findSeanceByDate(Integer showId, Date dateHour)
findSeanceByDate
in interface ISeanceService
showId
- the show iddateHour
- date and hourCopyright © 2020 City of Paris. All rights reserved.