public interface DataStorage
void addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
throws Exception
Exceptionvoid addRolePlugin(org.exoplatform.container.component.ComponentPlugin plugin)
throws Exception
Exceptionboolean isAdminRole(String userName) throws Exception
userName - userNameExceptionvoid getUserSetting(String userName, FAQSetting faqSetting) throws Exception
Exceptionvoid saveFAQSetting(FAQSetting faqSetting, String userName) throws Exception
ExceptionFileAttachment getUserAvatar(String userName) throws Exception
Exceptionvoid saveUserAvatar(String userId, FileAttachment fileAttachment) throws Exception
ExceptionIterator<org.exoplatform.forum.common.NotifyInfo> getPendingMessages()
List<QuestionLanguage> getQuestionLanguages(String questionId)
void deleteAnswer(String questionId, String answerId) throws Exception
Exceptionvoid deleteComment(String questionId, String commentId) throws Exception
ExceptionJCRPageList getPageListAnswer(String questionId, boolean isSortByVote) throws Exception
Exceptionvoid saveAnswer(String questionId, Answer answer, boolean isNew) throws Exception
Exceptionvoid saveAnswer(String questionId, Answer[] answers, FAQSetting faqSetting) throws Exception
Exceptionvoid saveComment(String questionId, Comment comment, boolean isNew) throws Exception
Exceptionvoid saveAnswerQuestionLang(String questionId, Answer answer, String language, boolean isNew) throws Exception
ExceptionAnswer getAnswerById(String questionId, String answerid) throws Exception
ExceptionJCRPageList getPageListComment(String questionId) throws Exception
ExceptionComment getCommentById(String questionId, String commentId) throws Exception
Exceptionjavax.jcr.Node saveQuestion(Question question, boolean isAddNew, FAQSetting faqSetting) throws Exception
ExceptionComment getCommentById(javax.jcr.Node questionNode, String commentId) throws Exception
ExceptionQuestionPageList getAllQuestions() throws Exception
ExceptionQuestionPageList getQuestionsNotYetAnswer(String categoryId, boolean isApproved) throws Exception
ExceptionQuestionPageList getPendingQuestionsByCategory(String categoryId, FAQSetting faqSetting) throws Exception
ExceptionQuestionPageList getQuestionsByCatetory(String categoryId, FAQSetting faqSetting) throws Exception
ExceptionQuestionPageList getAllQuestionsByCatetory(String categoryId, FAQSetting faqSetting) throws Exception
ExceptionQuestionPageList getQuestionsByListCatetory(List<String> listCategoryId, boolean isNotYetAnswer) throws Exception
ExceptionList<Question> getQuickQuestionsByListCatetory(List<String> listCategoryId, boolean isNotYetAnswer) throws Exception
ExceptionString getCategoryPathOfQuestion(String questionPath) throws Exception
Exceptionvoid moveQuestions(List<String> questions, String destCategoryId, String questionLink, FAQSetting faqSetting) throws Exception
Exceptionvoid changeStatusCategoryView(List<String> listCateIds) throws Exception
Exceptionvoid saveCategory(String parentId, Category cat, boolean isAddNew, boolean isResetIndex)
CategoryTree buildCategoryTree(String categoryId) throws Exception
ExceptionCategory getCategoryById(String categoryId) throws Exception
categoryId - the path of the category starting from home. It should be in the form of "categories/CategoryXXX/CategoryXXX"ExceptionList<Category> findCategoriesByName(String categoryName) throws Exception
ExceptionList<String> getListCateIdByModerator(String user) throws Exception
Exceptionjavax.jcr.Node getCategoryNodeById(String categoryId) throws Exception
ExceptionList<Category> getSubCategories(String categoryId, FAQSetting faqSetting, boolean isGetAll, List<String> limitedUsers) throws Exception
Exceptionlong[] getCategoryInfo(String categoryId, FAQSetting faqSetting) throws Exception
Exceptionvoid moveCategory(String categoryId, String destCategoryId) throws Exception
ExceptionQuestionPageList getListMailInWatch(String categoryId) throws Exception
ExceptionList<Watch> getWatchByCategory(String categoryId) throws Exception
Exceptionboolean hasWatch(String categoryPath)
void addWatchQuestion(String questionId, Watch watch, boolean isNew) throws Exception
ExceptionList<Watch> getWatchByQuestion(String questionId) throws Exception
ExceptionQuestionPageList getWatchedCategoryByUser(String userId) throws Exception
ExceptionList<String> getWatchedSubCategory(String userId, String cateId) throws Exception
ExceptionQuestionPageList getListQuestionsWatch(FAQSetting faqSetting, String currentUser) throws Exception
Exceptionvoid deleteCategoryWatch(String categoryId, String user) throws Exception
Exceptionvoid unWatchCategory(String categoryId, String user) throws Exception
Exceptionvoid unWatchQuestion(String questionId, String user) throws Exception
ExceptionList<ObjectSearchResult> getSearchResults(FAQEventQuery eventQuery) throws Exception
ExceptionString getParentCategoriesName(String path) throws Exception
Exceptionorg.exoplatform.forum.common.NotifyInfo getMessageInfo(String name) throws Exception
Exceptionvoid swapCategories(String cateId1, String cateId2) throws Exception
Exceptionvoid saveTopicIdDiscussQuestion(String questionId, String topicId) throws Exception
ExceptionInputStream exportData(String categoryId, boolean createZipFile) throws Exception
Exceptionboolean importData(String parentId, InputStream inputStream, boolean isZip) throws Exception
Exceptionboolean isViewAuthorInfo(String id)
boolean isCategoryModerator(String categoryId, String user) throws Exception
categoryId - id of categoryuser - usernameExceptionList<String> getQuestionContents(List<String> paths) throws Exception
Exceptionjavax.jcr.Node getQuestionNodeById(String path) throws Exception
ExceptionCategoryInfo getCategoryInfo(String categoryPath, List<String> categoryIdScoped) throws Exception
Exceptionvoid updateQuestionRelatives(String questionPath, String[] relatives) throws Exception
Exceptionvoid saveActivityIdForAnswer(String ownerPath, Answer answer, String activityId)
void saveActivityIdForComment(String ownerPath, String commentId, String language, String activityId)
String getActivityIdForComment(String ownerPath, String commentId, String language)
Copyright © 2003–2018 eXo Platform SAS. All rights reserved.