public class IQMuclumbusSearchHandler extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IQMuclumbusSearchHandler.Key |
| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE |
static SystemProperty<Boolean> |
PROPERTY_ENABLED |
static String |
REQUEST_ELEMENT_NAME |
static String |
RESPONSE_ELEMENT_NAME |
static String |
VAR_KEY |
static String |
VAR_MIN_USERS |
static String |
VAR_Q |
static String |
VAR_SINDADDR |
static String |
VAR_SINDESCRIPTION |
static String |
VAR_SINNAME |
| Constructor and Description |
|---|
IQMuclumbusSearchHandler(MultiUserChatService mucService)
Creates a new instance of the search provider.
|
| Modifier and Type | Method and Description |
|---|---|
org.xmpp.packet.IQ |
handleIQ(org.xmpp.packet.IQ iq)
Constructs an answer on a IQ stanza that contains a search request.
|
protected List<MUCRoom> |
searchForChatrooms(org.jivesoftware.openfire.muc.spi.IQMuclumbusSearchHandler.SearchParameters params) |
static List<MUCRoom> |
sortByAddress(List<MUCRoom> mucs)
Order the provided list by JID of the MUC
|
static List<MUCRoom> |
sortByUserAmount(List<MUCRoom> mucs)
Sorts the provided list in such a way that the MUC with the most users
will be the first one in the list.
|
public static final String VAR_SINNAME
public static final String VAR_Q
public static final String VAR_SINDESCRIPTION
public static final String VAR_SINDADDR
public static final String VAR_MIN_USERS
public static final String VAR_KEY
public static SystemProperty<Boolean> PROPERTY_ENABLED
public static final String REQUEST_ELEMENT_NAME
public static final String RESPONSE_ELEMENT_NAME
public static final String NAMESPACE
public IQMuclumbusSearchHandler(MultiUserChatService mucService)
mucService - The server for which to return search results.public org.xmpp.packet.IQ handleIQ(org.xmpp.packet.IQ iq)
iq - The IQ stanza that is the search request.protected List<MUCRoom> searchForChatrooms(org.jivesoftware.openfire.muc.spi.IQMuclumbusSearchHandler.SearchParameters params)
public static List<MUCRoom> sortByAddress(List<MUCRoom> mucs)
mucs - The unordered list that will be sorted.Copyright © 2003–2020 Ignite Realtime. All rights reserved.