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

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

public final class QuestionTypeHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for QuestionType objects


Method Summary
static QuestionType create(QuestionType questionType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of an article QuestionType
static fr.paris.lutece.util.ReferenceList findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns QuestionType list
static QuestionType findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of the article QuestionType whose identifier is specified in parameter
static java.util.List<VisitorQuestion> getQuestions(int nIdQuestionType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Return all the users for a given question type.
static void remove(int nIdQuestionType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Deletes the QuestionType instance whose identifier is specified in parameter
static java.util.List<QuestionType> selectQuestionTypeList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns QuestionType list
static QuestionType update(QuestionType questionType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Updates of the QuestionType instance specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static QuestionType create(QuestionType questionType,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of an article QuestionType

Parameters:
questionType - An instance of the QuestionType which contains the informations to store
plugin - The current plugin using this method
Returns:
The instance of the QuestionType which has been created

update

public static QuestionType update(QuestionType questionType,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Updates of the QuestionType instance specified in parameter

Parameters:
questionType - An instance of the QuestionType which contains the informations to store
plugin - The current plugin using this method
Returns:
The instance of the QuestionType which has been updated.

remove

public static void remove(int nIdQuestionType,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes the QuestionType instance whose identifier is specified in parameter

Parameters:
nIdQuestionType - The identifier of the article QuestionType to delete in the database
plugin - The current plugin using this method

findByPrimaryKey

public static QuestionType findByPrimaryKey(int nKey,
                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of the article QuestionType whose identifier is specified in parameter

Parameters:
nKey - The primary key of the article to find in the database
plugin - The current plugin using this method
Returns:
An instance of the QuestionType which corresponds to the key

findAll

public static fr.paris.lutece.util.ReferenceList findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns QuestionType list

Parameters:
plugin - The current plugin using this method
Returns:
the list of the QuestionType of the database in form of a QuestionType Collection object

selectQuestionTypeList

public static java.util.List<QuestionType> selectQuestionTypeList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns QuestionType list

Parameters:
plugin - The current plugin using this method
Returns:
the list of the QuestionType of the database in form of a QuestionType Collection object

getQuestions

public static java.util.List<VisitorQuestion> getQuestions(int nIdQuestionType,
                                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return all the users for a given question type.

Parameters:
nIdQuestionType - The identifier of the question type
plugin - The Plugin using this data access service
Returns:
the list of Users which have a role


Copyright © 2007 Mairie de Paris. All Rights Reserved.