fr.paris.lutece.plugins.helpdesk.business
Class QuestionAnswer

java.lang.Object
  extended by fr.paris.lutece.plugins.helpdesk.business.QuestionAnswer

public class QuestionAnswer
extends java.lang.Object

This class represents question and answers on the help desk


Constructor Summary
QuestionAnswer()
          Creates a new QuestionAnswer object.
 
Method Summary
 java.lang.String getAnswer()
          Returns the answer associated with this object
 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
 boolean isEnabled()
          Returns the status of the object
 void setAnswer(java.lang.String strAnswer)
          Associates a new answer with this object
 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
 

Constructor Detail

QuestionAnswer

public QuestionAnswer()
Creates a new QuestionAnswer object.

Method Detail

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

public java.lang.String getQuestion()
Returns the question associated with this object

Returns:
A string literal containing the question

setQuestion

public void setQuestion(java.lang.String strQuestion)
Associates a new question with this object

Parameters:
strQuestion - The new value

getAnswer

public java.lang.String getAnswer()
Returns the answer associated with this object

Returns:
A string literal containing the answer

setAnswer

public void setAnswer(java.lang.String strAnswer)
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

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


Copyright © 2007 Mairie de Paris. All Rights Reserved.