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

All Known Implementing Classes:
PurchaseService

public interface IPurchaseService

The Interface IPurchaseService.


Method Summary
 void doCancelPurchaseList(java.util.List<ReservationDTO> bookingList, java.lang.String sessionId)
          Release a list of reservation.
 void doDeletePurchase(int nIdReservation)
          Delete a reservation.
 ReservationDTO doSavePurchase(ReservationDTO reservation, java.lang.String sessionId)
          Modifies a reservation.
 java.util.List<ReservationDTO> doSavePurchaseList(java.util.List<ReservationDTO> reservation, java.lang.String sessionId)
          Save a list of reservation.
 java.util.List<ReservationDTO> findAll()
          Find all.
 fr.paris.lutece.plugins.stock.commons.ResultList<ReservationDTO> findByFilter(fr.paris.lutece.plugins.stock.business.purchase.PurchaseFilter filter, fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
          Find by filter.
 ReservationDTO findById(java.lang.Integer nIdPurchase)
          Return an purchase by his id.
 java.lang.Integer getNumberOfReservationByIdProductAndUserName(java.lang.Integer id, java.lang.Integer idOfferGenre, java.lang.String userName)
          Return the number of reservation for an offer and an agent.
 void init()
          Init this service.
 void update(ReservationDTO purchase)
          Update.
 

Method Detail

init

void init()
Init this service.


doSavePurchase

ReservationDTO doSavePurchase(ReservationDTO reservation,
                              java.lang.String sessionId)
Modifies a reservation.

Parameters:
reservation - The reservation to modify in database
sessionId - the session id
Returns:
the reservation dto

doSavePurchaseList

java.util.List<ReservationDTO> doSavePurchaseList(java.util.List<ReservationDTO> reservation,
                                                  java.lang.String sessionId)
Save a list of reservation.

Parameters:
reservation - list of reservation
sessionId - the session id
Returns:
the list

doCancelPurchaseList

void doCancelPurchaseList(java.util.List<ReservationDTO> bookingList,
                          java.lang.String sessionId)
Release a list of reservation.

Parameters:
bookingList - the booking list
sessionId - the session id

doDeletePurchase

void doDeletePurchase(int nIdReservation)
Delete a reservation.

Parameters:
nIdReservation - the identifier of the reservation to delete

findByFilter

fr.paris.lutece.plugins.stock.commons.ResultList<ReservationDTO> findByFilter(fr.paris.lutece.plugins.stock.business.purchase.PurchaseFilter filter,
                                                                              fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
Find by filter.

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

update

void update(ReservationDTO purchase)
Update.

Parameters:
purchase - the purchase

findAll

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

Returns:
the list

findById

ReservationDTO findById(java.lang.Integer nIdPurchase)
Return an purchase by his id.

Parameters:
nIdPurchase - purchase id
Returns:
the other

getNumberOfReservationByIdProductAndUserName

java.lang.Integer getNumberOfReservationByIdProductAndUserName(java.lang.Integer id,
                                                               java.lang.Integer idOfferGenre,
                                                               java.lang.String userName)
Return the number of reservation for an offer and an agent.

Parameters:
id - offer id
idOfferGenre - the id offer genre
userName - agent userName
Returns:
number of reservation


Copyright © 2012 Mairie de Paris. All Rights Reserved.