public class QuestionPageList extends JCRPageList
available_, availablePage_, currentListCategory_, currentListObject_, currentListPage_, currentListResultSearch_, currentListWatch_, currentPage_| Constructor and Description |
|---|
QuestionPageList(List<Category> listCategories)
Instantiates a new question page list.
|
QuestionPageList(List<ObjectSearchResult> faqFormSearchs,
long pageSize)
Instantiates a new question page list.
|
QuestionPageList(List<Question> listQuestions,
int size)
Instantiates a new question page list.
|
QuestionPageList(List<Watch> listWatch,
double page)
Instantiates a new question page list.
|
QuestionPageList(javax.jcr.NodeIterator iter,
long pageSize,
String value,
boolean isQuery)
Class constructor specifying iter contain quetion nodes, value, it's query or not, how to sort all question.
|
QuestionPageList(javax.jcr.Node categoryNode,
String quesQuerry,
List<Object> listObject,
FAQSetting setting)
Instantiates a new question page list.
|
| Modifier and Type | Method and Description |
|---|---|
List<Question> |
getAll()
Get all nodes is stored in a NodeIterator and sort them by FAQSetting, with each node, system get all values of this node and set them into a question object, an this question object is push into
a list questions.
|
List<Watch> |
getAllWatch() |
Answer |
getAnswerByNode(javax.jcr.Node answerNode) |
Answer[] |
getAnswers(javax.jcr.Node questionNode) |
Comment[] |
getComment(javax.jcr.Node questionNode) |
Comment |
getCommentByNode(javax.jcr.Node commentNode) |
protected void |
populateCurrentPage(long page,
String username)
Get questions to view in page.
|
protected void |
populateCurrentPageCategoriesQuestionsSearch(long page,
String username) |
protected void |
populateCurrentPageCategoriesSearch(long page,
String username) |
protected void |
populateCurrentPageItem(long page) |
protected void |
populateCurrentPageQuestionsSearch(long page,
String username) |
protected void |
populateCurrentPageResultSearch(long page,
String username) |
protected void |
populateCurrentPageWatch(long page,
String username) |
void |
setList(List<Question> contacts)
abtract funtion, set list question to view
|
void |
setNotYetAnswered(boolean isNotYetAnswered)
Sets the not yet answered.
|
void |
setOpenQuestion(boolean isOpenQuestion) |
checkAndSetPage, currentPage, getAvailable, getAvailablePage, getCurrentPage, getObjectId, getPage, getPageItem, getPageJump, getPageListCategoriesQuestions, getPageListWatch, getPageResultCategoriesSearch, getPageResultQuestionsSearch, getPageResultSearch, getPageSize, setAvailablePage, setObjectId, setPageJump, setPageSize, setQuestionpublic QuestionPageList(javax.jcr.NodeIterator iter,
long pageSize,
String value,
boolean isQuery)
throws Exception
iter - NodeIterator use to store question nodespageSize - this param is used to set number of question per pagevalue - query string is used to get question nodeisQuery - is true is param value is query string and is false if oppositeException - if repository occur exceptionpublic QuestionPageList(List<ObjectSearchResult> faqFormSearchs, long pageSize)
faqFormSearchs - the faq form searchspageSize - the page sizepublic QuestionPageList(List<Watch> listWatch, double page) throws Exception
listWatch - the list watchpage - the pageException - the exceptionpublic QuestionPageList(List<Category> listCategories) throws Exception
listCategories - the list categoriesException - the exceptionpublic QuestionPageList(List<Question> listQuestions, int size) throws Exception
listQuestions - the list questionssize - the sizeException - the exceptionpublic QuestionPageList(javax.jcr.Node categoryNode,
String quesQuerry,
List<Object> listObject,
FAQSetting setting)
throws Exception
categoryNode - the category nodequesQuerry - the ques querrylistObject - the list objectsetting - the settingException - the exceptionpublic void setNotYetAnswered(boolean isNotYetAnswered)
true if want get questions are not yet answered opposite set is false or don't do (default value is false)isNotYetAnswered - the new not yet answered, is true if want get questoins not yet answered and is false if oppositepublic void setOpenQuestion(boolean isOpenQuestion)
protected void populateCurrentPage(long page,
String username)
throws Exception
populateCurrentPage in class JCRPageListusername - the name of current userpage - number of current pageException - the exceptionJCRPageList.populateCurrentPage(long, java.lang.String)protected void populateCurrentPageItem(long page)
throws Exception
populateCurrentPageItem in class JCRPageListExceptionprotected void populateCurrentPageWatch(long page,
String username)
throws Exception
populateCurrentPageWatch in class JCRPageListExceptionprotected void populateCurrentPageResultSearch(long page,
String username)
throws Exception
populateCurrentPageResultSearch in class JCRPageListExceptionprotected void populateCurrentPageCategoriesSearch(long page,
String username)
throws Exception
populateCurrentPageCategoriesSearch in class JCRPageListExceptionprotected void populateCurrentPageQuestionsSearch(long page,
String username)
throws Exception
populateCurrentPageQuestionsSearch in class JCRPageListExceptionprotected void populateCurrentPageCategoriesQuestionsSearch(long page,
String username)
throws Exception
populateCurrentPageCategoriesQuestionsSearch in class JCRPageListExceptionpublic Answer[] getAnswers(javax.jcr.Node questionNode) throws Exception
Exceptionpublic Answer getAnswerByNode(javax.jcr.Node answerNode) throws Exception
Exceptionpublic Comment[] getComment(javax.jcr.Node questionNode) throws Exception
Exceptionpublic Comment getCommentByNode(javax.jcr.Node commentNode) throws Exception
Exceptionpublic List<Question> getAll() throws Exception
public void setList(List<Question> contacts)
JCRPageListsetList in class JCRPageListcontacts - list questionCopyright © 2003–2017 eXo Platform SAS. All rights reserved.