Skip to content

Commit

Permalink
fix unused ldapProps
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemaignent committed Jan 15, 2021
1 parent 745b225 commit 1cdd8f2
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.esupportail.esupsignature.service;

import org.esupportail.esupsignature.config.GlobalProperties;
import org.esupportail.esupsignature.config.ldap.LdapProperties;
import org.esupportail.esupsignature.config.security.WebSecurityProperties;
import org.esupportail.esupsignature.entity.*;
import org.esupportail.esupsignature.entity.enums.EmailAlertFrequency;
Expand Down Expand Up @@ -51,9 +50,6 @@ public class UserService {
@Resource
private GlobalProperties globalProperties;

@Resource
private LdapProperties ldapProperties;

@Resource
private UserRepository userRepository;

Expand Down Expand Up @@ -460,4 +456,11 @@ public void setFormMessage(String authUserEppn, long formId) {
public void save(User user) {
userRepository.save(user);
}

@Transactional
public List<User> getUserWithoutCertificate(List<String> userEmails) {
List<User> users = new ArrayList<>();
userEmails.forEach(ue -> users.add(this.getUserByEmail(ue)));
return users.stream().filter(u -> u.getKeystoreFileName() == null).collect(Collectors.toList());
}
}

0 comments on commit 1cdd8f2

Please sign in to comment.