searchSocialGroups

From LongJump Support Wiki
Revision as of 03:17, 3 December 2011 by imported>Aeric

Search groups.

Syntax
Result result = Functions.searchSocialGroups(SearchContext sc);
Parameters
sc
A SearchContext object that defines the search.
Returns
A list of strings containing IDs of groups.
Throws
Exception
Example
SearchContext searchContext = new SearchContext();
searchContext.setFieldList("*");
searchContext.setFilter("x = y"); //criteria
searchContext.setPage(0);
searchContext.setPageSize(5000);
searchContext.setSortBy("date_created");
searchContext.setSortBy2("");
searchContext.setSortOrder("DESC");
searchContext.setSortOrder2("");