Class MatchAlertingServiceImpl

java.lang.Object
net.andresbustamante.yafoot.core.services.impl.MatchAlertingServiceImpl
All Implemented Interfaces:
MatchAlertingService

@Service public class MatchAlertingServiceImpl extends Object implements MatchAlertingService
  • Constructor Details

    • MatchAlertingServiceImpl

      public MatchAlertingServiceImpl(MatchDao matchDao, org.springframework.context.MessageSource messageSource, TemplateUtils templateUtils, MessagingService messagingService)
  • Method Details

    • checkForAlertsAfterPlayerRemovedFromMatch

      @Transactional(readOnly=true, propagation=REQUIRES_NEW) public void checkForAlertsAfterPlayerRemovedFromMatch(Integer matchId, Integer playerId) throws ApplicationException
      Description copied from interface: MatchAlertingService
      Checks whether a match has a new alert of cancelling risk after a player cancelled his registration to it. If an alert is detected, it sends a notification to inform the author of the match of this alert.
      Specified by:
      checkForAlertsAfterPlayerRemovedFromMatch in interface MatchAlertingService
      Parameters:
      matchId - Concerned match ID
      playerId - ID from the player that was unregistered from the match
      Throws:
      ApplicationException