org.exoplatform.platform.gadget.services.ForumStatistics
Class ForumRestService

java.lang.Object
  extended by org.exoplatform.platform.gadget.services.ForumStatistics.ForumRestService
All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer

public class ForumRestService
extends Object
implements org.exoplatform.services.rest.resource.ResourceContainer

REST service that serve Forums Data.

Version:
1.0
Author:
Do Thanh Tung

Constructor Summary
ForumRestService()
           
 
Method Summary
 javax.ws.rs.core.Response forumsStatistic()
          Get Forums Global statistic as JSON format.
 javax.ws.rs.core.Response forumsTopRated(int maxcount)
          Get top {maxcount} of vote rating forums topics
 javax.ws.rs.core.Response forumsWeeklyStatistic()
          Get Forums Weekly Statistics as JSON data format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForumRestService

public ForumRestService()
Method Detail

forumsStatistic

public javax.ws.rs.core.Response forumsStatistic()
Get Forums Global statistic as JSON format. REST service: URL is /forumsService/forums/statistic

Returns:
global Forums Statistis as JSON data format.

forumsWeeklyStatistic

public javax.ws.rs.core.Response forumsWeeklyStatistic()
Get Forums Weekly Statistics as JSON data format. REST service URL: /forumsService/forums/weeklystatistic

Returns:
Forums weekly statistic as JSON data format.

forumsTopRated

public javax.ws.rs.core.Response forumsTopRated(int maxcount)
Get top {maxcount} of vote rating forums topics

Parameters:
maxcount - is maximum of vote rating forums topics that will be retrieved
Returns:
top {maxcount} of vote rating forums topics as JSON format


Copyright © 2013 eXo Platform SAS. All Rights Reserved.