|
||||||||||
| 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(java.util.List<Category> listCategories)
Instantiates a new question page list. |
|
QuestionPageList(java.util.List<ObjectSearchResult> faqFormSearchs,
long pageSize)
Instantiates a new question page list. |
|
QuestionPageList(java.util.List<Question> listQuestions,
int size)
Instantiates a new question page list. |
|
QuestionPageList(java.util.List<Watch> listWatch,
double page)
Instantiates a new question page list. |
|
QuestionPageList(javax.jcr.NodeIterator iter,
long pageSize,
java.lang.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,
java.lang.String quesQuerry,
java.util.List<java.lang.Object> listObject,
FAQSetting setting)
Instantiates a new question page list. |
|
| Method Summary | |
|---|---|
java.util.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. |
java.util.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,
java.lang.String username)
Get questions to view in page. |
protected void |
populateCurrentPageCategoriesQuestionsSearch(long page,
java.lang.String username)
|
protected void |
populateCurrentPageCategoriesSearch(long page,
java.lang.String username)
|
protected void |
populateCurrentPageItem(long page)
|
protected void |
populateCurrentPageQuestionsSearch(long page,
java.lang.String username)
|
protected void |
populateCurrentPageResultSearch(long page,
java.lang.String username)
|
protected void |
populateCurrentPageWatch(long page,
java.lang.String username)
|
void |
setList(java.util.List<Question> contacts)
abtract funtion, set list question to view |
void |
setNotYetAnswered(boolean isNotYetAnswered)
Sets the not yet answered. |
| 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,
java.lang.String value,
boolean isQuery)
throws java.lang.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
java.lang.Exception - if repository occur exception
public QuestionPageList(java.util.List<ObjectSearchResult> faqFormSearchs,
long pageSize)
throws java.lang.Exception
faqFormSearchs - the faq form searchspageSize - the page size
java.lang.Exception - the exception
public QuestionPageList(java.util.List<Watch> listWatch,
double page)
throws java.lang.Exception
listWatch - the list watchpage - the page
java.lang.Exception - the exception
public QuestionPageList(java.util.List<Category> listCategories)
throws java.lang.Exception
listCategories - the list categories
java.lang.Exception - the exception
public QuestionPageList(java.util.List<Question> listQuestions,
int size)
throws java.lang.Exception
listQuestions - the list questionssize - the size
java.lang.Exception - the exception
public QuestionPageList(javax.jcr.Node categoryNode,
java.lang.String quesQuerry,
java.util.List<java.lang.Object> listObject,
FAQSetting setting)
throws java.lang.Exception
categoryNode - the category nodequesQuerry - the ques querrylistObject - the list objectsetting - the setting
java.lang.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 opposite
protected void populateCurrentPage(long page,
java.lang.String username)
throws java.lang.Exception
populateCurrentPage in class JCRPageListusername - the name of current userpage - number of current page
java.lang.Exception - the exceptionJCRPageList.populateCurrentPage(long, java.lang.String)
protected void populateCurrentPageItem(long page)
throws java.lang.Exception
populateCurrentPageItem in class JCRPageListjava.lang.Exception
protected void populateCurrentPageWatch(long page,
java.lang.String username)
throws java.lang.Exception
populateCurrentPageWatch in class JCRPageListjava.lang.Exception
protected void populateCurrentPageResultSearch(long page,
java.lang.String username)
throws java.lang.Exception
populateCurrentPageResultSearch in class JCRPageListjava.lang.Exception
protected void populateCurrentPageCategoriesSearch(long page,
java.lang.String username)
throws java.lang.Exception
populateCurrentPageCategoriesSearch in class JCRPageListjava.lang.Exception
protected void populateCurrentPageQuestionsSearch(long page,
java.lang.String username)
throws java.lang.Exception
populateCurrentPageQuestionsSearch in class JCRPageListjava.lang.Exception
protected void populateCurrentPageCategoriesQuestionsSearch(long page,
java.lang.String username)
throws java.lang.Exception
populateCurrentPageCategoriesQuestionsSearch in class JCRPageListjava.lang.Exception
public Answer[] getAnswers(javax.jcr.Node questionNode)
throws java.lang.Exception
java.lang.Exception
public Answer getAnswerByNode(javax.jcr.Node answerNode)
throws java.lang.Exception
java.lang.Exception
public Comment[] getComment(javax.jcr.Node questionNode)
throws java.lang.Exception
java.lang.Exception
public Comment getCommentByNode(javax.jcr.Node commentNode)
throws java.lang.Exception
java.lang.Exception
public java.util.List<Question> getAll()
throws java.lang.Exception
getAll in class JCRPageListjava.lang.Exception - if query or repository or path of node is occur Exception
java.lang.Exception - the exceptionQuestion,
List
public java.util.List<Watch> getAllWatch()
throws java.lang.Exception
java.lang.Exceptionpublic void setList(java.util.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 | |||||||||