Difference between revisions of "SearchSocialGroups"

From LongJump Support Wiki
imported>Aeric
imported>Aeric
Line 8: Line 8:


;Parameters:
;Parameters:
:;objectName:The object name or identifier
:;sc:A [[Java_API:Support_Classes_and_Objects#SearchContext_Class|SearchContext]] object that defines the search.
:;fields:A comma-separated list of names of the fields to retrieve
:;criteria:A [[JAVA API:Filter Expressions in JAVA APIs|filter expression]] that specifies records to select.
:;params: An optional [[Parameters Class|Parameters]] object that contains additional parameters:
:::*''' param -''' ...


;Returns:
;Returns:
:[[Result Class|<tt>Result</tt>]] object<br/>
:A list of strings containing IDs of groups.
--or--
:An integer containing ...
:A string containing ...


;Throws:
;Throws:

Revision as of 03:15, 3 December 2011

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
This 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("");