public class ForumModule extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.exoplatform.forum.service.ForumService |
forumService |
protected org.exoplatform.forum.common.jcr.KSDataLocation |
ksDataLocation |
| Constructor and Description |
|---|
ForumModule(org.exoplatform.forum.service.ForumService forumService,
org.exoplatform.forum.common.jcr.KSDataLocation ksDataLocation) |
| Modifier and Type | Method and Description |
|---|---|
void |
createCategory(org.json.JSONObject categoryJSON)
Creates the category.
|
void |
createForumContents(org.json.JSONArray forumContent)
Creates the forum contents.
|
void |
createPosts(String username)
Creates the posts.
|
protected org.exoplatform.forum.service.ForumService forumService
protected org.exoplatform.forum.common.jcr.KSDataLocation ksDataLocation
public ForumModule(org.exoplatform.forum.service.ForumService forumService,
org.exoplatform.forum.common.jcr.KSDataLocation ksDataLocation)
public void createForumContents(org.json.JSONArray forumContent)
forumContent - the forum contentpublic void createCategory(org.json.JSONObject categoryJSON)
throws org.json.JSONException
categoryJSON - the category JSONorg.json.JSONException - the JSON exceptionpublic void createPosts(String username)
username - the usernameCopyright © 2003–2017 eXo Platform SAS. All rights reserved.