|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.faq.service.impl.FAQServiceImpl
public class FAQServiceImpl
Created by The eXo Platform SARL Author : Hung Nguyen Quang hung.nguyen@exoplatform.com Mar 04, 2008
| Field Summary | |
|---|---|
static int |
CATEGORY
|
static int |
QUESTION
|
static int |
SEND_EMAIL
|
| Constructor Summary | |
|---|---|
FAQServiceImpl(org.exoplatform.container.configuration.ConfigurationManager configManager,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchy,
org.exoplatform.services.jcr.RepositoryService rService,
org.exoplatform.container.xml.InitParams params)
|
|
| Method Summary | |
|---|---|
void |
addInitialDataPlugin(InitialDataPlugin plugin)
Plugin to initialize default FAQ data |
void |
addInitRssPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
|
void |
addLanguage(javax.jcr.Node questionNode,
QuestionLanguage language)
Adds the language node, when question have multiple language, each language is a child node of question node. |
void |
addLanguage(java.lang.String questionPath,
QuestionLanguage language)
|
void |
addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
Adds the plugin. |
void |
addRolePlugin(org.exoplatform.container.component.ComponentPlugin plugin)
Adds the plugin. |
void |
addTemplatePlugin(org.exoplatform.container.component.ComponentPlugin plugin)
|
void |
addWatch(java.lang.String id,
Watch watch,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
This function is used to allow user can watch a category. |
void |
addWatchCategory(java.lang.String id,
Watch watch)
This function is used to allow user can watch a category. |
void |
addWatchQuestion(java.lang.String questionId,
Watch watch,
boolean isNew)
|
void |
addWatchQuestion(java.lang.String questionId,
Watch watch,
boolean isNew,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
|
void |
changeStatusCategoryView(java.util.List<java.lang.String> listCateIds)
|
void |
changeStatusCategoryView(java.util.List<java.lang.String> listCateIds,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
|
void |
deleteAnswer(java.lang.String questionId,
java.lang.String answerId)
|
void |
deleteAnswer(java.lang.String questionId,
java.lang.String answerId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
|
void |
deleteAnswerQuestionLang(java.lang.String questionPath,
java.lang.String answerId,
java.lang.String language)
|
void |
deleteCategoryWatch(java.lang.String categoryId,
java.lang.String user)
This method will delete watch in one category |
void |
deleteComment(java.lang.String questionId,
java.lang.String commentId)
|
void |
deleteComment(java.lang.String questionId,
java.lang.String commentId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
|
void |
deleteCommentQuestionLang(java.lang.String questionPath,
java.lang.String commentId,
java.lang.String language)
|
void |
deleteMailInWatch(java.lang.String categoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
java.lang.String user)
This function will delete watch in one category |
long |
existingCategories()
|
java.io.InputStream |
exportData(java.lang.String categoryId,
boolean createZipFile)
|
java.util.List<java.lang.String> |
getActiveBBCode()
|
java.util.List<BBCode> |
getAllBBCode()
|
java.util.List<Category> |
getAllCategories()
This method should lookup all the category and convert to category object and return list of category object |
java.util.List<Category> |
getAllCategories(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
This method get all the category |
java.util.List<java.lang.String> |
getAllFAQAdmin()
This method get all admin in FAQ |
QuestionPageList |
getAllQuestions()
Get all questions |
QuestionPageList |
getAllQuestions(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
This method get all the question and convert to list of question object (QuestionPageList) |
QuestionPageList |
getAllQuestionsByCatetory(java.lang.String categoryId,
FAQSetting faqSetting)
Get all questions of the category. |
QuestionPageList |
getAllQuestionsByCatetory(java.lang.String categoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
FAQSetting faqSetting)
This method get all questions via category identify and convert to list of question list |
Answer |
getAnswerById(java.lang.String questionId,
java.lang.String answerid)
|
Answer |
getAnswerById(java.lang.String questionId,
java.lang.String answerid,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
|
Answer |
getAnswerById(java.lang.String questionPath,
java.lang.String answerid,
java.lang.String language)
|
BBCode |
getBBcode(java.lang.String id)
|
Category |
getCategoryById(java.lang.String categoryId)
This method should lookup category via identify and convert to Category object and return |
Category |
getCategoryById(java.lang.String categoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
Returns an category that can then be get property of this category. |
long[] |
getCategoryInfo(java.lang.String categoryId,
FAQSetting setting)
Get some informations of category: Lookup category node by category's id and count sub-categories and questions are contained in this category. |
CategoryInfo |
getCategoryInfo(java.lang.String categoryPath,
java.util.List<java.lang.String> categoryIdScoped)
|
long[] |
getCategoryInfo(java.lang.String categoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
FAQSetting setting)
This method get some informations of category: to count sub-categories, to count questions, to count question have not yet answer, to count question is not approved are contained in this category |
java.lang.String |
getCategoryNameOf(java.lang.String categoryPath)
|
javax.jcr.Node |
getCategoryNodeById(java.lang.String categoryId)
|
javax.jcr.Node |
getCategoryNodeById(java.lang.String categoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
|
java.util.List<java.lang.String> |
getCategoryPath(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
java.lang.String categoryId)
This method return path of category identify |
java.util.List<java.lang.String> |
getCategoryPath(java.lang.String categoryId)
This method return path of category identify |
java.lang.String |
getCategoryPathOf(java.lang.String id)
|
java.lang.String |
getCategoryPathOfQuestion(java.lang.String questionPath)
Get path of question. |
java.lang.String |
getCategoryPathOfQuestion(java.lang.String questionPath,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
|
Comment |
getCommentById(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
java.lang.String questionId,
java.lang.String commentId)
|
Comment |
getCommentById(java.lang.String questionId,
java.lang.String commentId)
|
Comment |
getCommentById(java.lang.String questionPath,
java.lang.String commentId,
java.lang.String language)
|
QuestionPageList |
getListCategoriesWatch(java.lang.String userId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
|
java.util.List<java.lang.String> |
getListCateIdByModerator(java.lang.String user)
Get all categories of user. |
java.util.List<java.lang.String> |
getListCateIdByModerator(java.lang.String user,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
This method should lookup all the categories node so find category have user in moderators and convert to category object and return list of category object |
QuestionPageList |
getListMailInWatch(java.lang.String categoryId)
|
QuestionPageList |
getListQuestionsWatch(FAQSetting faqSetting,
java.lang.String currentUser)
|
QuestionPageList |
getListQuestionsWatch(FAQSetting faqSetting,
java.lang.String currentUser,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
|
long |
getMaxindexCategory(java.lang.String parentId)
|
long |
getMaxindexCategory(java.lang.String parentId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
|
NotifyInfo |
getMessageInfo(java.lang.String name)
|
java.lang.String[] |
getModeratorsOf(java.lang.String path)
|
JCRPageList |
getPageListAnswer(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
java.lang.String questionId,
java.lang.Boolean isSortByVote)
|
JCRPageList |
getPageListAnswer(java.lang.String questionId,
java.lang.Boolean isSortByVote)
|
JCRPageList |
getPageListComment(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
java.lang.String questionId)
|
JCRPageList |
getPageListComment(java.lang.String questionId)
|
java.lang.String |
getParentCategoriesName(java.lang.String path)
|
QuestionPageList |
getPendingQuestionsByCategory(java.lang.String categoryId,
FAQSetting faqSetting)
|
QuestionPageList |
getPendingQuestionsByCategory(java.lang.String categoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
FAQSetting faqSetting)
|
Question |
getQuestionById(java.lang.String questionId)
Lookup the question node via identify, convert to question object and return |
Question |
getQuestionById(java.lang.String questionId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
This method should get question node via identify |
java.util.List<java.lang.String> |
getQuestionContents(java.util.List<java.lang.String> paths)
|
QuestionLanguage |
getQuestionLanguageByLanguage(java.lang.String questionPath,
java.lang.String language)
|
java.util.List<QuestionLanguage> |
getQuestionLanguages(java.lang.String questionId)
Get all language nodes of question node which have id is specified, with each language node get properties of them and set into QuestionLanguage object. |
java.util.List<QuestionLanguage> |
getQuestionLanguages(java.lang.String questionId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
This method should lookup languageNode of question and find all child node of language node |
javax.jcr.Node |
getQuestionNodeById(java.lang.String path)
|
QuestionPageList |
getQuestionsByCatetory(java.lang.String categoryId,
FAQSetting faqSetting)
Get questions are activagted and approved in the category. |
QuestionPageList |
getQuestionsByCatetory(java.lang.String categoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
FAQSetting faqSetting)
This method should view questions, only question node is activated and approved via category identify and convert to list of question object |
QuestionPageList |
getQuestionsByListCatetory(java.util.List<java.lang.String> listCategoryId,
boolean isNotYetAnswer)
Get questions in list categories. |
QuestionPageList |
getQuestionsByListCatetory(java.util.List<java.lang.String> listCategoryId,
boolean isNotYetAnswer,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
This method every category should get list question, all question convert to list of question object |
javax.jcr.NodeIterator |
getQuestionsIterator()
|
javax.jcr.NodeIterator |
getQuestionsIterator(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
|
QuestionPageList |
getQuestionsNotYetAnswer(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
java.lang.String categoryId,
FAQSetting setting)
This method get all question node have not yet answer and convert to list of question object (QuestionPageList) |
QuestionPageList |
getQuestionsNotYetAnswer(java.lang.String categoryId,
boolean isApproved)
Get all questisons not yet answered, the first get all questions which have property response is null (have not yet answer) then convert to list of question object |
java.util.List<Question> |
getQuickQuestionsByListCatetory(java.util.List<java.lang.String> listCategoryId,
boolean isNotYetAnswer)
|
java.util.List<ObjectSearchResult> |
getSearchResults(FAQEventQuery eventQuery)
This method will return list question when user input value search |
java.util.List<Category> |
getSubCategories(java.lang.String categoryId,
FAQSetting faqSetting,
boolean isGetAll,
java.util.List<java.lang.String> userView)
This method should lookup all sub-categories of a category and convert to category object and return list of category object |
java.util.List<Category> |
getSubCategories(java.lang.String categoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
FAQSetting faqSetting,
boolean isGetAll,
java.util.List<java.lang.String> userView)
Returns an list category that can then be view on the screen. |
byte[] |
getTemplate()
|
FileAttachment |
getUserAvatar(java.lang.String userName)
|
FileAttachment |
getUserAvatar(java.lang.String userName,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
|
void |
getUserSetting(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
java.lang.String userName,
FAQSetting faqSetting)
|
void |
getUserSetting(java.lang.String userName,
FAQSetting faqSetting)
Get setting of user to view data (categories and questions). |
java.util.List<Watch> |
getWatchByCategory(java.lang.String categoryId)
|
boolean |
getWatchByUser(java.lang.String userId,
java.lang.String cateId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
|
QuestionPageList |
getWatchedCategoryByUser(java.lang.String userId)
|
boolean |
hasWatch(java.lang.String categoryPath)
|
boolean |
importData(java.lang.String categoryId,
java.io.InputStream inputStream,
boolean isZip)
|
void |
importData(java.lang.String categoryId,
javax.jcr.Session session,
java.io.InputStream inputStream,
boolean isZip,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
|
boolean |
isAdminRole(java.lang.String userName)
Check permission of user |
boolean |
isAdminRole(java.lang.String userName,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
|
boolean |
isCategoryExist(java.lang.String name,
java.lang.String path)
|
boolean |
isCategoryModerator(java.lang.String categoryPath,
java.lang.String user)
|
boolean |
isExisting(java.lang.String path)
|
boolean |
isModerateAnswer(java.lang.String id)
|
boolean |
isModerateQuestion(java.lang.String id)
|
boolean |
isUserWatched(java.lang.String userId,
java.lang.String cateId)
|
boolean |
isViewAuthorInfo(java.lang.String id)
|
java.util.List<Cate> |
listingCategoryTree()
|
void |
moveCategory(java.lang.String categoryId,
java.lang.String destCategoryId)
|
void |
moveCategory(java.lang.String categoryId,
java.lang.String destCategoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
Move one category in list to another plate in project. |
void |
moveQuestions(java.util.List<java.lang.String> questions,
java.lang.String destCategoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
This method should lookup questions via question identify and from category identify so lookup destination category and move questions to destination category |
void |
moveQuestions(java.util.List<java.lang.String> questions,
java.lang.String destCategoryId,
java.lang.String questionLink,
FAQSetting faqSetting)
Move all of questions to category which have id is specified |
void |
removeBBCode(java.lang.String bbcodeId)
|
void |
removeCategory(java.lang.String categoryId)
This method should check exists of category and remove it |
void |
removeCategory(java.lang.String categoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
Remove one category in list |
void |
removeLanguage(java.lang.String questionPath,
java.util.List<java.lang.String> listLanguage)
|
void |
removeQuestion(java.lang.String questionId)
Delete question by question's id. |
void |
removeQuestion(java.lang.String questionId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
Remove one question in list |
void |
saveAnswer(java.lang.String questionId,
Answer[] answers)
|
void |
saveAnswer(java.lang.String questionId,
Answer[] answers,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
|
void |
saveAnswer(java.lang.String questionId,
Answer answer,
boolean isNew)
|
void |
saveAnswer(java.lang.String questionId,
Answer answer,
boolean isNew,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
|
void |
saveAnswer(java.lang.String questionPath,
Answer answer,
java.lang.String language)
|
void |
saveAnswer(java.lang.String questionPath,
QuestionLanguage questionLanguage)
|
void |
saveBBCode(java.util.List<BBCode> bbcodes)
|
void |
saveCategory(java.lang.String parentId,
Category cat,
boolean isAddNew)
This method should check exists category or NOT to create new or update exists category |
void |
saveCategory(java.lang.String parentId,
Category cat,
boolean isAddNew,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
Add new or edit category in list. |
void |
saveComment(java.lang.String questionId,
Comment comment,
boolean isNew)
|
void |
saveComment(java.lang.String questionId,
Comment comment,
boolean isNew,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
|
void |
saveComment(java.lang.String questionPath,
Comment comment,
java.lang.String languge)
|
void |
saveFAQSetting(FAQSetting faqSetting,
java.lang.String userName)
This method to update FAQ setting. |
void |
saveFAQSetting(FAQSetting faqSetting,
java.lang.String userName,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
This function is used to set some properties of FAQ. |
javax.jcr.Node |
saveQuestion(Question question,
boolean isAddNew,
FAQSetting faqSetting)
Save question after create new question or edit infor of quesiton which is existed. |
javax.jcr.Node |
saveQuestion(Question question,
boolean isAddNew,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
FAQSetting faqSetting)
This method should create new question or update exists question |
void |
saveTemplate(java.lang.String str)
|
void |
saveTopicIdDiscussQuestion(java.lang.String questionId,
java.lang.String pathDiscuss)
|
void |
saveTopicIdDiscussQuestion(java.lang.String questionId,
java.lang.String pathDiscuss,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
|
void |
saveUserAvatar(java.lang.String userId,
FileAttachment fileAttachment)
|
void |
saveUserAvatar(java.lang.String userId,
FileAttachment fileAttachment,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
|
void |
sendMessage(org.exoplatform.services.mail.Message message)
This function will send message to address but you want send |
void |
setDefaultAvatar(java.lang.String userName)
|
void |
setDefaultAvatar(java.lang.String userName,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
|
void |
start()
|
void |
stop()
|
void |
swapCategories(java.lang.String cateId1,
java.lang.String cateId2)
|
void |
swapCategories(java.lang.String parentCateId,
java.lang.String cateId1,
java.lang.String cateId2,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
|
void |
unVoteQuestion(java.lang.String questionPath,
java.lang.String userName)
|
void |
UnWatch(java.lang.String categoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
java.lang.String userCurrent)
This function will un watch in one category |
void |
unWatchCategory(java.lang.String categoryId,
java.lang.String userCurrent)
This method will un watch in one category |
void |
UnWatchQuestion(java.lang.String questionID,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
java.lang.String userCurrent)
This function will un watch in one category |
void |
unWatchQuestion(java.lang.String questionID,
java.lang.String userCurrent)
This method will un watch in one question |
void |
updateQuestionRelatives(java.lang.String questionPath,
java.lang.String[] relatives)
|
void |
voteAnswer(java.lang.String answerPath,
java.lang.String userName,
boolean isUp)
|
void |
voteQuestion(java.lang.String questionPath,
java.lang.String userName,
int number)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CATEGORY
public static final int QUESTION
public static final int SEND_EMAIL
| Constructor Detail |
|---|
public FAQServiceImpl(org.exoplatform.container.configuration.ConfigurationManager configManager,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchy,
org.exoplatform.services.jcr.RepositoryService rService,
org.exoplatform.container.xml.InitParams params)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
throws java.lang.Exception
FAQService
addPlugin in interface FAQServiceplugin - the plugin
java.lang.Exception - the exception
public void addRolePlugin(org.exoplatform.container.component.ComponentPlugin plugin)
throws java.lang.Exception
FAQService
addRolePlugin in interface FAQServiceplugin - the plugin
java.lang.Exception - the exception
public void addInitialDataPlugin(InitialDataPlugin plugin)
throws java.lang.Exception
FAQService
addInitialDataPlugin in interface FAQServicejava.lang.Exception
public void addInitRssPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
throws java.lang.Exception
addInitRssPlugin in interface FAQServicejava.lang.Exception
public void addTemplatePlugin(org.exoplatform.container.component.ComponentPlugin plugin)
throws java.lang.Exception
java.lang.Exceptionpublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startable
public java.util.List<java.lang.String> getAllFAQAdmin()
throws java.lang.Exception
getAllFAQAdmin in interface FAQServicejava.lang.Exception - the exception
public java.util.List<Category> getAllCategories(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
getAllCategories in interface FAQServiceLegacysProvider - is session provider
java.lang.Exception - the exception
public java.util.List<Category> getAllCategories()
throws java.lang.Exception
FAQService
getAllCategories in interface FAQServicejava.lang.Exception - the exception
public QuestionPageList getAllQuestions(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
getAllQuestions in interface FAQServiceLegacysProvider -
java.lang.Exception - the exception
public QuestionPageList getAllQuestions()
throws java.lang.Exception
FAQService
getAllQuestions in interface FAQServicejava.lang.Exception - if attachment not foune
public QuestionPageList getQuestionsNotYetAnswer(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
java.lang.String categoryId,
FAQSetting setting)
throws java.lang.Exception
getQuestionsNotYetAnswer in interface FAQServiceLegacysProvider -
java.lang.Exception - the exception
public QuestionPageList getQuestionsNotYetAnswer(java.lang.String categoryId,
boolean isApproved)
throws java.lang.Exception
FAQService
getQuestionsNotYetAnswer in interface FAQServicejava.lang.Exception - if lost attachment
public long[] getCategoryInfo(java.lang.String categoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
FAQSetting setting)
throws java.lang.Exception
getCategoryInfo in interface FAQServiceLegacycategoryId - sProvider -
java.lang.Exception - the exception
public long[] getCategoryInfo(java.lang.String categoryId,
FAQSetting setting)
throws java.lang.Exception
FAQService
getCategoryInfo in interface FAQServicecategoryId - the category id
java.lang.Exception - if not found category by id
if not found question or lose file attach
public Category getCategoryById(java.lang.String categoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
getCategoryById in interface FAQServiceLegacycategoryId - is address id of the category so you want getsProvider -
java.lang.Exception - the exceptioncategory
public Category getCategoryById(java.lang.String categoryId)
throws java.lang.Exception
FAQService
getCategoryById in interface FAQServicecategoryId - is address id of the category so you want get
java.lang.Exception - the exceptioncategory
public Question getQuestionById(java.lang.String questionId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
getQuestionById in interface FAQServiceLegacyquestion - identifysProvider -
java.lang.Exception - the exception
public Question getQuestionById(java.lang.String questionId)
throws java.lang.Exception
FAQService
getQuestionById in interface FAQServicequestionId - the question id
java.lang.Exception - the exception
public QuestionPageList getQuestionsByCatetory(java.lang.String categoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
FAQSetting faqSetting)
throws java.lang.Exception
getQuestionsByCatetory in interface FAQServiceLegacyCategory - identifysProvider -
java.lang.Exception - the exception
public QuestionPageList getQuestionsByCatetory(java.lang.String categoryId,
FAQSetting faqSetting)
throws java.lang.Exception
FAQServicecategoryId
then lookup questions of this category, only question is activated and approved
via category identify, the last convert to list of question object
getQuestionsByCatetory in interface FAQServicecategoryId - the category id
java.lang.Exception - if can't found category
public QuestionPageList getAllQuestionsByCatetory(java.lang.String categoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
FAQSetting faqSetting)
throws java.lang.Exception
getAllQuestionsByCatetory in interface FAQServiceLegacyCategory - identifysProvider -
java.lang.Exception - the exception
public QuestionPageList getAllQuestionsByCatetory(java.lang.String categoryId,
FAQSetting faqSetting)
throws java.lang.Exception
FAQServicecategoryId
then get all questions of this category and put them into an question page list object
getAllQuestionsByCatetory in interface FAQServicecategoryId - the id of category
java.lang.Exception - when category not found
public QuestionPageList getQuestionsByListCatetory(java.util.List<java.lang.String> listCategoryId,
boolean isNotYetAnswer,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
getQuestionsByListCatetory in interface FAQServiceLegacylistCategoryId - is list via identifyisNotYetAnswer - if isNotYetAnswer equal true then return list question is not yet answer
isNotYetAnswer if isNotYetAnswer equal false then return list all questionssProvider -
java.lang.Exception - the exception
public QuestionPageList getQuestionsByListCatetory(java.util.List<java.lang.String> listCategoryId,
boolean isNotYetAnswer)
throws java.lang.Exception
FAQService
With each category in the list categories, if isNotYetAnswer
is false get all questoin in this catgory else get questions
which is not yet answered, and put them in to a QuestionPageList object
getQuestionsByListCatetory in interface FAQServicelistCategoryId - the list category idisNotYetAnswer - is true if get qeustions not yet answered
is false if want get all questions in list categories
java.lang.Exception - the exception
public java.lang.String getCategoryPathOfQuestion(java.lang.String questionPath,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
getCategoryPathOfQuestion in interface FAQServiceLegacyjava.lang.Exception
public java.lang.String getCategoryPathOfQuestion(java.lang.String questionPath)
throws java.lang.Exception
FAQService
getCategoryPathOfQuestion in interface FAQServicequestionPath - id of category is contain question
java.lang.Exception
public java.util.List<QuestionLanguage> getQuestionLanguages(java.lang.String questionId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
getQuestionLanguages in interface FAQServiceLegacyQuestion - identifysProvider -
java.lang.Exception - the exception
public java.util.List<QuestionLanguage> getQuestionLanguages(java.lang.String questionId)
throws java.lang.Exception
FAQService
getQuestionLanguages in interface FAQServicequestionId - the id of question
java.lang.Exception - when question not found
public java.util.List<Category> getSubCategories(java.lang.String categoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
FAQSetting faqSetting,
boolean isGetAll,
java.util.List<java.lang.String> userView)
throws java.lang.Exception
This method always returns immediately, this view list category in screen. if categoryId equal null then list category is list parent category else this view list category of one value parent category that you communicate categoryId
getSubCategories in interface FAQServiceLegacycategoryId - is address id of the categorysProvider - userView - TODO
java.lang.Exception - the exceptioncategory
public java.util.List<Category> getSubCategories(java.lang.String categoryId,
FAQSetting faqSetting,
boolean isGetAll,
java.util.List<java.lang.String> userView)
throws java.lang.Exception
FAQService
getSubCategories in interface FAQServicecategoryId - the category iduserView - TODO
java.lang.Exception - the exception
public void moveQuestions(java.util.List<java.lang.String> questions,
java.lang.String destCategoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
moveQuestions in interface FAQServiceLegacyQuestion - identify listdestination - category identifysProvider -
java.lang.Exception - the exception
public void moveQuestions(java.util.List<java.lang.String> questions,
java.lang.String destCategoryId,
java.lang.String questionLink,
FAQSetting faqSetting)
throws java.lang.Exception
FAQService
moveQuestions in interface FAQServicequestions - the questionsdestCategoryId - the dest category idquestionLink - TODOfaqSetting - TODO
java.lang.Exception - the exception
public void removeCategory(java.lang.String categoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
This function is used to remove one category in list
removeCategory in interface FAQServiceLegacycategoryId - is address id of the category need removesProvider -
java.lang.Exception - the exception
public void removeCategory(java.lang.String categoryId)
throws java.lang.Exception
FAQService
removeCategory in interface FAQServicecategoryId - is address id of the category need remove
java.lang.Exception - the exception
public void removeQuestion(java.lang.String questionId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
This function is used to remove one question in list
removeQuestion in interface FAQServiceLegacyquestion - identifysProvider -
java.lang.Exception - the exception
public void removeQuestion(java.lang.String questionId)
throws java.lang.Exception
FAQService
removeQuestion in interface FAQServicequestionId - the id of question is deleted
java.lang.Exception - if question not found
public void saveCategory(java.lang.String parentId,
Category cat,
boolean isAddNew,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
This function is used to add new or edit category in list. User will input information of fields need in form add category, so user save then category will persistent in data
saveCategory in interface FAQServiceLegacyparentId - is address id of the category parent where user want add sub category
when paretId equal null so this category is parent category else sub categorycat - is properties that user input to interface will save on dataisAddNew - is true when add new category else update categorysProvider -
java.lang.Exception - the exceptioncategory
public void saveCategory(java.lang.String parentId,
Category cat,
boolean isAddNew)
throws java.lang.Exception
FAQServiceThis function is used to add new or edit category in list. User will input information of fields need in form add category, so user save then category will persistent in data
saveCategory in interface FAQServiceparentId - is address id of the category parent where user want add sub category
when paretId = null so this category is parent category else sub categorycat - is properties that user input to interface will save on dataisAddNew - is true when add new category else update category
java.lang.Exception - the exceptioncategory
public void changeStatusCategoryView(java.util.List<java.lang.String> listCateIds,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
changeStatusCategoryView in interface FAQServiceLegacyjava.lang.Exception
public void changeStatusCategoryView(java.util.List<java.lang.String> listCateIds)
throws java.lang.Exception
changeStatusCategoryView in interface FAQServicejava.lang.Exception
public javax.jcr.Node saveQuestion(Question question,
boolean isAddNew,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
FAQSetting faqSetting)
throws java.lang.Exception
saveQuestion in interface FAQServiceLegacyquestion - is information but user input or edit to form interface of questionisAddNew - equal true then add new question
isAddNew equal false then update questionsProvider -
java.lang.Exception
public javax.jcr.Node saveQuestion(Question question,
boolean isAddNew,
FAQSetting faqSetting)
throws java.lang.Exception
FAQServiceisAddNew is true then create new question node
and set properties of question object to this node else reset infor for
this question node
saveQuestion in interface FAQServicequestion - the questionisAddNew - is true if create new question node
and is false if edit question node
java.lang.Exception - if path of question nod not found
public void saveFAQSetting(FAQSetting faqSetting,
java.lang.String userName,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
This function is used(Users of FAQ Administrator) choose some properties in object FAQSetting
saveFAQSetting in interface FAQServiceLegacynewSetting - is properties of object FAQSetting that user input to interface will save on datasProvider -
java.lang.Exception - the exception
public void saveFAQSetting(FAQSetting faqSetting,
java.lang.String userName)
throws java.lang.Exception
FAQService
saveFAQSetting in interface FAQServicejava.lang.Exception - the exception
public void moveCategory(java.lang.String categoryId,
java.lang.String destCategoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
This function is used to move category in list. User will right click on category need move, so user choose in list category one another category want to put
moveCategory in interface FAQServiceLegacycategoryId - is address id of the category that user want platedestCategoryId - is address id of the category that user want put( destination )sProvider -
java.lang.Exception - the exceptionsee category this plate but user see that category at new plate
public void moveCategory(java.lang.String categoryId,
java.lang.String destCategoryId)
throws java.lang.Exception
moveCategory in interface FAQServicejava.lang.Exception
public void addWatch(java.lang.String id,
Watch watch,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
addWatch in interface FAQServiceLegacyid - of category with user want add watch on that categoryvalue, - this address email (multiple value) with input to interface will save on datasProvider -
java.lang.Exception - the exception
public void addWatchCategory(java.lang.String id,
Watch watch)
throws java.lang.Exception
FAQService
addWatchCategory in interface FAQServiceid - of category with user want add watch on that category
java.lang.Exception - the exception
public void deleteMailInWatch(java.lang.String categoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
java.lang.String user)
throws java.lang.Exception
deleteMailInWatch in interface FAQServiceLegacycategoryId - is id of current categorysProvider - emails - is location current of one watch with user want delete
java.lang.Exception - the exception
public void deleteCategoryWatch(java.lang.String categoryId,
java.lang.String user)
throws java.lang.Exception
FAQService
deleteCategoryWatch in interface FAQServicecategoryId - is id of current category
java.lang.Exception - the exception
public void UnWatch(java.lang.String categoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
java.lang.String userCurrent)
throws java.lang.Exception
UnWatch in interface FAQServiceLegacycategoryId - is id of current categorysProvider - emails - is location current of one watch with user want delete
java.lang.Exception - the exception
public void unWatchCategory(java.lang.String categoryId,
java.lang.String userCurrent)
throws java.lang.Exception
FAQService
unWatchCategory in interface FAQServicecategoryId - is id of current categoryuserCurrent - is user current then you un watch
java.lang.Exception - the exception
public void UnWatchQuestion(java.lang.String questionID,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
java.lang.String userCurrent)
throws java.lang.Exception
UnWatchQuestion in interface FAQServiceLegacycategoryId - is id of current categorysProvider - emails - is location current of one watch with user want delete
java.lang.Exception - the exception
public void unWatchQuestion(java.lang.String questionID,
java.lang.String userCurrent)
throws java.lang.Exception
FAQService
unWatchQuestion in interface FAQServiceuserCurrent - is user current then you un watch
java.lang.Exception - the exception
public java.util.List<java.lang.String> getListCateIdByModerator(java.lang.String user,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
getListCateIdByModerator in interface FAQServiceLegacyuser - is name when user loginsProvider -
java.lang.Exception - the exception
public java.util.List<java.lang.String> getListCateIdByModerator(java.lang.String user)
throws java.lang.Exception
FAQServiceuser in moderators after that put this categories
into a list category object
getListCateIdByModerator in interface FAQServiceuser - the name of user
java.lang.Exception - if can't found user
public java.util.List<ObjectSearchResult> getSearchResults(FAQEventQuery eventQuery)
throws java.lang.Exception
With many questions , it's difficult to find a question which user want to see. So to support to users can find their questions more quickly and accurate, user can use 'Search Question' function
getSearchResults in interface FAQServicesProvider - eventQuery - is object save value in form advanced search
java.lang.Exception - the exception
public java.util.List<java.lang.String> getCategoryPath(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
java.lang.String categoryId)
throws java.lang.Exception
getCategoryPath in interface FAQServiceLegacycategory - identifysProvider -
java.lang.Exception - the exception
public java.util.List<java.lang.String> getCategoryPath(java.lang.String categoryId)
throws java.lang.Exception
FAQService
getCategoryPath in interface FAQServicejava.lang.Exception - the exception
public void sendMessage(org.exoplatform.services.mail.Message message)
throws java.lang.Exception
sendMessage in interface FAQServicemessage - is object save content with user want send to one or many address email
java.lang.Exception - the exception
public void addLanguage(javax.jcr.Node questionNode,
QuestionLanguage language)
throws java.lang.Exception
addLanguage in interface FAQServicequestionNode - the question node which have multiple languagelanguage - the language which is added in to questionNode
java.lang.Exception - throw an exception when save a new language node
public void getUserSetting(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
java.lang.String userName,
FAQSetting faqSetting)
throws java.lang.Exception
getUserSetting in interface FAQServiceLegacyjava.lang.Exception
public void getUserSetting(java.lang.String userName,
FAQSetting faqSetting)
throws java.lang.Exception
FAQService
getUserSetting in interface FAQServiceuserName - the name of userfaqSetting - the setting of user
java.lang.Exception - when can't find user or faqSetting
public NotifyInfo getMessageInfo(java.lang.String name)
throws java.lang.Exception
getMessageInfo in interface FAQServicejava.lang.Exception
public boolean isAdminRole(java.lang.String userName,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
isAdminRole in interface FAQServiceLegacyjava.lang.Exception
public boolean isAdminRole(java.lang.String userName)
throws java.lang.Exception
FAQService
isAdminRole in interface FAQServiceuserName - id or user name of user who is checked permission
true if user is addmin and false if opposite
java.lang.Exception
public javax.jcr.Node getCategoryNodeById(java.lang.String categoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
getCategoryNodeById in interface FAQServiceLegacyjava.lang.Exception
public javax.jcr.Node getCategoryNodeById(java.lang.String categoryId)
throws java.lang.Exception
getCategoryNodeById in interface FAQServicejava.lang.Exception
public void addWatchQuestion(java.lang.String questionId,
Watch watch,
boolean isNew,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
addWatchQuestion in interface FAQServiceLegacyjava.lang.Exception
public void addWatchQuestion(java.lang.String questionId,
Watch watch,
boolean isNew)
throws java.lang.Exception
addWatchQuestion in interface FAQServicejava.lang.Exception
public QuestionPageList getListQuestionsWatch(FAQSetting faqSetting,
java.lang.String currentUser,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
getListQuestionsWatch in interface FAQServiceLegacyjava.lang.Exception
public QuestionPageList getListQuestionsWatch(FAQSetting faqSetting,
java.lang.String currentUser)
throws java.lang.Exception
getListQuestionsWatch in interface FAQServicejava.lang.Exception
public void importData(java.lang.String categoryId,
javax.jcr.Session session,
java.io.InputStream inputStream,
boolean isZip,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
importData in interface FAQServiceLegacyjava.lang.Exception
public boolean importData(java.lang.String categoryId,
java.io.InputStream inputStream,
boolean isZip)
throws java.lang.Exception
importData in interface FAQServicejava.lang.Exception
public java.io.InputStream exportData(java.lang.String categoryId,
boolean createZipFile)
throws java.lang.Exception
exportData in interface FAQServicejava.lang.Exception
public void swapCategories(java.lang.String parentCateId,
java.lang.String cateId1,
java.lang.String cateId2,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
swapCategories in interface FAQServiceLegacyjava.lang.Exception
public void swapCategories(java.lang.String cateId1,
java.lang.String cateId2)
throws java.lang.Exception
swapCategories in interface FAQServicejava.lang.Exception
public void saveTopicIdDiscussQuestion(java.lang.String questionId,
java.lang.String pathDiscuss,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
saveTopicIdDiscussQuestion in interface FAQServiceLegacyjava.lang.Exception
public void saveTopicIdDiscussQuestion(java.lang.String questionId,
java.lang.String pathDiscuss)
throws java.lang.Exception
saveTopicIdDiscussQuestion in interface FAQServicejava.lang.Exception
public long getMaxindexCategory(java.lang.String parentId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
getMaxindexCategory in interface FAQServiceLegacyjava.lang.Exception
public long getMaxindexCategory(java.lang.String parentId)
throws java.lang.Exception
getMaxindexCategory in interface FAQServicejava.lang.Exception
public void deleteAnswer(java.lang.String questionId,
java.lang.String answerId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
deleteAnswer in interface FAQServiceLegacyjava.lang.Exception
public void deleteAnswer(java.lang.String questionId,
java.lang.String answerId)
throws java.lang.Exception
deleteAnswer in interface FAQServicejava.lang.Exception
public void deleteComment(java.lang.String questionId,
java.lang.String commentId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
deleteComment in interface FAQServiceLegacyjava.lang.Exception
public void deleteComment(java.lang.String questionId,
java.lang.String commentId)
throws java.lang.Exception
deleteComment in interface FAQServicejava.lang.Exception
public void saveAnswer(java.lang.String questionId,
Answer answer,
boolean isNew,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
saveAnswer in interface FAQServiceLegacyjava.lang.Exception
public void saveAnswer(java.lang.String questionId,
Answer answer,
boolean isNew)
throws java.lang.Exception
saveAnswer in interface FAQServicejava.lang.Exception
public void saveComment(java.lang.String questionId,
Comment comment,
boolean isNew,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
saveComment in interface FAQServiceLegacyjava.lang.Exception
public void saveComment(java.lang.String questionId,
Comment comment,
boolean isNew)
throws java.lang.Exception
saveComment in interface FAQServicejava.lang.Exception
public Comment getCommentById(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
java.lang.String questionId,
java.lang.String commentId)
throws java.lang.Exception
getCommentById in interface FAQServiceLegacyjava.lang.Exception
public Comment getCommentById(java.lang.String questionId,
java.lang.String commentId)
throws java.lang.Exception
getCommentById in interface FAQServicejava.lang.Exception
public Answer getAnswerById(java.lang.String questionId,
java.lang.String answerid,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
getAnswerById in interface FAQServiceLegacyjava.lang.Exception
public Answer getAnswerById(java.lang.String questionId,
java.lang.String answerid)
throws java.lang.Exception
getAnswerById in interface FAQServicejava.lang.Exception
public void saveAnswer(java.lang.String questionId,
Answer[] answers,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
saveAnswer in interface FAQServiceLegacyjava.lang.Exception
public void saveAnswer(java.lang.String questionId,
Answer[] answers)
throws java.lang.Exception
saveAnswer in interface FAQServicejava.lang.Exception
public JCRPageList getPageListAnswer(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
java.lang.String questionId,
java.lang.Boolean isSortByVote)
throws java.lang.Exception
getPageListAnswer in interface FAQServiceLegacyjava.lang.Exception
public JCRPageList getPageListAnswer(java.lang.String questionId,
java.lang.Boolean isSortByVote)
throws java.lang.Exception
getPageListAnswer in interface FAQServicejava.lang.Exception
public JCRPageList getPageListComment(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
java.lang.String questionId)
throws java.lang.Exception
getPageListComment in interface FAQServiceLegacyjava.lang.Exception
public JCRPageList getPageListComment(java.lang.String questionId)
throws java.lang.Exception
getPageListComment in interface FAQServicejava.lang.Exception
public QuestionPageList getListCategoriesWatch(java.lang.String userId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
getListCategoriesWatch in interface FAQServiceLegacyjava.lang.Exception
public QuestionPageList getWatchedCategoryByUser(java.lang.String userId)
throws java.lang.Exception
getWatchedCategoryByUser in interface FAQServicejava.lang.Exception
public FileAttachment getUserAvatar(java.lang.String userName,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
getUserAvatar in interface FAQServiceLegacyjava.lang.Exception
public FileAttachment getUserAvatar(java.lang.String userName)
throws java.lang.Exception
getUserAvatar in interface FAQServicejava.lang.Exception
public void saveUserAvatar(java.lang.String userId,
FileAttachment fileAttachment,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
saveUserAvatar in interface FAQServiceLegacyjava.lang.Exception
public void saveUserAvatar(java.lang.String userId,
FileAttachment fileAttachment)
throws java.lang.Exception
saveUserAvatar in interface FAQServicejava.lang.Exception
public void setDefaultAvatar(java.lang.String userName,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
setDefaultAvatar in interface FAQServiceLegacyjava.lang.Exception
public void setDefaultAvatar(java.lang.String userName)
throws java.lang.Exception
setDefaultAvatar in interface FAQServicejava.lang.Exception
public boolean getWatchByUser(java.lang.String userId,
java.lang.String cateId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
getWatchByUser in interface FAQServiceLegacyjava.lang.Exception
public boolean isUserWatched(java.lang.String userId,
java.lang.String cateId)
isUserWatched in interface FAQService
public QuestionPageList getPendingQuestionsByCategory(java.lang.String categoryId,
org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
FAQSetting faqSetting)
throws java.lang.Exception
getPendingQuestionsByCategory in interface FAQServiceLegacyjava.lang.Exception
public QuestionPageList getPendingQuestionsByCategory(java.lang.String categoryId,
FAQSetting faqSetting)
throws java.lang.Exception
getPendingQuestionsByCategory in interface FAQServicejava.lang.Exception
public javax.jcr.NodeIterator getQuestionsIterator(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws java.lang.Exception
getQuestionsIterator in interface FAQServiceLegacyjava.lang.Exception
public javax.jcr.NodeIterator getQuestionsIterator()
throws java.lang.Exception
getQuestionsIterator in interface FAQServicejava.lang.Exceptionpublic boolean isExisting(java.lang.String path)
isExisting in interface FAQService
public java.lang.String getCategoryPathOf(java.lang.String id)
throws java.lang.Exception
getCategoryPathOf in interface FAQServicejava.lang.Exception
public java.util.List<java.lang.String> getQuestionContents(java.util.List<java.lang.String> paths)
throws java.lang.Exception
getQuestionContents in interface FAQServicejava.lang.Exception
public javax.jcr.Node getQuestionNodeById(java.lang.String path)
throws java.lang.Exception
getQuestionNodeById in interface FAQServicejava.lang.Exception
public boolean isModerateAnswer(java.lang.String id)
throws java.lang.Exception
isModerateAnswer in interface FAQServicejava.lang.Exception
public boolean isModerateQuestion(java.lang.String id)
throws java.lang.Exception
isModerateQuestion in interface FAQServicejava.lang.Exception
public java.lang.String getParentCategoriesName(java.lang.String path)
throws java.lang.Exception
getParentCategoriesName in interface FAQServicejava.lang.Exception
public QuestionPageList getListMailInWatch(java.lang.String categoryId)
throws java.lang.Exception
getListMailInWatch in interface FAQServicejava.lang.Exception
public boolean isCategoryModerator(java.lang.String categoryPath,
java.lang.String user)
throws java.lang.Exception
isCategoryModerator in interface FAQServicejava.lang.Exception
public void addLanguage(java.lang.String questionPath,
QuestionLanguage language)
throws java.lang.Exception
addLanguage in interface FAQServicejava.lang.Exception
public void deleteAnswerQuestionLang(java.lang.String questionPath,
java.lang.String answerId,
java.lang.String language)
throws java.lang.Exception
deleteAnswerQuestionLang in interface FAQServicejava.lang.Exception
public void deleteCommentQuestionLang(java.lang.String questionPath,
java.lang.String commentId,
java.lang.String language)
throws java.lang.Exception
deleteCommentQuestionLang in interface FAQServicejava.lang.Exception
public QuestionLanguage getQuestionLanguageByLanguage(java.lang.String questionPath,
java.lang.String language)
throws java.lang.Exception
getQuestionLanguageByLanguage in interface FAQServicejava.lang.Exception
public Comment getCommentById(java.lang.String questionPath,
java.lang.String commentId,
java.lang.String language)
throws java.lang.Exception
getCommentById in interface FAQServicejava.lang.Exception
public Answer getAnswerById(java.lang.String questionPath,
java.lang.String answerid,
java.lang.String language)
throws java.lang.Exception
getAnswerById in interface FAQServicejava.lang.Exception
public void saveAnswer(java.lang.String questionPath,
Answer answer,
java.lang.String language)
throws java.lang.Exception
saveAnswer in interface FAQServicejava.lang.Exception
public void saveAnswer(java.lang.String questionPath,
QuestionLanguage questionLanguage)
throws java.lang.Exception
saveAnswer in interface FAQServicejava.lang.Exception
public void saveComment(java.lang.String questionPath,
Comment comment,
java.lang.String languge)
throws java.lang.Exception
saveComment in interface FAQServicejava.lang.Exception
public void removeLanguage(java.lang.String questionPath,
java.util.List<java.lang.String> listLanguage)
removeLanguage in interface FAQService
public void voteAnswer(java.lang.String answerPath,
java.lang.String userName,
boolean isUp)
throws java.lang.Exception
voteAnswer in interface FAQServicejava.lang.Exception
public void voteQuestion(java.lang.String questionPath,
java.lang.String userName,
int number)
throws java.lang.Exception
voteQuestion in interface FAQServicejava.lang.Exception
public void unVoteQuestion(java.lang.String questionPath,
java.lang.String userName)
throws java.lang.Exception
unVoteQuestion in interface FAQServicejava.lang.Exception
public java.lang.String[] getModeratorsOf(java.lang.String path)
throws java.lang.Exception
getModeratorsOf in interface FAQServicejava.lang.Exception
public boolean isViewAuthorInfo(java.lang.String id)
throws java.lang.Exception
isViewAuthorInfo in interface FAQServicejava.lang.Exception
public long existingCategories()
throws java.lang.Exception
existingCategories in interface FAQServicejava.lang.Exception
public java.lang.String getCategoryNameOf(java.lang.String categoryPath)
throws java.lang.Exception
getCategoryNameOf in interface FAQServicejava.lang.Exception
public java.util.List<Question> getQuickQuestionsByListCatetory(java.util.List<java.lang.String> listCategoryId,
boolean isNotYetAnswer)
throws java.lang.Exception
getQuickQuestionsByListCatetory in interface FAQServicejava.lang.Exception
public java.util.List<Cate> listingCategoryTree()
throws java.lang.Exception
listingCategoryTree in interface FAQServicejava.lang.Exception
public java.util.List<Watch> getWatchByCategory(java.lang.String categoryId)
throws java.lang.Exception
getWatchByCategory in interface FAQServicejava.lang.Exceptionpublic boolean hasWatch(java.lang.String categoryPath)
hasWatch in interface FAQService
public CategoryInfo getCategoryInfo(java.lang.String categoryPath,
java.util.List<java.lang.String> categoryIdScoped)
throws java.lang.Exception
getCategoryInfo in interface FAQServicejava.lang.Exception
public byte[] getTemplate()
throws java.lang.Exception
getTemplate in interface FAQServicejava.lang.Exception
public void saveTemplate(java.lang.String str)
throws java.lang.Exception
saveTemplate in interface FAQServicejava.lang.Exception
public void updateQuestionRelatives(java.lang.String questionPath,
java.lang.String[] relatives)
throws java.lang.Exception
updateQuestionRelatives in interface FAQServicejava.lang.Exception
public boolean isCategoryExist(java.lang.String name,
java.lang.String path)
isCategoryExist in interface FAQService
public void saveBBCode(java.util.List<BBCode> bbcodes)
throws java.lang.Exception
saveBBCode in interface FAQServicejava.lang.Exception
public java.util.List<BBCode> getAllBBCode()
throws java.lang.Exception
getAllBBCode in interface FAQServicejava.lang.Exception
public java.util.List<java.lang.String> getActiveBBCode()
throws java.lang.Exception
getActiveBBCode in interface FAQServicejava.lang.Exception
public BBCode getBBcode(java.lang.String id)
throws java.lang.Exception
getBBcode in interface FAQServicejava.lang.Exception
public void removeBBCode(java.lang.String bbcodeId)
throws java.lang.Exception
removeBBCode in interface FAQServicejava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||