public class JDBCGroupProvider extends AbstractGroupProvider
provider.group.className = org.jivesoftware.openfire.group.JDBCGroupProviderjdbcProvider.driver = com.mysql.jdbc.DriverjdbcProvider.connectionString = jdbc:mysql://localhost/dbname?user=username&password=secretjdbcGroupProvider.groupCountSQL = SELECT count(*) FROM myGroupsjdbcGroupProvider.allGroupsSQL = SELECT groupName FROM myGroupsjdbcGroupProvider.userGroupsSQL = SELECT groupName FORM myGroupUsers WHERE username=?jdbcGroupProvider.descriptionSQL = SELECT groupDescription FROM myGroups WHERE groupName=?jdbcGroupProvider.loadMembersSQL = SELECT username FORM myGroupUsers WHERE groupName=? AND isAdmin='N'jdbcGroupProvider.loadAdminsSQL = SELECT username FORM myGroupUsers WHERE groupName=? AND isAdmin='Y'jdbcGroupProvider.useConnectionProvider = true| Constructor and Description |
|---|
JDBCGroupProvider()
Constructor of the JDBCGroupProvider class.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
assumePersistedDataIsEscaped()
XMPP disallows some characters in identifiers, requiring them to be escaped.
|
Group |
getGroup(String name)
Returns a group based on it's name.
|
int |
getGroupCount()
Returns the number of groups in the system.
|
Collection<String> |
getGroupNames()
Returns the Collection of all group names in the system.
|
Collection<String> |
getGroupNames(int start,
int num)
Returns the Collection of all groups in the system.
|
Collection<String> |
getGroupNames(org.xmpp.packet.JID user)
Returns the Collection of group names that an entity belongs to.
|
addMember, createGroup, deleteGroup, deleteMember, getPublicSharedGroupNames, getSharedGroupNames, getSharedGroupNames, getVisibleGroupNames, isReadOnly, isSearchSupported, isSharingSupported, loadProperties, search, search, search, setDescription, setName, updateMemberpublic JDBCGroupProvider()
protected boolean assumePersistedDataIsEscaped()
public Group getGroup(String name) throws GroupNotFoundException
GroupProvidername - the name of the group.GroupNotFoundException - If no group with that ID could be foundpublic int getGroupCount()
GroupProviderpublic Collection<String> getGroupNames()
GroupProviderpublic Collection<String> getGroupNames(int start, int num)
GroupProviderstart - start index in results.num - number of results to return.startIndex and numResults.public Collection<String> getGroupNames(org.xmpp.packet.JID user)
GroupProvideruser - the JID of the entity.Copyright © 2003–2020 Ignite Realtime. All rights reserved.