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

java.lang.Object
  extended by fr.paris.lutece.plugins.helpdesk.business.QuestionType
All Implemented Interfaces:
fr.paris.lutece.portal.service.rbac.RBACResource

public class QuestionType
extends java.lang.Object
implements fr.paris.lutece.portal.service.rbac.RBACResource

This class represents a type of question.


Field Summary
static java.lang.String RESOURCE_TYPE
           
 
Constructor Summary
QuestionType()
          Creates a new QuestionType object.
 
Method Summary
 int getIdQuestionType()
          Returns the identifier of the object
 java.util.List getQuestions()
          Returns the list of questions of this type
 java.lang.String getQuestionType()
          Returns the question type
 java.lang.String getResourceId()
          Returns the resource Id of the current object
 java.lang.String getResourceTypeCode()
          Returns the Resource Type Code that identify the resource type
 void setIdQuestionType(int nIdQuestionType)
          Sets the identifier of the object to the specified value
 void setQuestions(java.util.List questions)
          Associates a list of questions with the question type
 void setQuestionType(java.lang.String strQuestionType)
          Sets the question type to the specified value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE_TYPE

public static final java.lang.String RESOURCE_TYPE
See Also:
Constant Field Values
Constructor Detail

QuestionType

public QuestionType()
Creates a new QuestionType object.

Method Detail

getIdQuestionType

public int getIdQuestionType()
Returns the identifier of the object

Returns:
The identifier

setIdQuestionType

public void setIdQuestionType(int nIdQuestionType)
Sets the identifier of the object to the specified value

Parameters:
nIdQuestionType - The new value

getQuestionType

public java.lang.String getQuestionType()
Returns the question type

Returns:
A string literal containing the question type

setQuestionType

public void setQuestionType(java.lang.String strQuestionType)
Sets the question type to the specified value

Parameters:
strQuestionType - The new value

getQuestions

public java.util.List getQuestions()
Returns the list of questions of this type

Returns:
The list of questions

setQuestions

public void setQuestions(java.util.List questions)
Associates a list of questions with the question type

Parameters:
questions - The new list of questions

getResourceTypeCode

public java.lang.String getResourceTypeCode()
Returns the Resource Type Code that identify the resource type

Specified by:
getResourceTypeCode in interface fr.paris.lutece.portal.service.rbac.RBACResource
Returns:
The Resource Type Code

getResourceId

public java.lang.String getResourceId()
Returns the resource Id of the current object

Specified by:
getResourceId in interface fr.paris.lutece.portal.service.rbac.RBACResource
Returns:
The resource Id of the current object


Copyright © 2007 Mairie de Paris. All Rights Reserved.