class MailNotification implements NotificationService {

    @Override
    public void sendNotification(NotificationServiceConfiguration serviceConfiguration, FileEventNotification.Type type, String userId, List<File> files, Map<String, Permission> sharedUsersIdWithPermission) {
        MailConfigurationParser configurationParser = new MailConfigurationParser(serviceConfiguration);
        String emailToSend = configurationParser.getMail();

        if (type == FileEventNotification.Type.SHARE_WITH) {
            sendMailNotification(emailToSend, userId + " share file: " + displayFiles(files) + " with " + sharedUsersIdWithPermission.toString());
        } else {
            sendMailNotification(emailToSend, userId + " " + type.name() + " file(s): " + displayFiles(files));
        }
    }

    public  MailNotification(final String username, final String password);

}