Class QuestionAnswer
java.lang.Object
fr.paris.lutece.plugins.helpdesk.business.QuestionAnswer
This class represents question and answers on the help desk
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the answer associated with this objectintintReturns the identifier of the objectintReturns the identifier of the subjectReturns the question associated with this objectgetSubject(fr.paris.lutece.portal.service.plugin.Plugin plugin) Return theSubjectbooleanReturns the status of the objectvoidAssociates a new answer with this objectvoidsetCreationDate(Date dateCreationDate) voidsetIdOrder(int nIdOrder) voidsetIdQuestionAnswer(int nIdQuestionAnswer) Sets the identifier of the object to the specified valuevoidsetIdSubject(int nIdSubject) Assigns this QuestionAnswer to a subjectvoidsetQuestion(String strQuestion) Associates a new question with this objectvoidsetStatus(int status) Sets the status of the object
-
Field Details
-
STATUS_PUBLISHED
public static final int STATUS_PUBLISHED- See Also:
-
STATUS_UNPUBLISHED
public static final int STATUS_UNPUBLISHED- See Also:
-
-
Constructor Details
-
QuestionAnswer
public QuestionAnswer()Creates a new QuestionAnswer object.
-
-
Method Details
-
getIdQuestionAnswer
public int getIdQuestionAnswer()Returns the identifier of the object- Returns:
- The identifier
-
setIdQuestionAnswer
public void setIdQuestionAnswer(int nIdQuestionAnswer) Sets the identifier of the object to the specified value- Parameters:
nIdQuestionAnswer- The new value
-
getQuestion
Returns the question associated with this object- Returns:
- A string literal containing the question
-
setQuestion
Associates a new question with this object- Parameters:
strQuestion- The new value
-
getAnswer
Returns the answer associated with this object- Returns:
- A string literal containing the answer
-
setAnswer
Associates a new answer with this object- Parameters:
strAnswer- The new value
-
getIdSubject
public int getIdSubject()Returns the identifier of the subject- Returns:
- The identifier
-
getSubject
Return theSubject- Parameters:
plugin- The plugin- Returns:
- The
Subject
-
setIdSubject
public void setIdSubject(int nIdSubject) Assigns this QuestionAnswer to a subject- Parameters:
nIdSubject- The identifier of the subject
-
isEnabled
public boolean isEnabled()Returns the status of the object- Returns:
- true if the object is enabled
-
setStatus
public void setStatus(int status) Sets the status of the object- Parameters:
status- 1 to enable the object, any other value to disable it
-
getCreationDate
- Returns:
- the _dateCreation
-
setCreationDate
- Parameters:
dateCreationDate- the _dateCreation to set
-
getIdOrder
public int getIdOrder()- Returns:
- the _nIdOrder
-
setIdOrder
public void setIdOrder(int nIdOrder) - Parameters:
nIdOrder- the _nIdOrder to set
-