Methods Summary |
---|
public boolean | addUser(java.lang.String username, java.lang.String password)
User newbie = new DefaultUser(username, "SHA");
newbie.setPassword(password);
return addUser(newbie);
|
protected org.apache.james.services.User | readUserFromResultSet(java.sql.ResultSet rsUsers)Reads properties for a User from an open ResultSet.
// Get the username, and build a DefaultUser with it.
String username = rsUsers.getString(1);
DefaultUser user = new DefaultUser(username, "SHA");
return user;
|
protected void | setUserForInsertStatement(org.apache.james.services.User user, java.sql.PreparedStatement userInsert)Set parameters of a PreparedStatement object with
property values from a User instance.
userInsert.setString(1, user.getUserName());
|
protected void | setUserForUpdateStatement(org.apache.james.services.User user, java.sql.PreparedStatement userUpdate)Set parameters of a PreparedStatement object with
property values from a User instance.
throw new UnsupportedOperationException("Can't update a List User - " +
"only has a single attribute.");
|