|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.faq.service.JCRPageList
org.exoplatform.faq.service.QuestionPageList
public class QuestionPageList
All questions and their properties, methods are getted from database to view in page will be restore in this class. And ratification, questions can be sorted by alphabet or by date time when quetsion is created.
| Field Summary |
|---|
| Fields inherited from class org.exoplatform.faq.service.JCRPageList |
|---|
available_, availablePage_, currentListCategory_, currentListObject_, currentListPage_, currentListResultSearch_, currentListWatch_, currentPage_ |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.exoplatform.faq.service.JCRPageList |
|---|
checkAndSetPage, currentPage, getAvailable, getAvailablePage, getCurrentPage, getObjectId, getPage, getPageItem, getPageJump, getPageListCategoriesQuestions, getPageListWatch, getPageResultCategoriesSearch, getPageResultQuestionsSearch, getPageResultSearch, getPageSize, setAvailablePage, setObjectId, setPageJump, setPageSize, setQuestion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public 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 opposite
Exception - if repository occur exception
public QuestionPageList(List<ObjectSearchResult> faqFormSearchs,
long pageSize)
faqFormSearchs - the faq form searchspageSize - the page size
public QuestionPageList(List<Watch> listWatch,
double page)
throws Exception
listWatch - the list watchpage - the page
Exception - the exception
public QuestionPageList(List<Category> listCategories)
throws Exception
listCategories - the list categories
Exception - the exception
public QuestionPageList(List<Question> listQuestions,
int size)
throws Exception
listQuestions - the list questionssize - the size
Exception - the exception
public 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 setting
Exception - the exception| Method Detail |
|---|
public 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 page
Exception - the exceptionJCRPageList.populateCurrentPage(long, java.lang.String)
protected void populateCurrentPageItem(long page)
throws Exception
populateCurrentPageItem in class JCRPageListException
protected void populateCurrentPageWatch(long page,
String username)
throws Exception
populateCurrentPageWatch in class JCRPageListException
protected void populateCurrentPageResultSearch(long page,
String username)
throws Exception
populateCurrentPageResultSearch in class JCRPageListException
protected void populateCurrentPageCategoriesSearch(long page,
String username)
throws Exception
populateCurrentPageCategoriesSearch in class JCRPageListException
protected void populateCurrentPageQuestionsSearch(long page,
String username)
throws Exception
populateCurrentPageQuestionsSearch in class JCRPageListException
protected void populateCurrentPageCategoriesQuestionsSearch(long page,
String username)
throws Exception
populateCurrentPageCategoriesQuestionsSearch in class JCRPageListException
public Answer[] getAnswers(javax.jcr.Node questionNode)
throws Exception
Exception
public Answer getAnswerByNode(javax.jcr.Node answerNode)
throws Exception
Exception
public Comment[] getComment(javax.jcr.Node questionNode)
throws Exception
Exception
public Comment getCommentByNode(javax.jcr.Node commentNode)
throws Exception
Exception
public List<Question> getAll()
throws Exception
getAll in class JCRPageListException - if query or repository or path of node is occur Exception
Exception - the exceptionQuestion,
List
public List<Watch> getAllWatch()
throws Exception
Exceptionpublic void setList(List<Question> contacts)
JCRPageList
setList in class JCRPageListcontacts - list question
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||