@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.m_sqlParameters| Constructor and Description |
|---|
DefaultUsersJdbcRepository()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addUser(String username,
String password)
Deprecated.
|
protected org.apache.james.user.api.model.User |
readUserFromResultSet(ResultSet rsUsers)
Deprecated.
Reads properties for a User from an open ResultSet.
|
protected void |
setUserForInsertStatement(org.apache.james.user.api.model.User user,
PreparedStatement userInsert)
Deprecated.
Set parameters of a PreparedStatement object with property values from a
User instance.
|
protected void |
setUserForUpdateStatement(org.apache.james.user.api.model.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, updateUsergetDefaultVirtualHostingValue, getLogger, getUser, isAdministrator, isValidUsername, setDomainList, setEnableVirtualHosting, setLog, supportVirtualHostingpublic DefaultUsersJdbcRepository()
protected org.apache.james.user.api.model.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 ResultSetprotected void setUserForInsertStatement(org.apache.james.user.api.model.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.protected void setUserForUpdateStatement(org.apache.james.user.api.model.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.public void addUser(String username, String password) throws org.apache.james.user.api.UsersRepositoryException
addUser in interface org.apache.james.user.api.UsersRepositoryaddUser in class org.apache.james.user.lib.AbstractUsersRepositoryorg.apache.james.user.api.UsersRepositoryExceptionCopyright © 2002-2017 The Apache Software Foundation. All Rights Reserved.