|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.platform.gadget.services.ForumStatistics.ForumsWeeklyStatisticServiceImp
public class ForumsWeeklyStatisticServiceImp
Forum Weekly Statistis service
| Field Summary | |
|---|---|
static String |
STATISTIC_WEEK_HOME
|
| Fields inherited from interface org.exoplatform.platform.gadget.services.ForumStatistics.ForumsWeeklyStatisticService |
|---|
EXO_LAST_STATISTIC_ENTRY, EXO_POSTS_COUNT_OF_WEEK, EXO_START_DATE, EXO_START_POSTS_COUNT_OF_WEEK |
| Constructor Summary | |
|---|---|
ForumsWeeklyStatisticServiceImp(org.exoplatform.container.xml.InitParams params,
org.exoplatform.forum.common.jcr.KSDataLocation locator,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator)
Constructor. |
|
| Method Summary | |
|---|---|
List<ForumsWeeklyStatistic> |
getAllForumsWeeklyStatistic()
Get all Forums Weekly Statistic |
ForumsWeeklyStatistic |
getLastForumsWeeklyStatistic()
Get lastest Forums Weekly Statistic |
long |
getPostCountForumStatistic()
Get total Post Count of Forums |
String |
getRepository()
|
String |
getWorkspace()
|
void |
saveForumsWeeklyStatistic(ForumsWeeklyStatistic forumsWeeklyStatistic)
Store Forums Weekly statistic in JCR data |
void |
start()
Start the service and create a new node that contains all Forums Weekly Statistic if not found. |
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String STATISTIC_WEEK_HOME
| Constructor Detail |
|---|
public ForumsWeeklyStatisticServiceImp(org.exoplatform.container.xml.InitParams params,
org.exoplatform.forum.common.jcr.KSDataLocation locator,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator)
throws Exception
params - init parameters that were config in configuration filelocator - Object contain JCR information of ForumsnodeHierarchyCreator -
Exception| Method Detail |
|---|
public String getRepository()
public String getWorkspace()
public void start()
start in interface org.picocontainer.StartableStartable.start()public void stop()
stop in interface org.picocontainer.Startable
public ForumsWeeklyStatistic getLastForumsWeeklyStatistic()
throws Exception
getLastForumsWeeklyStatistic in interface ForumsWeeklyStatisticServiceException
public List<ForumsWeeklyStatistic> getAllForumsWeeklyStatistic()
throws Exception
getAllForumsWeeklyStatistic in interface ForumsWeeklyStatisticServiceException
public void saveForumsWeeklyStatistic(ForumsWeeklyStatistic forumsWeeklyStatistic)
throws Exception
saveForumsWeeklyStatistic in interface ForumsWeeklyStatisticServiceException
public long getPostCountForumStatistic()
throws Exception
getPostCountForumStatistic in interface ForumsWeeklyStatisticServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||