class MailUserAccessEventHandler implements UserAccessEventHandler {

    String getTemplatePathAccessChanged(LocalDateTime newEndTime, LocalDateTime previousEndTime) {
        if(previousEndTime.isAfter(newEndTime)) {
            return "/templates/mail/UserAccessShortened.vm";
        } else {
            return "/templates/mail/UserAccessExtended.vm";
        }
    }

    public  MailUserAccessEventHandler(MailSenderAdapter mailSenderAdapter,
                                      UserService userService,
                                      VelocityMailTemplateService velocityMailTemplateService,
                                      ProjectBoardConfigurationProperties configurationProperties);

}