|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.faq.service.Question
public class Question
Data of question node is stored in question object which is used in processings: add new question, edit question and reponse question.
| Field Summary | |
|---|---|
static String |
QUESTION_ID
|
| Constructor Summary | |
|---|---|
Question()
Class constructor specifying id of object is created. |
|
| Method Summary | |
|---|---|
Answer[] |
getAnswers()
Gets the answers. |
List<FileAttachment> |
getAttachMent()
Get list files are attached to this quetsion. |
String |
getAuthor()
Get question's author who write question and wait an answer. |
String |
getAuthorOfLastActivity()
|
String |
getCategoryId()
Get id of category which contain this question. |
String |
getCategoryPath()
Get relative path of category which contain this question. |
Comment[] |
getComments()
Gets the comments. |
Date |
getCreatedDate()
Return date time when question is created or updated. |
String |
getDetail()
Get content of Question which is wanted answer. |
String |
getEmail()
Get email address of question's author. |
String[] |
getEmailsWatch()
Gets the emails watch. |
String |
getId()
Get id of Question object. |
String |
getLanguage()
Get question's language, this is default language of system when created question. |
String |
getLanguagesNotYetAnswered()
Get list languages of question which are not yet answered. |
String |
getLink()
Get link to question, this link is used to send mail notify, when user click in to this link, will be jump to FAQ and view this question. |
double |
getMarkVote()
Gets the mark vote. |
QuestionLanguage[] |
getMultiLanguages()
|
String[] |
getNameAttachs()
Gets the name attachs. |
long |
getNumberOfPublicAnswers()
|
String |
getPath()
|
String |
getQuestion()
Gets the question. |
String[] |
getRelations()
Get list questions in system which are like, related or support for this question. |
long |
getTimeOfLastActivity()
|
String |
getTopicIdDiscuss()
Gets the path topic discuss. |
String[] |
getUsersVote()
Gets the users vote. |
String[] |
getUsersWatch()
Gets the users watch. |
boolean |
isActivated()
Return status of this question, return true if
this question is activated and false if opposite. |
boolean |
isApproved()
Return status of thi question, return true if
this question is approved and false if opposite. |
void |
setActivated(boolean isActivated)
Registers for this Question object is activated or not. |
void |
setAnswers(Answer[] answers)
Sets the answers. |
void |
setApproved(boolean isApproved)
Registers for this question is approved or not. |
void |
setAttachMent(List<FileAttachment> listFile)
Registers list files will be attach to this question to description for this question. |
void |
setAuthor(String author)
Set name for property author of this question, author is person who write question and wait an answer. |
void |
setCategoryId(String catId)
Registers id for property categoryId of Question object, each question is contained in a category and this property is used to point this cateogry. |
void |
setCategoryPath(String categoryPath)
Relative path of parent category of Question object, each question is contained in a category |
void |
setComments(Comment[] comments)
Sets the comments. |
void |
setCreatedDate(Date createdDate)
Registers date time for Question object. |
void |
setDetail(String name)
Set content for Question object. |
void |
setEmail(String email)
Registers email address of question's author for this Question object. |
void |
setEmailsWatch(String[] emailsWatch)
Sets the emails watch. |
void |
setId(String id)
Set an id for Question object. |
void |
setLanguage(String language)
Set language for question, a language may be have multi languages but all of languages is used must be supported in portal. |
Question |
setLanguagesNotYetAnswered(String languagesNotYetAnswered)
Registers language is not yet answered. |
void |
setLastActivity(String info)
set information of last activity of question. |
void |
setLink(String link)
Register link to question, this link is used to send mail notify, when user click in to this link, will be jump to FAQ and view this question. |
void |
setMarkVote(double markVote)
Sets the mark vote. |
void |
setMultiLanguages(QuestionLanguage[] multiLanguages)
|
void |
setNameAttachs(String[] nameAttachs)
Sets the name attachs. |
void |
setNumberOfPublicAnswers(long numberOfPublicAnswers)
|
void |
setPath(String path)
|
void |
setQuestion(String title)
Sets the question. |
void |
setRelations(String[] relations)
Registers list questions is related or supported for this question. |
void |
setTopicIdDiscuss(String topicIdDiscuss)
Sets the path topic discuss. |
void |
setUsersVote(String[] usersVote)
Sets the users vote. |
void |
setUsersWatch(String[] usersWatch)
Sets the users watch. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String QUESTION_ID
| Constructor Detail |
|---|
public Question()
| Method Detail |
|---|
public String getId()
public void setId(String id)
id - the id of question objectpublic String getDetail()
public void setDetail(String name)
name - the content of question which is wanted answerpublic void setLanguage(String language)
language - the language is default language is used in systempublic String getLanguage()
public void setAuthor(String author)
author - ther author of questionpublic String getAuthor()
public String[] getRelations()
public void setRelations(String[] relations)
relations - list questions have related with this questionpublic void setEmail(String email)
email - the emailpublic String getEmail()
public void setCreatedDate(Date createdDate)
createdDate - the date time when question is createdpublic Date getCreatedDate()
public void setActivated(boolean isActivated)
isActivated - is true if this question is activated and
is false if this questiosn is not activatedpublic boolean isActivated()
true if
this question is activated and false if opposite.
public void setApproved(boolean isApproved)
isApproved - is true if this question is approved and
is false if this question is not approvedpublic boolean isApproved()
true if
this question is approved and false if opposite.
public void setCategoryId(String catId)
catId - id of category which contain this questionpublic String getCategoryId()
public void setCategoryPath(String categoryPath)
categoryPath - is relative path of category which contain this questionpublic String getCategoryPath()
public void setAttachMent(List<FileAttachment> listFile)
listFile - list files are attached to question.public List<FileAttachment> getAttachMent()
FileAttachmentpublic String getLanguagesNotYetAnswered()
public Question setLanguagesNotYetAnswered(String languagesNotYetAnswered)
languagesNotYetAnswered - the languages not yet answered
public String[] getNameAttachs()
public void setNameAttachs(String[] nameAttachs)
nameAttachs - the new name attachspublic String getLink()
public void setLink(String link)
link - the linkpublic String[] getUsersVote()
public void setUsersVote(String[] usersVote)
usersVote - the new users votepublic double getMarkVote()
public void setMarkVote(double markVote)
markVote - the new mark votepublic String[] getUsersWatch()
public void setUsersWatch(String[] usersWatch)
usersWatch - the new users watchpublic String[] getEmailsWatch()
public void setEmailsWatch(String[] emailsWatch)
emailsWatch - the new emails watchpublic String getQuestion()
public void setQuestion(String title)
title - the new questionpublic String getTopicIdDiscuss()
public void setTopicIdDiscuss(String topicIdDiscuss)
pathTopicDiscus - the new path topic discusspublic Answer[] getAnswers()
public void setAnswers(Answer[] answers)
answers - the new answerspublic Comment[] getComments()
public void setComments(Comment[] comments)
comments - the new commentspublic void setPath(String path)
public String getPath()
public void setMultiLanguages(QuestionLanguage[] multiLanguages)
public QuestionLanguage[] getMultiLanguages()
public String getAuthorOfLastActivity()
public long getTimeOfLastActivity()
public void setLastActivity(String info)
info - includes two parts separated by a dash. the first part is user name has last activity.
The second part is long value of time that appears last activity.public long getNumberOfPublicAnswers()
public void setNumberOfPublicAnswers(long numberOfPublicAnswers)
numberOfPublicAnswers - the numberOfPublicAnswers to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||