public class CrowdGroupProvider extends AbstractGroupProvider
| Constructor and Description |
|---|
CrowdGroupProvider() |
| Modifier and Type | Method and Description |
|---|---|
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 startIndex,
int numResults)
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.
|
boolean |
isReadOnly()
Modifying group not implemented - read-only for now
|
boolean |
isSearchSupported()
Returns true if the provider supports group search capability.
|
Collection<String> |
search(String query)
Returns a collection of group search results.
|
Collection<String> |
search(String query,
int startIndex,
int numResults)
Returns a collection of group search results.
|
Collection<String> |
search(String key,
String value)
Returns the names of groups that have a property matching the given
key/value pair.
|
addMember, createGroup, deleteGroup, deleteMember, getPublicSharedGroupNames, getSharedGroupNames, getSharedGroupNames, getVisibleGroupNames, isSharingSupported, loadProperties, setDescription, setName, updateMemberpublic Group getGroup(String name) throws GroupNotFoundException
GroupProvidername - the name of the group.GroupNotFoundException - If no group with that ID could be foundpublic Collection<String> getGroupNames(org.xmpp.packet.JID user)
GroupProvideruser - the JID of the entity.public int getGroupCount()
GroupProviderpublic Collection<String> getGroupNames()
GroupProviderpublic Collection<String> getGroupNames(int startIndex, int numResults)
GroupProviderstartIndex - start index in results.numResults - number of results to return.public Collection<String> search(String query)
AbstractGroupProvidersearch in interface GroupProvidersearch in class AbstractGroupProviderquery - the search string for group names.public Collection<String> search(String query, int startIndex, int numResults)
AbstractGroupProvidersearch in interface GroupProvidersearch in class AbstractGroupProviderquery - the search string for group names.startIndex - start index in results.numResults - number of results to return.public boolean isReadOnly()
isReadOnly in interface GroupProviderisReadOnly in class AbstractGroupProviderpublic boolean isSearchSupported()
AbstractGroupProviderisSearchSupported in interface GroupProviderisSearchSupported in class AbstractGroupProviderpublic Collection<String> search(String key, String value)
GroupProviderGroupProvider.isSearchSupported() method
to ensure that searching is supported.search in interface GroupProvidersearch in class AbstractGroupProviderkey - The name of a group property (e.g. "sharedRoster.showInRoster")value - The value to match for the given propertyAbstractGroupProvider.search(java.lang.String, java.lang.String)Copyright © 2003-2008 Jive Software.