@Deprecated public class DefaultUsersJdbcRepository extends AbstractJdbcUsersRepository
DefaultUser class.DefaultJamesUser, only properties from the DefaultUser class are
persisted.
TODO Please note that default configuration uses JamesUsersJdbcRepository
instead of this class. So we could also delete this implementation.RecipientRewriteTable.ErrorMappingExceptionm_sqlParametersenableAliases, enableForwarding, ignoreCaseALIASDOMAIN_PREFIX, ERROR_PREFIX, REGEX_PREFIX, WILDCARD| Constructor and Description |
|---|
DefaultUsersJdbcRepository()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addUser(String username,
String password)
Deprecated.
Adds a user to the repository with the specified password
|
protected User |
readUserFromResultSet(ResultSet rsUsers)
Deprecated.
Reads properties for a User from an open ResultSet.
|
protected void |
setUserForInsertStatement(User user,
PreparedStatement userInsert)
Deprecated.
Set parameters of a PreparedStatement object with property values from a
User instance.
|
protected void |
setUserForUpdateStatement(User user,
PreparedStatement userUpdate)
Deprecated.
Set parameters of a PreparedStatement object with property values from a
User instance.
|
contains, containsCaseInsensitive, countUsers, doAddUser, doConfigure, doRemoveUser, doUpdateUser, getUserByName, getUserByName, getUserByNameIterating, init, list, listAllUsers, listUserNames, removeUser, setDatasource, setFileSystem, testaddAddressMapping, addAliasDomainMapping, addErrorMapping, addMapping, addRegexMapping, configure, doAddUser, getAllMappings, getMappings, getUserDomainMappings, removeAddressMapping, removeAliasDomainMapping, removeErrorMapping, removeMapping, removeRegexMapping, setEnableAliases, setEnableForwarding, setIgnoreCase, updateUsergetLogger, isValidUsername, setDomainList, setEnableVirtualHosting, setLog, supportVirtualHostingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportVirtualHostingprotected User readUserFromResultSet(ResultSet rsUsers) throws SQLException
AbstractJdbcUsersRepositoryreadUserFromResultSet in class AbstractJdbcUsersRepositoryrsUsers - A ResultSet with a User record in the current row.SQLException - if an exception occurs reading from the ResultSetAbstractJdbcUsersRepository.readUserFromResultSet(java.sql.ResultSet)protected void setUserForInsertStatement(User user, PreparedStatement userInsert) throws SQLException
AbstractJdbcUsersRepositorysetUserForInsertStatement in class AbstractJdbcUsersRepositoryuser - a User instance, which should be an implementation class which
is handled by this Repostory implementation.userInsert - a PreparedStatement initialised with SQL taken from the
"insert" SQL definition.SQLException - if an exception occurs while setting parameter values.AbstractJdbcUsersRepository.setUserForInsertStatement(org.apache.james.user.api.model.User,
java.sql.PreparedStatement)protected void setUserForUpdateStatement(User user, PreparedStatement userUpdate) throws SQLException
AbstractJdbcUsersRepositorysetUserForUpdateStatement in class AbstractJdbcUsersRepositoryuser - a User instance, which should be an implementation class which
is handled by this Repostory implementation.userUpdate - a PreparedStatement initialised with SQL taken from the
"update" SQL definition.SQLException - if an exception occurs while setting parameter values.AbstractJdbcUsersRepository.setUserForUpdateStatement(org.apache.james.user.api.model.User,
java.sql.PreparedStatement)public void addUser(String username, String password) throws UsersRepositoryException
UsersRepositoryaddUser in interface UsersRepositoryaddUser in class AbstractUsersRepositoryusername - the username of the user to be addedpassword - the password of the user to addUsersRepositoryException - if errorUsersRepository.addUser(java.lang.String,
java.lang.String)Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.