searchSocialGroups

From LongJump Support Wiki
Revision as of 20:50, 14 May 2012 by imported>Aeric
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Search groups.

Syntax
List groups = 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("privateGroup equals '1'"); //criteria
searchContext.setPage(0);
searchContext.setPageSize(5000);
searchContext.setSortBy("date_created");
searchContext.setSortBy2("");
searchContext.setSortOrder("DESC");
searchContext.setSortOrder2("");

List<SocialBean<SocialGroupBean>> results = searchSocialGroups(searchContext);