|
||||||||||
| 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.
| Constructor Summary | |
|---|---|
Question()
Class constructor specifying id of object is created. |
|
| Method Summary | |
|---|---|
Answer[] |
getAnswers()
Gets the answers. |
java.util.List<FileAttachment> |
getAttachMent()
Get list files are attached to this quetsion. |
java.lang.String |
getAuthor()
Get question's author who write question and wait an answer. |
java.lang.String |
getCategoryId()
Get id of category which contain this question. |
Comment[] |
getComments()
Gets the comments. |
java.util.Date |
getCreatedDate()
Return date time when question is created or updated. |
java.lang.String |
getDetail()
Get content of Question which is wanted answer. |
java.lang.String |
getEmail()
Get email address of question's author. |
java.lang.String[] |
getEmailsWatch()
Gets the emails watch. |
java.lang.String |
getId()
Get id of Question object. |
java.lang.String |
getLanguage()
Get question's language, this is default language of system when created question. |
java.lang.String |
getLanguagesNotYetAnswered()
Get list languages of question which are not yet answered. |
java.lang.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()
|
java.lang.String[] |
getNameAttachs()
Gets the name attachs. |
java.lang.String |
getPath()
|
java.lang.String |
getQuestion()
Gets the question. |
java.lang.String[] |
getRelations()
Get list questions in system which are like, related or support for this question. |
java.lang.String |
getTopicIdDiscuss()
Gets the path topic discuss. |
java.lang.String[] |
getUsersVote()
Gets the users vote. |
java.lang.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(java.util.List<FileAttachment> listFile)
Registers list files will be attach to this question to description for this question. |
void |
setAuthor(java.lang.String author)
Set name for property author of this question, author is person who write question and wait an answer. |
void |
setCategoryId(java.lang.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 |
setComments(Comment[] comments)
Sets the comments. |
void |
setCreatedDate(java.util.Date createdDate)
Registers date time for Question object. |
void |
setDetail(java.lang.String name)
Set content for Question object. |
void |
setEmail(java.lang.String email)
Registers email address of question's author for this Question object. |
void |
setEmailsWatch(java.lang.String[] emailsWatch)
Sets the emails watch. |
void |
setId(java.lang.String id)
Set an id for Question object. |
void |
setLanguage(java.lang.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(java.lang.String languagesNotYetAnswered)
Registers language is not yet answered. |
void |
setLink(java.lang.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(java.lang.String[] nameAttachs)
Sets the name attachs. |
void |
setPath(java.lang.String path)
|
void |
setQuestion(java.lang.String title)
Sets the question. |
void |
setRelations(java.lang.String[] relations)
Registers list questions is related or supported for this question. |
void |
setTopicIdDiscuss(java.lang.String topicIdDiscuss)
Sets the path topic discuss. |
void |
setUsersVote(java.lang.String[] usersVote)
Sets the users vote. |
void |
setUsersWatch(java.lang.String[] usersWatch)
Sets the users watch. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Question()
| Method Detail |
|---|
public java.lang.String getId()
public void setId(java.lang.String id)
id - the id of question objectpublic java.lang.String getDetail()
public void setDetail(java.lang.String name)
name - the content of question which is wanted answerpublic void setLanguage(java.lang.String language)
language - the language is default language is used in systempublic java.lang.String getLanguage()
public void setAuthor(java.lang.String author)
author - ther author of questionpublic java.lang.String getAuthor()
public java.lang.String[] getRelations()
public void setRelations(java.lang.String[] relations)
relations - list questions have related with this questionpublic void setEmail(java.lang.String email)
email - the emailpublic java.lang.String getEmail()
public void setCreatedDate(java.util.Date createdDate)
createdDate - the date time when question is createdpublic java.util.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(java.lang.String catId)
catId - id of category which contain this questionpublic java.lang.String getCategoryId()
public void setAttachMent(java.util.List<FileAttachment> listFile)
listFile - list files are attached to question.public java.util.List<FileAttachment> getAttachMent()
FileAttachmentpublic java.lang.String getLanguagesNotYetAnswered()
public Question setLanguagesNotYetAnswered(java.lang.String languagesNotYetAnswered)
languagesNotYetAnswered - the languages not yet answered
public java.lang.String[] getNameAttachs()
public void setNameAttachs(java.lang.String[] nameAttachs)
nameAttachs - the new name attachspublic java.lang.String getLink()
public void setLink(java.lang.String link)
link - the linkpublic java.lang.String[] getUsersVote()
public void setUsersVote(java.lang.String[] usersVote)
usersVote - the new users votepublic double getMarkVote()
public void setMarkVote(double markVote)
markVote - the new mark votepublic java.lang.String[] getUsersWatch()
public void setUsersWatch(java.lang.String[] usersWatch)
usersWatch - the new users watchpublic java.lang.String[] getEmailsWatch()
public void setEmailsWatch(java.lang.String[] emailsWatch)
emailsWatch - the new emails watchpublic java.lang.String getQuestion()
public void setQuestion(java.lang.String title)
title - the new questionpublic java.lang.String getTopicIdDiscuss()
public void setTopicIdDiscuss(java.lang.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(java.lang.String path)
public java.lang.String getPath()
public void setMultiLanguages(QuestionLanguage[] multiLanguages)
public QuestionLanguage[] getMultiLanguages()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||