|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uoc.pfc.lcamps.webapp.catwings.service.impl.ReservaServiceImpl
public class ReservaServiceImpl
Classe que implementa la interfície que gestiona la reserva
Constructor Summary | |
---|---|
ReservaServiceImpl()
|
Method Summary | |
---|---|
java.lang.String |
createReserva(ConsultaVO consultaVO)
Donada la informació que l'usuari ha anat introduït amb totes les dades es crea una reserva i es retorna el número de reserva |
void |
deleteReserva(java.lang.String codiReserva)
Donat el codi de reserva, eliminem la reserva, els passatgers i actualitzem el número de places de vol |
ReservaInfoVO |
getInfoReserva(ReservaVO reserva)
Donada la reserva obtenim tota la seva informació de passatgers / vols / contacte per mostrar |
PassatgerService |
getPassatgerService()
|
double |
getPreuReservaRetornar(java.lang.String codiReserva)
Donat el codi de reserva retornem l'import total a retornar a l'usuari en cas de cancelar-la, L'import total és el preu que ha pagat l'usuari menys un 30% |
ReservaVO |
getReserva(java.lang.String codiReserva,
java.lang.String email)
Donat el codi de reserva i email validem si les dades que ha introduit l'usuari son correctes i en cas afirmatiu es retorna les dades de la reserva |
ReservaDAO |
getReservaDAO()
|
VolService |
getVolService()
|
void |
setPassatgerService(PassatgerService passatgerService)
|
void |
setReservaDAO(ReservaDAO reservaDAO)
|
void |
setVolService(VolService volService)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReservaServiceImpl()
Method Detail |
---|
public void setReservaDAO(ReservaDAO reservaDAO)
reservaDAO
- the reservaDAO to setpublic ReservaDAO getReservaDAO()
public void setVolService(VolService volService)
volService
- the volService to setpublic VolService getVolService()
public void setPassatgerService(PassatgerService passatgerService)
passatgerService
- the passatgerService to setpublic PassatgerService getPassatgerService()
public java.lang.String createReserva(ConsultaVO consultaVO) throws java.lang.Exception
ReservaService
createReserva
in interface ReservaService
java.lang.Exception
public ReservaVO getReserva(java.lang.String codiReserva, java.lang.String email) throws java.lang.Exception
ReservaService
getReserva
in interface ReservaService
java.lang.Exception
public ReservaInfoVO getInfoReserva(ReservaVO reserva) throws java.lang.Exception
ReservaService
getInfoReserva
in interface ReservaService
java.lang.Exception
public double getPreuReservaRetornar(java.lang.String codiReserva) throws java.lang.Exception
ReservaService
getPreuReservaRetornar
in interface ReservaService
java.lang.Exception
public void deleteReserva(java.lang.String codiReserva) throws java.lang.Exception
ReservaService
deleteReserva
in interface ReservaService
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |