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

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

public final class SubjectHome
extends java.lang.Object

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


Method Summary
static int countQuestionSubject(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          return the count of all announce for Field
static Subject create(Subject subject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of an article Subject
static java.util.List<Subject> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns Subject list
static Subject findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of the article Subject whose identifier is specified in parameter
static java.util.List<QuestionAnswer> findQuestion(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns Question list for Subject
static fr.paris.lutece.util.ReferenceList findSubject(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns Subject list
static void remove(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Deletes the Subject instance whose identifier is specified in parameter
static Subject update(Subject subject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Updates of the Subject 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 Subject create(Subject subject,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of an article Subject

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

update

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

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

remove

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

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

findByPrimaryKey

public static Subject findByPrimaryKey(int nKey,
                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of the article Subject 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 Subject which corresponds to the key

findAll

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

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

findSubject

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

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

findQuestion

public static java.util.List<QuestionAnswer> findQuestion(int nIdSubject,
                                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns Question list for Subject

Parameters:
plugin - The current plugin using this method
nIdSubject - The Subject ID
Returns:
the list of the Question of subject

countQuestionSubject

public static int countQuestionSubject(int nIdSubject,
                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
return the count of all announce for Field

Parameters:
plugin - The current plugin using this method
nIdSubject - The subject ID
Returns:
count of announce for Field


Copyright © 2007 Mairie de Paris. All Rights Reserved.