@Override public void sendNotification(Type type, String userId, List<File> files, Map<String, Permission> sharedUsersIdWithPermission) { for (NotificationService fileEventHandlerService : fileEventHandlerServices) { String serviceId = fileEventHandlerService.getServiceId(); NotificationServiceConfiguration notificationServiceConfiguration = getServiceConfiguration(userId, serviceId); if (notificationIsEnable(userId, type, serviceId)) { fileEventHandlerService.sendNotification(notificationServiceConfiguration, type, userId, files, sharedUsersIdWithPermission); } } }