Difference between revisions of "SocialFollow"

From LongJump Support Wiki
imported>Aeric
imported>Aeric
 
(6 intermediate revisions by the same user not shown)
Line 4: Line 4:
;Syntax:
;Syntax:
:<syntaxhighlight lang="java" enclose="div">
:<syntaxhighlight lang="java" enclose="div">
Result result = Functions.socialFollow(BaseBean<SocialBean> sb);
void Functions.socialFollow(SocialBean sb);  
Result result = Functions.__apiName__(String objectName, String fields, String criteria
                            [, Parameters params] );
Result result = Functions.__apiName__(String objectName, String fields, String criteria);
Result result = Functions.__apiName__(String objectName, String fields, String criteria,
                            String sortBy, String sortOrder,
                            String sortBy2, String sortOrder2,
                            int offset, int numberOfRows);
</syntaxhighlight>
</syntaxhighlight>


;Parameters:
;Parameters:
:;BaseBean<SocialBean>:An instance of a SocialBean subclass:
:;SocialBean:An instance of a SocialBean subclass:
::* [{{DOCHOST}}/javadocs/com/platform/beans/SocialDocumentBean.html SocialDocumentBean]
::* [{{DOCHOST}}/javadocs/com/platform/beans/SocialDocumentBean.html SocialDocumentBean]
::* [{{DOCHOST}}/javadocs/com/platform/beans/SocialGroupBean.html SocialGroupBean]
::* [{{DOCHOST}}/javadocs/com/platform/beans/SocialGroupBean.html SocialGroupBean]
::* [{{DOCHOST}}/javadocs/com/platform/beans/SocialRecordBean.html SocialRecordBean]
::* [{{DOCHOST}}/javadocs/com/platform/beans/SocialRecordBean.html SocialRecordBean]
::* [{{DOCHOST}}/javadocs/com/platform/beans/SocialUserBean.html SocialUserBean]
::* [{{DOCHOST}}/javadocs/com/platform/beans/SocialUserBean.html SocialUserBean]
;Returns:
:[[Result Class|<tt>Result</tt>]] object<br/>
--or--
:An integer containing ...
:A string containing ...


;Throws:
;Throws:
:Exception
:Exception


;Example:This example ....
;Example:
:<syntaxhighlight lang="java" enclose="div">
:<syntaxhighlight lang="java" enclose="div">
...
SocialRecordBean srb = new SocialRecordBean();
srb.setObjectId("__object name__");
srb.setRecordId("__record Id__");
srb.setFollower("__user id__", "__user name__");
Functions.socialFollow(new SocialBean(srb));
</syntaxhighlight>
</syntaxhighlight>
<!--ACTIVATE THE CATEGORY BELOW
<noinclude>
[[Category:Java API | __apiName__]]
</noinclude>
-->

Latest revision as of 18:57, 12 April 2012

Follow a resource.

Syntax
void Functions.socialFollow(SocialBean sb);
Parameters
SocialBean
An instance of a SocialBean subclass:
Throws
Exception
Example
SocialRecordBean srb = new SocialRecordBean(); 
srb.setObjectId("__object name__"); 
srb.setRecordId("__record Id__"); 
srb.setFollower("__user id__", "__user name__"); 
Functions.socialFollow(new SocialBean(srb));