|
||||||||||
| 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.modules.tickets.service.PurchaseService
@Transactional(rollbackFor=java.lang.Exception.class) public final class PurchaseService
PurchaseService.
| Field Summary | |
|---|---|
static java.lang.String |
MESSAGE_ERROR_PURCHASE_QUANTITY_OFFER
The Constant MESSAGE_ERROR_PURCHASE_QUANTITY_OFFER. |
static java.lang.String |
MESSAGE_ERROR_PURCHASE_QUANTITY_OFFER_TYPE
The Constant MESSAGE_ERROR_PURCHASE_QUANTITY_OFFER_TYPE. |
static java.lang.String |
MESSAGE_ERROR_PURCHASE_SESSION_EXPIRED
The Constant MESSAGE_ERROR_PURCHASE_SESSION_EXPIRED. |
static java.lang.String |
MESSAGE_ERROR_PURCHASE_UNAVAILABLE
The Constant MESSAGE_ERROR_PURCHASE_UNAVAILABLE. |
static java.lang.String |
RESOURCE_TYPE
The Constant RESOURCE_TYPE. |
static java.lang.String |
RIGHT_MANAGE_OFFRES
The Constant RIGHT_MANAGE_OFFRES. |
| Method Summary | |
|---|---|
void |
doCancelPurchaseList(java.util.List<ReservationDTO> bookingList,
java.lang.String sessionId)
Release a list of reservation. |
void |
doDeletePurchase(int nIdPurchase)
Delete a reservation. |
ReservationDTO |
doSavePurchase(ReservationDTO purchaseDTO,
java.lang.String sessionId)
Modifies a reservation. |
java.util.List<ReservationDTO> |
doSavePurchaseList(java.util.List<ReservationDTO> bookingList,
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. |
| 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
public static final java.lang.String MESSAGE_ERROR_PURCHASE_QUANTITY_OFFER
public static final java.lang.String MESSAGE_ERROR_PURCHASE_UNAVAILABLE
public static final java.lang.String MESSAGE_ERROR_PURCHASE_QUANTITY_OFFER_TYPE
public static final java.lang.String MESSAGE_ERROR_PURCHASE_SESSION_EXPIRED
| Method Detail |
|---|
public void init()
init in interface IPurchaseService
public ReservationDTO doSavePurchase(ReservationDTO purchaseDTO,
java.lang.String sessionId)
doSavePurchase in interface IPurchaseServicepurchaseDTO - The reservation to modify in databasesessionId - the session id
public java.util.List<ReservationDTO> doSavePurchaseList(java.util.List<ReservationDTO> bookingList,
java.lang.String sessionId)
doSavePurchaseList in interface IPurchaseServicebookingList - list of reservationsessionId - the session id
public java.lang.Integer getNumberOfReservationByIdProductAndUserName(java.lang.Integer id,
java.lang.Integer idOfferGenre,
java.lang.String userName)
getNumberOfReservationByIdProductAndUserName in interface IPurchaseServiceid - offer ididOfferGenre - the id offer genreuserName - agent userName
public void doDeletePurchase(int nIdPurchase)
doDeletePurchase in interface IPurchaseServicenIdPurchase - the identifier of the reservation to deletepublic void update(ReservationDTO purchase)
update in interface IPurchaseServicepurchase - the purchase
public 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)
findByFilter in interface IPurchaseServicefilter - the filterpaginationProperties - the pagination properties
public java.util.List<ReservationDTO> findAll()
findAll in interface IPurchaseServicepublic ReservationDTO findById(java.lang.Integer nIdPurchase)
findById in interface IPurchaseServicenIdPurchase - purchase id
public void doCancelPurchaseList(java.util.List<ReservationDTO> bookingList,
java.lang.String sessionId)
doCancelPurchaseList in interface IPurchaseServicebookingList - the booking listsessionId - the session id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||