Difference between revisions of "GetSocialFollowers"

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


;Parameters:
;Parameters:
* For list of type, see relay type table in the link (to REST table) in the spec
:;type: A string containing one of the Relay [[REST_API:social_feed_Resource#Feed_Types|Feed Types]]. (required)
* type and id are required.
:;id: The ID of the feed. (required)
* Filter is optional.
:;objectId: Required if the feed type is "record". Otherwise, it can be an empty string or null.
* ObjectId is required if the type is Record.
 
 
:;objectName:The object name or identifier
:;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.
:;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:

Revision as of 02:58, 3 December 2011

Get a list of users who are following a resource.

Syntax
CollectionsBean followers;
followers = Functions.getSocialFollowers(String type, String id, String objectId, String filter);
Parameters
type
A string containing one of the Relay Feed Types. (required)
id
The ID of the feed. (required)
objectId
Required if the feed type is "record". Otherwise, it can be an empty string or null.
criteria
A filter expression that specifies records to select.
Returns
A CollectionBean containing the SocialUserBean objects for users who are following the resource.
Throws
Exception