@Named(value="forumService") public class ForumService extends Object
| Constructor and Description |
|---|
ForumService(org.exoplatform.forum.service.ForumService forumService,
org.exoplatform.poll.service.PollService pollService,
org.exoplatform.forum.common.jcr.KSDataLocation locator)
Instantiates a new forum service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createCategory(org.json.JSONObject categoryJSON)
Creates the category.
|
void |
createForumContents(org.json.JSONArray forumContent,
PopulatorService populatorService_)
Creates the forum contents.
|
void |
createPosts(String username)
Creates the posts.
|
@Inject
public ForumService(org.exoplatform.forum.service.ForumService forumService,
org.exoplatform.poll.service.PollService pollService,
org.exoplatform.forum.common.jcr.KSDataLocation locator)
forumService - the forum servicepollService - the poll servicelocator - the locatorpublic void createForumContents(org.json.JSONArray forumContent,
PopulatorService populatorService_)
forumContent - the forum contentpopulatorService_ - the populator servicepublic 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–2018 eXo Platform SAS. All rights reserved.