Difference between revisions of "GetSocialNotificationsCount"

From LongJump Support Wiki
imported>Aeric
imported>Aeric
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:getSocialNotificationsCount}}
{{DISPLAYTITLE:getSocialNotificationsCount}}
Get a count of current user's notifications.
Get a count of current user's unread notifications.


;Syntax:
;Syntax:
:<syntaxhighlight lang="java" enclose="div">
:<syntaxhighlight lang="java" enclose="div">
CollectionsBean notifications;
int count = Functions.getSocialNotificationsCount();  
notifications= Functions.getSocialNotificationsCount();  
</syntaxhighlight>
</syntaxhighlight>


;Returns:
;Returns:
:A [{{DOCHOST}}/javadocs/com/platform/beans/CollectionBean.html <tt>CollectionBean</tt>] containing [{{DOCHOST}}/javadocs/com/platform/beans/SocialNotificationBean.html SocialNotificationBean] objects.
:An integer containing the number of ''new'' notification messages.


;Throws:
;Throws:
:Exception
:Exception

Latest revision as of 19:19, 13 December 2011

Get a count of current user's unread notifications.

Syntax
int count = Functions.getSocialNotificationsCount();
Returns
An integer containing the number of new notification messages.
Throws
Exception