@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.ErrorMappingException
m_sqlParameters
enableAliases, enableForwarding, ignoreCase
ALIASDOMAIN_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, test
addAddressMapping, addAliasDomainMapping, addErrorMapping, addMapping, addRegexMapping, configure, doAddUser, getAllMappings, getMappings, getUserDomainMappings, removeAddressMapping, removeAliasDomainMapping, removeErrorMapping, removeMapping, removeRegexMapping, setEnableAliases, setEnableForwarding, setIgnoreCase, updateUser
getLogger, isValidUsername, setDomainList, setEnableVirtualHosting, setLog, supportVirtualHosting
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supportVirtualHosting
protected User readUserFromResultSet(ResultSet rsUsers) throws SQLException
AbstractJdbcUsersRepository
readUserFromResultSet
in class AbstractJdbcUsersRepository
rsUsers
- 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
AbstractJdbcUsersRepository
setUserForInsertStatement
in class AbstractJdbcUsersRepository
user
- 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
AbstractJdbcUsersRepository
setUserForUpdateStatement
in class AbstractJdbcUsersRepository
user
- 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
UsersRepository
addUser
in interface UsersRepository
addUser
in class AbstractUsersRepository
username
- 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.