public CUser readUser( String id ) throws UserNotFoundException { // users can only come from the security.xml return manager.readUser( id ); }
@Override public CUser readUser(String id) throws UserNotFoundException { readLock.lock(); try { return configurationManager.readUser(id); } finally { readLock.unlock(); } }
public User getUser( String userId ) throws UserNotFoundException { User user = toUser( configuration.readUser( userId ) ); return user; }
public void run() throws Exception { final CUser secUser = configuration.readUser( userId ); secUser.setPassword( hashPassword( newPassword ) ); configuration.updateUser( secUser ); saveConfiguration(); } });
public void run() throws Exception { // we need to pull the users password off off the old user object CUser oldSecUser = configuration.readUser( user.getUserId() ); CUser newSecUser = toUser( user ); newSecUser.setPassword( oldSecUser.getPassword() ); configuration.updateUser( newSecUser, getRoleIdsFromUser( user ) ); saveConfiguration(); } });
try user = configuration.readUser( upToken.getUsername() );