Class CarpoolingServiceImpl
java.lang.Object
net.andresbustamante.yafoot.core.services.impl.CarpoolingServiceImpl
- All Implemented Interfaces:
net.andresbustamante.yafoot.core.services.CarpoolingService
@Service
public class CarpoolingServiceImpl
extends Object
implements net.andresbustamante.yafoot.core.services.CarpoolingService
-
Constructor Summary
ConstructorsConstructorDescriptionCarpoolingServiceImpl
(CarDao carDAO, MatchDao matchDAO, org.springframework.amqp.rabbit.core.RabbitTemplate rabbitTemplate) -
Method Summary
Modifier and TypeMethodDescriptionList<net.andresbustamante.yafoot.core.model.Car>
findAvailableCarsByMatch
(net.andresbustamante.yafoot.core.model.Match match) void
processCarSeatRequest
(net.andresbustamante.yafoot.core.model.Match match, net.andresbustamante.yafoot.core.model.Player player, net.andresbustamante.yafoot.core.model.Car car, net.andresbustamante.yafoot.commons.model.UserContext ctx) void
processTransportationChange
(net.andresbustamante.yafoot.core.model.Match match, net.andresbustamante.yafoot.core.model.Car oldCar, net.andresbustamante.yafoot.core.model.Car newCar, net.andresbustamante.yafoot.commons.model.UserContext ctx) void
updateCarpoolingInformation
(net.andresbustamante.yafoot.core.model.Match match, net.andresbustamante.yafoot.core.model.Player player, net.andresbustamante.yafoot.core.model.Car car, boolean isCarConfirmed, net.andresbustamante.yafoot.commons.model.UserContext ctx)
-
Constructor Details
-
CarpoolingServiceImpl
-
-
Method Details
-
findAvailableCarsByMatch
@Transactional(readOnly=true) public List<net.andresbustamante.yafoot.core.model.Car> findAvailableCarsByMatch(net.andresbustamante.yafoot.core.model.Match match) throws net.andresbustamante.yafoot.commons.exceptions.DatabaseException - Specified by:
findAvailableCarsByMatch
in interfacenet.andresbustamante.yafoot.core.services.CarpoolingService
- Throws:
net.andresbustamante.yafoot.commons.exceptions.DatabaseException
-
updateCarpoolingInformation
@Transactional public void updateCarpoolingInformation(net.andresbustamante.yafoot.core.model.Match match, net.andresbustamante.yafoot.core.model.Player player, net.andresbustamante.yafoot.core.model.Car car, boolean isCarConfirmed, net.andresbustamante.yafoot.commons.model.UserContext ctx) throws net.andresbustamante.yafoot.commons.exceptions.ApplicationException - Specified by:
updateCarpoolingInformation
in interfacenet.andresbustamante.yafoot.core.services.CarpoolingService
- Throws:
net.andresbustamante.yafoot.commons.exceptions.ApplicationException
-
processCarSeatRequest
@Transactional(propagation=REQUIRED) public void processCarSeatRequest(net.andresbustamante.yafoot.core.model.Match match, net.andresbustamante.yafoot.core.model.Player player, net.andresbustamante.yafoot.core.model.Car car, net.andresbustamante.yafoot.commons.model.UserContext ctx) - Specified by:
processCarSeatRequest
in interfacenet.andresbustamante.yafoot.core.services.CarpoolingService
-
processTransportationChange
@Transactional(propagation=REQUIRED) public void processTransportationChange(net.andresbustamante.yafoot.core.model.Match match, net.andresbustamante.yafoot.core.model.Car oldCar, net.andresbustamante.yafoot.core.model.Car newCar, net.andresbustamante.yafoot.commons.model.UserContext ctx) throws net.andresbustamante.yafoot.commons.exceptions.ApplicationException - Specified by:
processTransportationChange
in interfacenet.andresbustamante.yafoot.core.services.CarpoolingService
- Throws:
net.andresbustamante.yafoot.commons.exceptions.ApplicationException
-