public class Answer extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ANSWER_ACTIVATED
answer activate
|
static String |
ANSWER_APPROVED
answer approved
|
static String |
ANSWER_EDIT
answer detail
|
static String |
ANSWER_ID |
static String |
ANSWER_PROMOTED
answer promoted from comment
|
| Constructor and Description |
|---|
Answer()
Instantiates a new answer.
|
Answer(String currentAnswer,
boolean isApprovetedAnswer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getActivateAnswers()
Gets the activate answers.
|
boolean |
getApprovedAnswers()
Gets the approved answers.
|
PropertyChangeEvent[] |
getChangeEvent() |
Date |
getDateResponse()
Gets the date response.
|
String |
getFullName() |
String |
getId()
Gets the id.
|
String |
getLanguage() |
double |
getMarksVoteAnswer()
Deprecated.
Not used on 4.0 and more
|
long |
getMarkVotes() |
String |
getPath() |
org.exoplatform.commons.utils.PropertyChangeSupport |
getPcs() |
String |
getPostId() |
String |
getResponseBy()
Gets the response by.
|
String |
getResponses()
Gets the responses.
|
String[] |
getUsersVoteAnswer()
Gets the users vote answer.
|
boolean |
isNew()
Checks if is new.
|
void |
setActivateAnswers(boolean activateAnswers)
Sets the activate answers.
|
void |
setApprovedAnswers(boolean approvedAnswers)
Sets the approved answers.
|
void |
setDateResponse(Date dateResponse)
Sets the date response.
|
void |
setEditedAnswer(String newAnswer) |
void |
setEditedAnswerActivated(boolean activated) |
void |
setEditedAnswerApproved(boolean approved) |
void |
setEditedAnswerPromoted(boolean isPromoted) |
void |
setFullName(String fullName) |
void |
setId(String id)
Sets the id.
|
void |
setLanguage(String language) |
void |
setMarksVoteAnswer(double marksVoteAnswer)
Deprecated.
Not used on 4.0 and more
|
void |
setMarkVotes(long markVotes) |
void |
setNew(boolean isNew) |
void |
setPath(String path) |
void |
setPcs(org.exoplatform.commons.utils.PropertyChangeSupport pcs) |
void |
setPostId(String postId) |
void |
setResponseBy(String responseBy)
Sets the response by.
|
void |
setResponses(String responses)
Sets the responses.
|
void |
setUsersVoteAnswer(String[] usersVoteAnswer)
Sets the users vote answer.
|
public static final String ANSWER_ID
public static String ANSWER_EDIT
public static String ANSWER_ACTIVATED
public static String ANSWER_APPROVED
public static String ANSWER_PROMOTED
public Answer()
public Answer(String currentAnswer, boolean isApprovetedAnswer)
public org.exoplatform.commons.utils.PropertyChangeSupport getPcs()
public void setPcs(org.exoplatform.commons.utils.PropertyChangeSupport pcs)
public void setEditedAnswer(String newAnswer)
public void setEditedAnswerActivated(boolean activated)
public void setEditedAnswerApproved(boolean approved)
public void setEditedAnswerPromoted(boolean isPromoted)
public PropertyChangeEvent[] getChangeEvent()
public String getId()
public void setPath(String path)
public void setLanguage(String language)
public String getLanguage()
public String getPath()
public void setId(String id)
id - the new idpublic String getResponses()
public void setResponses(String responses)
responses - the new responsespublic String getResponseBy()
public void setFullName(String fullName)
public String getFullName()
public void setResponseBy(String responseBy)
responseBy - the new response bypublic Date getDateResponse()
public void setDateResponse(Date dateResponse)
dateResponse - the new date responsepublic boolean getActivateAnswers()
public void setActivateAnswers(boolean activateAnswers)
activateAnswers - the new activate answerspublic boolean getApprovedAnswers()
public void setApprovedAnswers(boolean approvedAnswers)
approvedAnswers - the new approved answerspublic String[] getUsersVoteAnswer()
public void setUsersVoteAnswer(String[] usersVoteAnswer)
usersVoteAnswer - the new users vote answerpublic double getMarksVoteAnswer()
public void setMarksVoteAnswer(double marksVoteAnswer)
marksVoteAnswer - the new marks vote answerpublic boolean isNew()
public void setNew(boolean isNew)
public String getPostId()
public void setPostId(String postId)
public long getMarkVotes()
public void setMarkVotes(long markVotes)
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.