public class DbUserManagerFactory extends Object implements UserManagerFactory
UserManager
instances.Constructor and Description |
---|
DbUserManagerFactory() |
Modifier and Type | Method and Description |
---|---|
UserManager |
createUserManager()
Create an
UserManager instance based on the configuration on the factory |
String |
getAdminName()
Get the admin name.
|
DataSource |
getDataSource()
Retrive the data source used by the user manager
|
PasswordEncryptor |
getPasswordEncryptor()
Retrieve the password encryptor used for this user manager
|
String |
getSqlUserAdmin()
Get the SQL SELECT statement used to find whether an user is admin or
not.
|
String |
getSqlUserAuthenticate()
Get the SQL SELECT statement used to authenticate user.
|
String |
getSqlUserDelete()
Get the SQL DELETE statement used to delete an existing user.
|
String |
getSqlUserInsert()
Get the SQL INSERT statement used to add a new user.
|
String |
getSqlUserSelect()
Get the SQL SELECT statement used to select an existing user.
|
String |
getSqlUserSelectAll()
Get the SQL SELECT statement used to select all user ids.
|
String |
getSqlUserUpdate()
Get the SQL UPDATE statement used to update an existing user.
|
void |
setAdminName(String adminName)
Set the name to use as the administrator of the server.
|
void |
setDataSource(DataSource dataSource)
Set the data source to be used by the user manager
|
void |
setPasswordEncryptor(PasswordEncryptor passwordEncryptor)
Set the password encryptor to use for this user manager
|
void |
setSqlUserAdmin(String sql)
Set the SQL SELECT statement used to find whether an user is admin or
not.
|
void |
setSqlUserAuthenticate(String sql)
Set the SQL SELECT statement used to authenticate user.
|
void |
setSqlUserDelete(String sql)
Set the SQL DELETE statement used to delete an existing user.
|
void |
setSqlUserInsert(String sql)
Set the SQL INSERT statement used to add a new user.
|
void |
setSqlUserSelect(String sql)
Set the SQL SELECT statement used to select an existing user.
|
void |
setSqlUserSelectAll(String sql)
Set the SQL SELECT statement used to select all user ids.
|
void |
setSqlUserUpdate(String sql)
Set the SQL UPDATE statement used to update an existing user.
|
public UserManager createUserManager()
UserManagerFactory
UserManager
instance based on the configuration on the factorycreateUserManager
in interface UserManagerFactory
UserManager
public String getAdminName()
public void setAdminName(String adminName)
adminName
- The administrator user namepublic DataSource getDataSource()
public void setDataSource(DataSource dataSource)
dataSource
- The data source to usepublic String getSqlUserInsert()
public void setSqlUserInsert(String sql)
sql
- The SQL statementpublic String getSqlUserDelete()
public void setSqlUserDelete(String sql)
sql
- The SQL statementpublic String getSqlUserUpdate()
public void setSqlUserUpdate(String sql)
sql
- The SQL statementpublic String getSqlUserSelect()
public void setSqlUserSelect(String sql)
sql
- The SQL statementpublic String getSqlUserSelectAll()
public void setSqlUserSelectAll(String sql)
sql
- The SQL statementpublic String getSqlUserAuthenticate()
public void setSqlUserAuthenticate(String sql)
sql
- The SQL statementpublic String getSqlUserAdmin()
public void setSqlUserAdmin(String sql)
sql
- The SQL statementpublic PasswordEncryptor getPasswordEncryptor()
Md5PasswordEncryptor
if no other has been providedpublic void setPasswordEncryptor(PasswordEncryptor passwordEncryptor)
passwordEncryptor
- The password encryptorCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.