public interface FAQService extends FAQServiceLegacy
| Modifier and Type | Method and Description |
|---|---|
void |
addInitialDataPlugin(InitialDataPlugin plugin)
Adds a plugin which initializes the default FAQ data.
|
void |
addLanguage(javax.jcr.Node questionNode,
QuestionLanguage language)
Adds a language to a question.
|
void |
addLanguage(String questionPath,
QuestionLanguage language)
Adds a language to a question.
|
void |
addListenerPlugin(AnswerEventListener listener)
Adds a listener plugin.
|
void |
addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
Adds a plugin to the list of FAQ plugins.
|
void |
addRolePlugin(org.exoplatform.container.component.ComponentPlugin plugin)
Adds a plugin which defines the "administrator" role.
|
void |
addWatchCategory(String id,
Watch watch)
Adds a watch to a category.
|
void |
addWatchQuestion(String questionId,
Watch watch,
boolean isNew)
Adds a watch to a question.
|
CategoryTree |
buildCategoryTree(String categoryId)
Builds a category tree by its provided Id.
|
void |
calculateDeletedUser(String userName)
Updates information of answers related to a deleted user.
|
void |
changeStatusCategoryView(List<String> listCateIds)
Changes status of a category to "hidden" or "shown".
|
InputStream |
createAnswerRSS(String cateId)
Creates an RSS for a set of answers under a category.
|
void |
deleteAnswer(String questionId,
String answerId)
Removes an answer.
|
void |
deleteAnswerQuestionLang(String questionPath,
String answerId,
String language)
Deletes an answer's language.
|
void |
deleteCategoryWatch(String categoryId,
String user)
Deletes a watch from a category.
|
void |
deleteComment(String questionId,
String commentId)
Removes a question's comment.
|
void |
deleteCommentQuestionLang(String questionPath,
String commentId,
String language,
boolean isPromoted)
Deletes a comment's language.
|
long |
existingCategories()
Gets the number of existing categories.
|
InputStream |
exportData(String categoryId,
boolean createZipFile)
Exports a category.
|
String |
getActivityIdForAnswer(String ownerPath,
Answer answer)
Gets information of an answer activity that is used for processing the activity streams.
|
String |
getActivityIdForComment(String ownerPath,
String commentId,
String language)
Get information of a comment activity that is used for processing the activity streams.
|
String |
getActivityIdForQuestion(String ownerPath)
Gets information of a question activity that is used for processing the activity streams.
|
List<Category> |
getAllCategories()
Gets all categories.
|
List<String> |
getAllFAQAdmin()
Gets all users who are administrators of FAQ.
|
QuestionPageList |
getAllQuestions()
Gets all questions.
|
QuestionPageList |
getAllQuestionsByCatetory(String categoryId,
FAQSetting faqSetting)
Gets all questions of a category by its Id.
|
Answer |
getAnswerById(String questionId,
String answerid)
Gets a question's answer.
|
Answer |
getAnswerById(String questionPath,
String answerid,
String language)
Gets an answer by its Id.
|
Category |
getCategoryById(String categoryId)
Gets a category by its Id.
|
long[] |
getCategoryInfo(String categoryId,
FAQSetting setting)
Gets some information of a category by its Id,
including the number of its sub-categories, total of questions,
the number of questions which are unapproved and not yet answered.
|
CategoryInfo |
getCategoryInfo(String categoryPath,
List<String> categoryIdScoped)
Gets information of a category.
|
String |
getCategoryNameOf(String categoryPath)
Gets a category name.
|
javax.jcr.Node |
getCategoryNodeById(String categoryId)
Gets a category by its Id.
|
List<String> |
getCategoryPath(String categoryId)
Gets paths of a category by its Id.
|
String |
getCategoryPathOf(String id)
Gets a category path by its Id.
|
String |
getCategoryPathOfQuestion(String categoryId)
Gets a question path.
|
Comment |
getCommentById(String questionId,
String commentId)
Gets a question's comment.
|
Comment |
getCommentById(String questionPath,
String commentId,
String language)
Gets a question's comment by the question path and comment Id.
|
Comment[] |
getComments(String questionId)
Gets comments of a question.
|
List<String> |
getListCateIdByModerator(String user)
Get all categories of a given user.
|
QuestionPageList |
getListMailInWatch(String categoryId)
Gets email addresses that are watched in a category.
|
QuestionPageList |
getListQuestionsWatch(FAQSetting faqSetting,
String currentUser)
Gets a list of questions watched by a user.
|
long |
getMaxindexCategory(String parentId)
Gets the maximum index of categories.
|
org.exoplatform.forum.common.NotifyInfo |
getMessageInfo(String name)
Gets information of a message.
|
String[] |
getModeratorsOf(String path)
Gets moderators of a question or a category.
|
JCRPageList |
getPageListAnswer(String questionId,
boolean isSortByVote)
Gets answers of a question.
|
JCRPageList |
getPageListComment(String questionId)
Gets comments of a question.
|
String |
getParentCategoriesName(String path)
Gets name of a parent category.
|
Iterator<org.exoplatform.forum.common.NotifyInfo> |
getPendingMessages()
Gets messages which are not yet sent.
|
QuestionPageList |
getPendingQuestionsByCategory(String categoryId,
FAQSetting faqSetting)
Gets a list of pending questions in a category.
|
Question |
getQuestionById(String questionId)
Gets a question by its Id.
|
List<String> |
getQuestionContents(List<String> paths)
Gets titles of questions.
|
QuestionLanguage |
getQuestionLanguageByLanguage(String questionPath,
String language)
Gets a question's language.
|
List<QuestionLanguage> |
getQuestionLanguages(String questionId)
Gets all languages of a question by its Id.
|
javax.jcr.Node |
getQuestionNodeById(String path)
Gets a question by its Id.
|
QuestionPageList |
getQuestionsByCatetory(String categoryId,
FAQSetting faqSetting)
Gets activated and approved questions of a category by its Id.
|
QuestionPageList |
getQuestionsByListCatetory(List<String> listCategoryId,
boolean isNotYetAnswer)
Gets all questions from a list of categories by its Id.
|
QuestionPageList |
getQuestionsNotYetAnswer(String categoryId,
boolean isApproved)
Gets all questions which are not yet answered.
|
List<Question> |
getQuickQuestionsByListCatetory(List<String> listCategoryId,
boolean isNotYetAnswer)
Gets quick questions from a list of categories.
|
Map<String,String> |
getRelationQuestion(List<String> paths)
Gets titles of questions, then maps them to their paths.
|
List<ObjectSearchResult> |
getSearchResults(FAQEventQuery eventQuery)
Searches for information in FAQ.
|
List<Category> |
getSubCategories(String categoryId,
FAQSetting faqSetting,
boolean isGetAll,
List<String> userView)
Gets all sub-categories of a category.
|
byte[] |
getTemplate()
Gets a question's template.
|
FileAttachment |
getUserAvatar(String userName)
Gets a user's avatar.
|
void |
getUserSetting(String userName,
FAQSetting faqSetting)
Gets settings of a user that are used for displaying categories and questions.
|
List<Watch> |
getWatchByCategory(String categoryId)
Gets a list of watches in a category.
|
QuestionPageList |
getWatchedCategoryByUser(String userId)
Gets a list of questions watched by a user.
|
boolean |
hasWatch(String categoryPath)
Checks if a category has been watched or not.
|
boolean |
importData(String categoryId,
InputStream inputStream,
boolean isZip)
Imports data to a category.
|
boolean |
isAdminRole(String userName)
Checks if a user is administrator or not.
|
boolean |
isCategoryExist(String name,
String path)
Checks if a category exists or not.
|
boolean |
isCategoryModerator(String categoryId,
String user)
Checks if a user is moderator of a category or not.
|
boolean |
isExisting(String path)
Checks if a path exists or not.
|
boolean |
isModerateAnswer(String id)
Checks if moderation is applied to answers of a category or not.
|
boolean |
isModerateQuestion(String id)
Checks if moderation is applied to a question or not.
|
boolean |
isUserWatched(String userId,
String cateId)
Checks if a user is watching a category or not.
|
boolean |
isViewAuthorInfo(String id)
Checks if the author information is displayed or not.
|
List<Cate> |
listingCategoryTree()
Gets a list of categories.
|
void |
moveCategory(String categoryId,
String destCategoryId)
Moves a category to another one.
|
void |
moveQuestions(List<String> questions,
String destCategoryId,
String questionLink,
FAQSetting faqSetting)
Moves questions to a category.
|
Object |
readCategoryProperty(String categoryId,
String propertyName,
Class returnType)
Reads a category property by its name.
|
Object |
readQuestionProperty(String questionId,
String propertyName,
Class returnType)
Reads a question property by its name.
|
void |
reCalculateLastActivityOfQuestion(String absPathOfItem)
Deprecated.
: not public anymore
|
void |
removeCategory(String categoryId)
Removes a specific category by its provided Id.
|
void |
removeLanguage(String questionPath,
List<String> listLanguage)
Removes languages from a question.
|
void |
removeListenerPlugin(AnswerEventListener listener)
Removes a listener plugin.
|
void |
removeQuestion(String questionId)
Deletes a question by its Id.
|
void |
saveActivityIdForAnswer(String ownerPath,
Answer answer,
String activityId)
Saves information of an answer activity that is used for processing the activity streams.
|
void |
saveActivityIdForComment(String ownerPath,
String commentId,
String language,
String activityId)
Saves information of a comment activity that is used for processing the activity streams.
|
void |
saveActivityIdForQuestion(String ownerPath,
String activityId)
Saves information of a question activity that is used for processing the activity streams.
|
void |
saveAnswer(String questionId,
Answer[] answers)
Saves answers.
|
void |
saveAnswer(String questionId,
Answer answer,
boolean isNew)
Saves an answer.
|
void |
saveAnswer(String questionPath,
Answer answer,
String languge)
Saves an answer.
|
void |
saveAnswer(String questionPath,
QuestionLanguage questionLanguage)
Saves an answer.
|
void |
saveCategory(String parentId,
Category cat,
boolean isAddNew)
Checks if a category exists or not.
|
void |
saveComment(String questionId,
Comment comment,
boolean isNew)
Saves a question's comment.
|
void |
saveComment(String questionPath,
Comment comment,
String languge)
Saves a question's comment.
|
void |
saveFAQSetting(FAQSetting faqSetting,
String userName)
Updates the settings information of FAQ.
|
javax.jcr.Node |
saveQuestion(Question question,
boolean isAddNew,
FAQSetting faqSetting)
Saves information for a question which is added or updated.
|
void |
saveTemplate(String str)
Saves a template.
|
void |
saveTopicIdDiscussQuestion(String questionId,
String pathDiscuss)
Saves a topic.
|
void |
saveUserAvatar(String userId,
FileAttachment fileAttachment)
Saves an avatar of the user.
|
void |
setDefaultAvatar(String userName)
Sets a default avatar for a user.
|
void |
swapCategories(String cateId1,
String cateId2)
Swaps two categories.
|
void |
unVoteQuestion(String questionPath,
String userName)
Removes a vote from a question.
|
void |
unWatchCategory(String categoryId,
String userCurrent)
Unwatches a category.
|
void |
unWatchQuestion(String questionID,
String userCurrent)
Unwatches a question.
|
void |
updateQuestionRelatives(String questionPath,
String[] relatives)
Updates relatives of a question.
|
void |
voteAnswer(String answerPath,
String userName,
boolean isUp)
Votes for an answer.
|
void |
voteQuestion(String questionPath,
String userName,
int number)
Votes for a question.
|
void addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
throws Exception
plugin - The plugin to be added.Exception - the exceptionvoid addInitialDataPlugin(InitialDataPlugin plugin) throws Exception
plugin - The plugin to be added.Exceptionvoid saveCategory(String parentId, Category cat, boolean isAddNew)
This function is used to add new or update the category. The user will input information into required fields of the Add Category form, then save the category into database.
parentId - The address Id of the parent category where the user wants to add a sub-category.
When paretId is "null", this category does not contain any sub-categories.cat - The category information provided by the user.isAddNew - If "true", the new category is added. If "false", the category is updated.categoryCategoryTree buildCategoryTree(String categoryId) throws Exception
categoryId - Id of the category.Exceptionvoid changeStatusCategoryView(List<String> listCateIds) throws Exception
listCateIds - Ids of a category which is changed.Exception - the exceptionvoid removeCategory(String categoryId) throws Exception
categoryId - Id of the category which is removed.Exception - the exceptionCategory getCategoryById(String categoryId) throws Exception
categoryId - Id of the category.Exception - the exceptionList<Category> getAllCategories() throws Exception
Exception - the exceptionList<String> getListCateIdByModerator(String user) throws Exception
user - Name of the user.Exception - if the given user is not found.List<Category> getSubCategories(String categoryId, FAQSetting faqSetting, boolean isGetAll, List<String> userView) throws Exception
categoryId - Id of the category.faqSetting - Settings of FAQ.isGetAll - Deprecated.userView - Users who have the view permission on sub-categories of a category.Exception - the exceptionvoid moveCategory(String categoryId, String destCategoryId) throws Exception
categoryId - Id of the category which is moved.destCategoryId - Id of the destination category.Exception - the exceptionjavax.jcr.Node saveQuestion(Question question, boolean isAddNew, FAQSetting faqSetting) throws Exception
question - The question to be added or updated.isAddNew - If "true", the new question node is added. If "false", the question is updated.faqSetting - Settings of FAQ.Exception - if the question node's path is not found.void removeQuestion(String questionId) throws Exception
questionId - Id of the question which is deleted.Exception - if the question is not found.Question getQuestionById(String questionId) throws Exception
questionId - Id of the questionException - the exceptionQuestionPageList getAllQuestions() throws Exception
Exception - if the attachment is not found.QuestionPageList getQuestionsNotYetAnswer(String categoryId, boolean isApproved) throws Exception
categoryId - Id of the category which contains unanswered questions.isApproved - If "true", only approved questions are got.Exception - if the attachment is lost.QuestionPageList getQuestionsByCatetory(String categoryId, FAQSetting faqSetting) throws Exception
categoryId - Id of the category.faqSetting - Settings of FAQ.Exception - if the category is not found.QuestionPageList getAllQuestionsByCatetory(String categoryId, FAQSetting faqSetting) throws Exception
categoryId - Id of the category.faqSetting - Settings of FAQ.Exception - when the category is not found.long[] getCategoryInfo(String categoryId, FAQSetting setting) throws Exception
categoryId - Id of the category.setting - Settings of FAQ.Exception - if the category or question is not found by its Id, or the attached file is lost.Exception - the exceptionQuestionPageList getQuestionsByListCatetory(List<String> listCategoryId, boolean isNotYetAnswer) throws Exception
listCategoryId - Id of the categories list.isNotYetAnswer - If "true", all questions which are not yet answered are got.
If "false", all questions are got.Exception - the exceptionString getCategoryPathOfQuestion(String categoryId) throws Exception
categoryId - Id of the category containing the question.ExceptionList<QuestionLanguage> getQuestionLanguages(String questionId)
questionId - Id of the question.void moveQuestions(List<String> questions, String destCategoryId, String questionLink, FAQSetting faqSetting) throws Exception
questions - The questions to be moved.destCategoryId - Id of the destination category.questionLink - URL of the question.faqSetting - Settings of FAQ.Exception - the exceptionvoid saveFAQSetting(FAQSetting faqSetting, String userName) throws Exception
faqSetting - Settings of FAQ.userName - Name of the user for whom the FAQ settings are updated.Exception - the exceptionvoid addWatchCategory(String id, Watch watch) throws Exception
id - Id of the category which is watched.watch - The user who watches the category.Exception - the exceptionvoid deleteCategoryWatch(String categoryId, String user) throws Exception
categoryId - Id of the category.user - The user whose watch is removed by himself or someone else.Exception - the exceptionvoid unWatchCategory(String categoryId, String userCurrent) throws Exception
categoryId - Id of the category which is unwatched.userCurrent - The user whose watch is removed by himself or someone else.Exception - the exceptionvoid unWatchQuestion(String questionID, String userCurrent) throws Exception
questionID - Id of the question which is unwatched.userCurrent - The user whose watch is removed by himself or someone else.Exception - the exceptionList<ObjectSearchResult> getSearchResults(FAQEventQuery eventQuery) throws Exception
eventQuery - The Search condition.ExceptionList<String> getCategoryPath(String categoryId) throws Exception
categoryId - Id of the category.Exception - the exceptionIterator<org.exoplatform.forum.common.NotifyInfo> getPendingMessages()
void addLanguage(javax.jcr.Node questionNode,
QuestionLanguage language)
throws Exception
This method checks if a language node exists or not. If the language node does not exist, it will be added. Next, this method sets properties for the language node: name, content of question and response.
questionNode - The question to which a language is added.language - Information of the added language.Exception - the exceptionvoid getUserSetting(String userName, FAQSetting faqSetting) throws Exception
userName - Name of the user.faqSetting - Settings of FAQ.Exception - when the user or FAQ settings is/are not found.org.exoplatform.forum.common.NotifyInfo getMessageInfo(String name) throws Exception
name - Key to get the message.Exceptionboolean isAdminRole(String userName) throws Exception
userName - Name of the checked user.ExceptionList<String> getAllFAQAdmin() throws Exception
Exception - the exceptionvoid addRolePlugin(org.exoplatform.container.component.ComponentPlugin plugin)
throws Exception
plugin - The plugin to be added.Exception - the exceptionvoid addWatchQuestion(String questionId, Watch watch, boolean isNew) throws Exception
questionId - Id of the question.watch - Information of the user who watches the question.isNew - If "true", a new watch is added. If "false", the watch is edited.Exceptionvoid saveTopicIdDiscussQuestion(String questionId, String pathDiscuss) throws Exception
questionId - Id of the question which is discussed in the topic.pathDiscuss - Path to the discussion.ExceptionQuestionPageList getListQuestionsWatch(FAQSetting faqSetting, String currentUser) throws Exception
faqSetting - Settings of FAQ.currentUser - Name of the user who watches questions.Exceptionjavax.jcr.Node getCategoryNodeById(String categoryId) throws Exception
categoryId - Id of the category.Exceptionboolean importData(String categoryId, InputStream inputStream, boolean isZip) throws Exception
categoryId - Id of the category.inputStream - The data.isZip - Data is zip-typed or not.Exceptionvoid swapCategories(String cateId1, String cateId2) throws Exception
cateId1 - Id of the Category 1.cateId2 - Id of the Category 2.Exceptionlong getMaxindexCategory(String parentId) throws Exception
parentId - Id of the parent category.Exceptionvoid deleteAnswer(String questionId, String answerId) throws Exception
questionId - Id of the question whose answer is removed.answerId - Id of the answer.Exceptionvoid deleteComment(String questionId, String commentId) throws Exception
questionId - Id of the question whose comment is removed.commentId - Id of the comment.Exceptionvoid saveAnswer(String questionId, Answer answer, boolean isNew) throws Exception
questionId - Id of the question.answer - The answer to be saved.isNew - If "true", the new answer is added. If "false", the answer is updated.Exceptionvoid saveComment(String questionId, Comment comment, boolean isNew) throws Exception
questionId - Id of the question.comment - The saved comment.isNew - If "true", the new answer is added. If "false", the answer is updated.ExceptionComment getCommentById(String questionId, String commentId) throws Exception
questionId - Id of the question.commentId - Id of the comment.ExceptionAnswer getAnswerById(String questionId, String answerid) throws Exception
questionId - Id of the question.answerid - Id of the answer.Exceptionvoid saveAnswer(String questionId, Answer[] answers) throws Exception
questionId - Id of the question which contains the saved answers.answers - The saved answers.ExceptionJCRPageList getPageListComment(String questionId) throws Exception
questionId - Id of the question.ExceptionJCRPageList getPageListAnswer(String questionId, boolean isSortByVote) throws Exception
questionId - Id of the question.isSortByVote - If "true", the returned answers will be sorted by vote.ExceptionQuestionPageList getWatchedCategoryByUser(String userId) throws Exception
userId - Name of the user who watches questions.ExceptionFileAttachment getUserAvatar(String userName) throws Exception
userName - Name of the user.Exceptionvoid saveUserAvatar(String userId, FileAttachment fileAttachment) throws Exception
userId - Name of the user.fileAttachment - Avatar of the user.Exceptionboolean isUserWatched(String userId, String cateId)
userId - Name of the user.cateId - Id of the category.Exceptionvoid setDefaultAvatar(String userName) throws Exception
userName - Name of the user.ExceptionQuestionPageList getPendingQuestionsByCategory(String categoryId, FAQSetting faqSetting) throws Exception
categoryId - Id of the category.faqSetting - Settings of FAQ.ExceptionInputStream exportData(String categoryId, boolean createZipFile) throws Exception
categoryId - Id of the exported category.createZipFile - The category is exported into a zip file or not.Exceptionboolean isExisting(String path) throws Exception
path - The path to be checked.ExceptionString getCategoryPathOf(String id) throws Exception
id - Id of the category.ExceptionMap<String,String> getRelationQuestion(List<String> paths) throws Exception
paths - Paths to the questions.ExceptionList<String> getQuestionContents(List<String> paths) throws Exception
paths - Paths to the questions.Exceptionboolean isModerateAnswer(String id) throws Exception
id - Id of the category.Exceptionjavax.jcr.Node getQuestionNodeById(String path) throws Exception
path - Path to the question.ExceptionString getParentCategoriesName(String path) throws Exception
path - Path to the parent category.ExceptionQuestionPageList getListMailInWatch(String categoryId) throws Exception
categoryId - Id of the category.Exceptionboolean isCategoryModerator(String categoryId, String user) throws Exception
categoryId - Id of the category.user - Name of the user.Exceptionvoid addLanguage(String questionPath, QuestionLanguage language) throws Exception
questionPath - Path to the question.language - Information of the added language.Exceptionvoid deleteAnswerQuestionLang(String questionPath, String answerId, String language) throws Exception
questionPath - Path to the question.answerId - Id of the answer.language - The language to be deleted.Exceptionvoid deleteCommentQuestionLang(String questionPath, String commentId, String language, boolean isPromoted) throws Exception
questionPath - Path to the question.commentId - Id of the comment.language - The language to be deleted.isPromoted - If "true", the comment is promoted to an answer.ExceptionQuestionLanguage getQuestionLanguageByLanguage(String questionPath, String language) throws Exception
questionPath - Path to the question.language - Type of the language.ExceptionComment getCommentById(String questionPath, String commentId, String language) throws Exception
questionPath - Path to the question.commentId - Id of the comment.language - Type of the language.ExceptionAnswer getAnswerById(String questionPath, String answerid, String language) throws Exception
questionPath - Path to the question.answerid - Id of the answer.language - Type of the language.Exceptionvoid saveAnswer(String questionPath, Answer answer, String languge) throws Exception
questionPath - Path to the question.answer - The answer to be saved.languge - The language type of the saved answer.Exceptionvoid saveAnswer(String questionPath, QuestionLanguage questionLanguage) throws Exception
questionPath - Path to the question.questionLanguage - The language type of the saved answer.Exceptionvoid saveComment(String questionPath, Comment comment, String languge) throws Exception
questionPath - Path to the question.comment - The comment to be saved.languge - The language type of comment.Exceptionvoid removeLanguage(String questionPath, List<String> listLanguage)
questionPath - Path to the question.listLanguage - A list of removed languages.Exceptionvoid voteAnswer(String answerPath, String userName, boolean isUp) throws Exception
answerPath - Path of the answer.userName - Name of the user who has voted for the answer.isUp - If this value is "true", the answer is voted up. If "false", the answer is voted down.Exceptionvoid voteQuestion(String questionPath, String userName, int number) throws Exception
questionPath - Path to the question.userName - Name of the user who has voted for the question.number - The value of ratings (from 0 to 5 points).ExceptionString[] getModeratorsOf(String path) throws Exception
path - Path to the question or category.Exceptionvoid unVoteQuestion(String questionPath, String userName) throws Exception
questionPath - Path to the question.userName - Name of the user who unvotes the question.Exceptionboolean isViewAuthorInfo(String id)
id - Id of the question.long existingCategories()
throws Exception
ExceptionString getCategoryNameOf(String categoryPath) throws Exception
categoryPath - Path to the category.ExceptionList<Question> getQuickQuestionsByListCatetory(List<String> listCategoryId, boolean isNotYetAnswer) throws Exception
listCategoryId - Id of the categories.isNotYetAnswer - If this value is "true", only quick questions which are not yet answered are got.ExceptionList<Cate> listingCategoryTree() throws Exception
ExceptionList<Watch> getWatchByCategory(String categoryId) throws Exception
categoryId - Id of the category.Exceptionboolean hasWatch(String categoryPath)
categoryPath - Path to the category.ExceptionCategoryInfo getCategoryInfo(String categoryPath, List<String> categoryIdScoped) throws Exception
categoryPath - Path to the category.categoryIdScoped - A list of sub-categories.Exceptionbyte[] getTemplate()
throws Exception
Exceptionvoid saveTemplate(String str) throws Exception
str - The template to be saved.Exceptionboolean isCategoryExist(String name, String path)
name - Name of the category.path - Path to the category.Exceptionvoid updateQuestionRelatives(String questionPath, String[] relatives) throws Exception
questionPath - Path to the question.relatives - Relative paths of the question.Exceptionboolean isModerateQuestion(String id) throws Exception
id - Id of the question.ExceptionInputStream createAnswerRSS(String cateId) throws Exception
cateId - Id of the category.Exceptionvoid reCalculateLastActivityOfQuestion(String absPathOfItem) throws Exception
absPathOfItem - Path to the question.Exceptionvoid addListenerPlugin(AnswerEventListener listener) throws Exception
listener - The listener plugin to be added.Exceptionvoid removeListenerPlugin(AnswerEventListener listener) throws Exception
listener - The listener plugin to be removed.ExceptionComment[] getComments(String questionId) throws Exception
questionId - Id of the question.Exceptionvoid calculateDeletedUser(String userName) throws Exception
userName - Name of the deleted user.ExceptionObject readCategoryProperty(String categoryId, String propertyName, Class returnType) throws Exception
categoryId - Id of the category.propertyName - Name of the property.returnType - A returned type of the property. The supported types are String[], String, Long, Boolean, Double and Date.ExceptionObject readQuestionProperty(String questionId, String propertyName, Class returnType) throws Exception
questionId - Id of the question.propertyName - Name of the property.returnType - A returned type of the property. The supported types are String[], String, Long, Boolean, Double and Date.Exceptionvoid saveActivityIdForQuestion(String ownerPath, String activityId)
ownerPath - Path to the question activity.activityId - Id of the question activity.String getActivityIdForQuestion(String ownerPath)
ownerPath - Path to the question activity.void saveActivityIdForAnswer(String ownerPath, Answer answer, String activityId)
ownerPath - Path to the answer activity.answer - Information of the answer which is used for creating or updating the activity.activityId - Id of the answer activity.String getActivityIdForAnswer(String ownerPath, Answer answer)
ownerPath - Path to the answer activity.answer - Information of the answer which is used for getting the activity.void saveActivityIdForComment(String ownerPath, String commentId, String language, String activityId)
ownerPath - Path to the comment activity.commentId - Id of the comment.language - Language of the comment.activityId - Id of the comment activity.String getActivityIdForComment(String ownerPath, String commentId, String language)
ownerPath - Path to the comment activity.commentId - Id of the comment.language - Language of the comment.Copyright © 2003–2015 eXo Platform SAS. All rights reserved.