public class JDBCAdminProvider extends Object implements AdminProvider
To enable this provider, set the following in the system properties:
provider.admin.className = org.jivesoftware.openfire.admin.JDBCAdminProviderjdbcProvider.driver = com.mysql.jdbc.DriverjdbcProvider.connectionString = jdbc:mysql://localhost/dbname?user=username&password=secretjdbcAdminProvider.getAdminsSQL = SELECT user FROM myAdminsIf you want to be able to update the admin users via the UI, add the following properties:
jdbcAdminProvider.insertAdminsSQL = INSERT INTO myAdmins (user) VALUES (?)jdbcAdminProvider.deleteAdminsSQL = DELETE FROM myAdmins WHERE user = ?In order to use the configured JDBC connection provider do not use a JDBC connection string, set the following property
jdbcAdminProvider.useConnectionProvider = true| Constructor and Description |
|---|
JDBCAdminProvider()
Constructs a new JDBC admin provider.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
assumePersistedDataIsEscaped()
XMPP disallows some characters in identifiers, requiring them to be escaped.
|
List<org.xmpp.packet.JID> |
getAdmins()
Returns a list of JIDs of accounts with administrative privileges.
|
boolean |
isReadOnly()
Indicates whether the admin list is read-only or not.
|
void |
setAdmins(List<org.xmpp.packet.JID> newAdmins)
Sets the list of admin accounts, by JID.
|
public JDBCAdminProvider()
protected boolean assumePersistedDataIsEscaped()
public List<org.xmpp.packet.JID> getAdmins()
AdminProvidergetAdmins in interface AdminProviderpublic void setAdmins(List<org.xmpp.packet.JID> newAdmins)
AdminProvidersetAdmins in interface AdminProvidernewAdmins - List of JIDs of accounts to grant admin access to.public boolean isReadOnly()
AdminProviderisReadOnly in interface AdminProviderCopyright © 2003–2020 Ignite Realtime. All rights reserved.