public class ForumsWeeklyStatisticServiceImp extends Object implements ForumsWeeklyStatisticService, org.picocontainer.Startable
| Modifier and Type | Field and Description |
|---|---|
static String |
STATISTIC_WEEK_HOME |
EXO_LAST_STATISTIC_ENTRY, EXO_POSTS_COUNT_OF_WEEK, EXO_START_DATE, EXO_START_POSTS_COUNT_OF_WEEK| Constructor and Description |
|---|
ForumsWeeklyStatisticServiceImp(org.exoplatform.container.xml.InitParams params,
org.exoplatform.forum.common.jcr.KSDataLocation locator,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public static final String STATISTIC_WEEK_HOME
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 - Exceptionpublic String getRepository()
public String getWorkspace()
public void start()
start in interface org.picocontainer.StartableStartable.start()public void stop()
stop in interface org.picocontainer.Startablepublic ForumsWeeklyStatistic getLastForumsWeeklyStatistic() throws Exception
getLastForumsWeeklyStatistic in interface ForumsWeeklyStatisticServiceExceptionpublic List<ForumsWeeklyStatistic> getAllForumsWeeklyStatistic() throws Exception
getAllForumsWeeklyStatistic in interface ForumsWeeklyStatisticServiceExceptionpublic void saveForumsWeeklyStatistic(ForumsWeeklyStatistic forumsWeeklyStatistic) throws Exception
saveForumsWeeklyStatistic in interface ForumsWeeklyStatisticServiceExceptionpublic long getPostCountForumStatistic()
throws Exception
getPostCountForumStatistic in interface ForumsWeeklyStatisticServiceExceptionCopyright © 2003–2021 eXo Platform SAS. All rights reserved.