public class Question extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
QUESTION_ACTIVATED
question activated
|
static String |
QUESTION_ATTACHMENT
question add attachment
|
static String |
QUESTION_DETAIL
question detail
|
static String |
QUESTION_ID |
static String |
QUESTION_LANGUAGE
question add language
|
static String |
QUESTION_NAME
question name
|
static String |
QUESTION_RATING
question rate
|
| Constructor and Description |
|---|
Question()
Class constructor specifying id of object is created.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
PropertyChangeEvent[] |
getChangeEvent() |
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() |
org.exoplatform.commons.utils.PropertyChangeSupport |
getPcs() |
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 |
setEditedQuestionActivated(boolean activate) |
void |
setEditedQuestionAttachment(int length) |
void |
setEditedQuestionDetail(String newDetail) |
void |
setEditedQuestionLanguage(int length) |
void |
setEditedQuestionName(String newName) |
void |
setEditedQuestionRating(double markVote) |
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 |
setPcs(org.exoplatform.commons.utils.PropertyChangeSupport pcs) |
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.
|
public static final String QUESTION_ID
public static String QUESTION_NAME
public static String QUESTION_DETAIL
public static String QUESTION_ACTIVATED
public static String QUESTION_ATTACHMENT
public static String QUESTION_LANGUAGE
public static String QUESTION_RATING
public org.exoplatform.commons.utils.PropertyChangeSupport getPcs()
public void setPcs(org.exoplatform.commons.utils.PropertyChangeSupport pcs)
public void setEditedQuestionName(String newName)
public void setEditedQuestionDetail(String newDetail)
public void setEditedQuestionActivated(boolean activate)
public void setEditedQuestionAttachment(int length)
public void setEditedQuestionLanguage(int length)
public void setEditedQuestionRating(double markVote)
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 answeredpublic 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)
topicIdDiscuss - 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 setpublic PropertyChangeEvent[] getChangeEvent()
Copyright © 2003–2016 eXo Platform SAS. All rights reserved.