org.exoplatform.faq.service
Class Answer

java.lang.Object
  extended by org.exoplatform.faq.service.Answer

public class Answer
extends Object


Field Summary
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 Summary
Answer()
          Instantiates a new answer.
Answer(String currentAnswer, boolean isApprovetedAnswer)
           
 
Method Summary
 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()
          Gets the marks vote answer.
 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)
          Sets the marks vote answer.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANSWER_ID

public static final String ANSWER_ID

ANSWER_EDIT

public static String ANSWER_EDIT
answer detail


ANSWER_ACTIVATED

public static String ANSWER_ACTIVATED
answer activate


ANSWER_APPROVED

public static String ANSWER_APPROVED
answer approved


ANSWER_PROMOTED

public static String ANSWER_PROMOTED
answer promoted from comment

Constructor Detail

Answer

public Answer()
Instantiates a new answer.


Answer

public Answer(String currentAnswer,
              boolean isApprovetedAnswer)
Method Detail

getPcs

public org.exoplatform.commons.utils.PropertyChangeSupport getPcs()

setPcs

public void setPcs(org.exoplatform.commons.utils.PropertyChangeSupport pcs)

setEditedAnswer

public void setEditedAnswer(String newAnswer)

setEditedAnswerActivated

public void setEditedAnswerActivated(boolean activated)

setEditedAnswerApproved

public void setEditedAnswerApproved(boolean approved)

setEditedAnswerPromoted

public void setEditedAnswerPromoted(boolean isPromoted)

getChangeEvent

public PropertyChangeEvent[] getChangeEvent()

getId

public String getId()
Gets the id.

Returns:
the id

setPath

public void setPath(String path)

setLanguage

public void setLanguage(String language)

getLanguage

public String getLanguage()

getPath

public String getPath()

setId

public void setId(String id)
Sets the id.

Parameters:
id - the new id

getResponses

public String getResponses()
Gets the responses.

Returns:
the responses

setResponses

public void setResponses(String responses)
Sets the responses.

Parameters:
responses - the new responses

getResponseBy

public String getResponseBy()
Gets the response by.

Returns:
the response by

setFullName

public void setFullName(String fullName)

getFullName

public String getFullName()

setResponseBy

public void setResponseBy(String responseBy)
Sets the response by.

Parameters:
responseBy - the new response by

getDateResponse

public Date getDateResponse()
Gets the date response.

Returns:
the date response

setDateResponse

public void setDateResponse(Date dateResponse)
Sets the date response.

Parameters:
dateResponse - the new date response

getActivateAnswers

public boolean getActivateAnswers()
Gets the activate answers.

Returns:
the activate answers

setActivateAnswers

public void setActivateAnswers(boolean activateAnswers)
Sets the activate answers.

Parameters:
activateAnswers - the new activate answers

getApprovedAnswers

public boolean getApprovedAnswers()
Gets the approved answers.

Returns:
the approved answers

setApprovedAnswers

public void setApprovedAnswers(boolean approvedAnswers)
Sets the approved answers.

Parameters:
approvedAnswers - the new approved answers

getUsersVoteAnswer

public String[] getUsersVoteAnswer()
Gets the users vote answer.

Returns:
the users vote answer

setUsersVoteAnswer

public void setUsersVoteAnswer(String[] usersVoteAnswer)
Sets the users vote answer.

Parameters:
usersVoteAnswer - the new users vote answer

getMarksVoteAnswer

public double getMarksVoteAnswer()
Gets the marks vote answer.

Returns:
the marks vote answer

setMarksVoteAnswer

public void setMarksVoteAnswer(double marksVoteAnswer)
Sets the marks vote answer.

Parameters:
marksVoteAnswer - the new marks vote answer

isNew

public boolean isNew()
Checks if is new.

Returns:
true, if is new

setNew

public void setNew(boolean isNew)

getPostId

public String getPostId()

setPostId

public void setPostId(String postId)

getMarkVotes

public long getMarkVotes()

setMarkVotes

public void setMarkVotes(long markVotes)


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.