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

    Constructors
    Constructor
    Description
    CarpoolingServiceImpl(CarDao carDAO, MatchDao matchDAO, org.springframework.amqp.rabbit.core.RabbitTemplate rabbitTemplate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CarpoolingServiceImpl

      public CarpoolingServiceImpl(CarDao carDAO, MatchDao matchDAO, org.springframework.amqp.rabbit.core.RabbitTemplate rabbitTemplate)
  • 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 interface net.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 interface net.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 interface net.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 interface net.andresbustamante.yafoot.core.services.CarpoolingService
      Throws:
      net.andresbustamante.yafoot.commons.exceptions.ApplicationException