Ejemplo n.º 1
0
 @Override
 public void removeUser(String username) throws ApsSystemException {
   if (!isActive() || !isWriteUserEnable()) {
     super.removeUser(username);
   }
   try {
     this.getLdapUserDAO().deleteUser(username);
   } catch (Throwable t) {
     _logger.error("Error deleting a ldap user {}", username, t);
     throw new ApsSystemException("Error deleting a ldap user", t);
   }
 }
Ejemplo n.º 2
0
 @Override
 public void updateUser(UserDetails user) throws ApsSystemException {
   if (!isActive() || !isWriteUserEnable()) {
     super.updateUser(user);
     return;
   }
   try {
     this.getLdapUserDAO().updateUser(user);
   } catch (Throwable t) {
     _logger.error("Error updating a ldap user", t);
     throw new ApsSystemException("Error updating a ldap user", t);
   }
 }
Ejemplo n.º 3
0
 @Override
 public void changePassword(String username, String password) throws ApsSystemException {
   if (!isActive() || !isWriteUserEnable()) {
     super.changePassword(username, password);
     return;
   }
   try {
     this.getLdapUserDAO().changePassword(username, password);
   } catch (Throwable t) {
     _logger.error("Error updating the password of the LDAP User for {}", username, t);
     throw new ApsSystemException("Error updating the password of the LDAP User" + username, t);
   }
 }
Ejemplo n.º 4
0
 @Override
 public void addUser(UserDetails user) throws ApsSystemException {
   if (!isActive() || !isWriteUserEnable()) {
     super.addUser(user);
     return;
   }
   try {
     this.getLdapUserDAO().addUser(user);
   } catch (Throwable t) {
     _logger.error("Error adding LDAP User {}", user.getUsername(), t);
     throw new ApsSystemException("Error adding LDAP User" + user.getUsername(), t);
   }
 }