|
||||||||||
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.OfferService
fr.paris.lutece.plugins.stock.modules.tickets.service.SeanceService
@Transactional(rollbackFor=java.lang.Exception.class) public class SeanceService
OfferService.
Field Summary | |
---|---|
static java.lang.String |
RESOURCE_TYPE
The Constant RESOURCE_TYPE. |
static java.lang.String |
RIGHT_MANAGE_OFFRES
The Constant RIGHT_MANAGE_OFFRES. |
Constructor Summary | |
---|---|
SeanceService()
|
Method Summary | |
---|---|
void |
checkAvailability(java.lang.Integer offerId,
java.lang.String userName)
Check availability. |
void |
doDeleteOffer(int nIdOffer)
Delete a seance. |
void |
doSaveOffer(SeanceDTO offer)
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. |
Methods inherited from class fr.paris.lutece.plugins.stock.service.OfferService |
---|
findById, getQuantity |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RIGHT_MANAGE_OFFRES
public static final java.lang.String RESOURCE_TYPE
Constructor Detail |
---|
public SeanceService()
Method Detail |
---|
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 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 properties
public java.util.List<SeanceDTO> findAll()
findAll
in interface ISeanceService
public SeanceDTO findSeanceById(java.lang.Integer nIdOffer)
findSeanceById
in interface ISeanceService
nIdOffer
- offer id
public java.util.List<fr.paris.lutece.plugins.stock.business.offer.OfferGenre> findAllGenre()
findAllGenre
in interface ISeanceService
public java.util.List<java.lang.String> findSeanceByShow(java.lang.Integer showId, fr.paris.lutece.plugins.stock.business.offer.OfferFilter filter)
findSeanceByShow
in interface ISeanceService
showId
- id of the showfilter
- offer filter
public java.util.List<SeanceDTO> findSeanceByDate(java.lang.Integer showId, java.util.Date dateHour)
findSeanceByDate
in interface ISeanceService
showId
- the show iddateHour
- date and hour
public void checkAvailability(java.lang.Integer offerId, java.lang.String userName)
offerId
- the offer iduserName
- the user name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |