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

java.lang.Object
  extended by fr.paris.lutece.plugins.helpdesk.business.AbstractSubjectHome
      extended by fr.paris.lutece.plugins.helpdesk.business.SubjectHome
All Implemented Interfaces:
AbstractSubjectHomeInterface

public final class SubjectHome
extends AbstractSubjectHome

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


Field Summary
 
Fields inherited from class fr.paris.lutece.plugins.helpdesk.business.AbstractSubjectHome
FIRST_ORDER, STEP
 
Constructor Summary
SubjectHome()
          Constructor
 
Method Summary
static int countQuestionSubject(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          return the count of all announce for Field
static List<QuestionAnswer> findQuestion(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns Question list for Subject
 IAbstractSubjectDAO getDAO()
          Return the used dao
static SubjectHome getInstance()
          Returns the instance of SubjectHome
 
Methods inherited from class fr.paris.lutece.plugins.helpdesk.business.AbstractSubjectHome
create, createLinkToFaq, findAll, findByFaqOrder, findByIdFaq, findByIdParent, findByOrder, findByPrimaryKey, getMaxOrder, goDown, goIn, goOut, goUp, remove, removeAllLinksToFaq, removeLinkToFaq, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubjectHome

public SubjectHome()
Constructor

Method Detail

getInstance

public static SubjectHome getInstance()
Returns the instance of SubjectHome

Returns:
the SubjectHome instance

findQuestion

public static 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

getDAO

public IAbstractSubjectDAO getDAO()
Return the used dao

Returns:
The used DAO


Copyright © 2013 Mairie de Paris. All Rights Reserved.