Class MatchAlertingServiceImpl
java.lang.Object
net.andresbustamante.yafoot.core.services.impl.MatchAlertingServiceImpl
- All Implemented Interfaces:
MatchAlertingService
-
Constructor Summary
ConstructorsConstructorDescriptionMatchAlertingServiceImpl
(MatchDao matchDao, org.springframework.context.MessageSource messageSource, TemplateUtils templateUtils, MessagingService messagingService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkForAlertsAfterPlayerRemovedFromMatch
(Integer matchId, Integer playerId) Checks whether a match has a new alert of cancelling risk after a player cancelled his registration to it.
-
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 interfaceMatchAlertingService
- Parameters:
matchId
- Concerned match IDplayerId
- ID from the player that was unregistered from the match- Throws:
ApplicationException
-