|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.helpdesk.business.QuestionAnswer
public class QuestionAnswer
This class represents question and answers on the help desk
| Field Summary | |
|---|---|
static int |
STATUS_PUBLISHED
|
static int |
STATUS_UNPUBLISHED
|
| Constructor Summary | |
|---|---|
QuestionAnswer()
Creates a new QuestionAnswer object. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAnswer()
Returns the answer associated with this object |
java.util.Date |
getCreationDate()
|
int |
getIdQuestionAnswer()
Returns the identifier of the object |
int |
getIdSubject()
Returns the identifier of the subject |
java.lang.String |
getQuestion()
Returns the question associated with this object |
Subject |
getSubject(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the Subject |
boolean |
isEnabled()
Returns the status of the object |
void |
setAnswer(java.lang.String strAnswer)
Associates a new answer with this object |
void |
setCreationDate(java.util.Date dateCreationDate)
|
void |
setIdQuestionAnswer(int nIdQuestionAnswer)
Sets the identifier of the object to the specified value |
void |
setIdSubject(int nIdSubject)
Assigns this QuestionAnswer to a subject |
void |
setQuestion(java.lang.String strQuestion)
Associates a new question with this object |
void |
setStatus(int status)
Sets the status of the object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int STATUS_PUBLISHED
public static final int STATUS_UNPUBLISHED
| Constructor Detail |
|---|
public QuestionAnswer()
| Method Detail |
|---|
public int getIdQuestionAnswer()
public void setIdQuestionAnswer(int nIdQuestionAnswer)
nIdQuestionAnswer - The new valuepublic java.lang.String getQuestion()
public void setQuestion(java.lang.String strQuestion)
strQuestion - The new valuepublic java.lang.String getAnswer()
public void setAnswer(java.lang.String strAnswer)
strAnswer - The new valuepublic int getIdSubject()
public Subject getSubject(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Subject
plugin - The plugin
Subjectpublic void setIdSubject(int nIdSubject)
nIdSubject - The identifier of the subjectpublic boolean isEnabled()
public void setStatus(int status)
status - 1 to enable the object, any other value to disable itpublic java.util.Date getCreationDate()
public void setCreationDate(java.util.Date dateCreationDate)
dateCreationDate - the _dateCreation to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||