Class MatchManagementServiceImpl

java.lang.Object
net.andresbustamante.yafoot.core.services.impl.MatchManagementServiceImpl
All Implemented Interfaces:
net.andresbustamante.yafoot.core.services.MatchManagementService

@Service public class MatchManagementServiceImpl extends Object implements net.andresbustamante.yafoot.core.services.MatchManagementService
Author:
andresbustamante
  • Constructor Summary

    Constructors
    Constructor
    Description
    MatchManagementServiceImpl(MatchDao matchDAO, SiteDao siteDAO, CarDao carDAO, PlayerDao playerDAO, net.andresbustamante.yafoot.core.services.SiteManagementService siteManagementService, net.andresbustamante.yafoot.core.services.CarManagementService carManagementService, net.andresbustamante.yafoot.core.services.CarpoolingService carpoolingService, org.springframework.amqp.rabbit.core.RabbitTemplate rabbitTemplate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cancelMatch(net.andresbustamante.yafoot.core.model.Match match, net.andresbustamante.yafoot.commons.model.UserContext userContext)
     
    void
    registerPlayer(net.andresbustamante.yafoot.core.model.Player player, net.andresbustamante.yafoot.core.model.Match match, net.andresbustamante.yafoot.core.model.Car car, net.andresbustamante.yafoot.commons.model.UserContext userContext)
     
    saveMatch(net.andresbustamante.yafoot.core.model.Match match, net.andresbustamante.yafoot.commons.model.UserContext userContext)
     
    void
    unregisterPlayer(net.andresbustamante.yafoot.core.model.Player player, net.andresbustamante.yafoot.core.model.Match match, net.andresbustamante.yafoot.commons.model.UserContext ctx)
     
    void
    unregisterPlayerFromAllMatches(net.andresbustamante.yafoot.core.model.Player player, net.andresbustamante.yafoot.commons.model.UserContext userContext)
     

    Methods inherited from class java.lang.Object

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

    • MatchManagementServiceImpl

      public MatchManagementServiceImpl(MatchDao matchDAO, SiteDao siteDAO, CarDao carDAO, PlayerDao playerDAO, net.andresbustamante.yafoot.core.services.SiteManagementService siteManagementService, net.andresbustamante.yafoot.core.services.CarManagementService carManagementService, net.andresbustamante.yafoot.core.services.CarpoolingService carpoolingService, org.springframework.amqp.rabbit.core.RabbitTemplate rabbitTemplate)
  • Method Details

    • saveMatch

      @Transactional public Integer saveMatch(net.andresbustamante.yafoot.core.model.Match match, net.andresbustamante.yafoot.commons.model.UserContext userContext) throws net.andresbustamante.yafoot.commons.exceptions.DatabaseException, net.andresbustamante.yafoot.commons.exceptions.ApplicationException
      Specified by:
      saveMatch in interface net.andresbustamante.yafoot.core.services.MatchManagementService
      Throws:
      net.andresbustamante.yafoot.commons.exceptions.DatabaseException
      net.andresbustamante.yafoot.commons.exceptions.ApplicationException
    • registerPlayer

      @Transactional(rollbackFor={net.andresbustamante.yafoot.commons.exceptions.ApplicationException.class,net.andresbustamante.yafoot.commons.exceptions.DatabaseException.class}) public void registerPlayer(net.andresbustamante.yafoot.core.model.Player player, net.andresbustamante.yafoot.core.model.Match match, net.andresbustamante.yafoot.core.model.Car car, net.andresbustamante.yafoot.commons.model.UserContext userContext) throws net.andresbustamante.yafoot.commons.exceptions.ApplicationException, net.andresbustamante.yafoot.commons.exceptions.DatabaseException
      Specified by:
      registerPlayer in interface net.andresbustamante.yafoot.core.services.MatchManagementService
      Throws:
      net.andresbustamante.yafoot.commons.exceptions.ApplicationException
      net.andresbustamante.yafoot.commons.exceptions.DatabaseException
    • unregisterPlayer

      @Transactional public void unregisterPlayer(net.andresbustamante.yafoot.core.model.Player player, net.andresbustamante.yafoot.core.model.Match match, net.andresbustamante.yafoot.commons.model.UserContext ctx) throws net.andresbustamante.yafoot.commons.exceptions.DatabaseException, net.andresbustamante.yafoot.commons.exceptions.ApplicationException
      Specified by:
      unregisterPlayer in interface net.andresbustamante.yafoot.core.services.MatchManagementService
      Throws:
      net.andresbustamante.yafoot.commons.exceptions.DatabaseException
      net.andresbustamante.yafoot.commons.exceptions.ApplicationException
    • unregisterPlayerFromAllMatches

      @Transactional public void unregisterPlayerFromAllMatches(net.andresbustamante.yafoot.core.model.Player player, net.andresbustamante.yafoot.commons.model.UserContext userContext)
      Specified by:
      unregisterPlayerFromAllMatches in interface net.andresbustamante.yafoot.core.services.MatchManagementService
    • cancelMatch

      @Transactional public void cancelMatch(net.andresbustamante.yafoot.core.model.Match match, net.andresbustamante.yafoot.commons.model.UserContext userContext) throws net.andresbustamante.yafoot.commons.exceptions.ApplicationException
      Specified by:
      cancelMatch in interface net.andresbustamante.yafoot.core.services.MatchManagementService
      Throws:
      net.andresbustamante.yafoot.commons.exceptions.ApplicationException