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

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

public final class ThemeHome
extends AbstractSubjectHome

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


Field Summary
 
Fields inherited from class fr.paris.lutece.plugins.helpdesk.business.AbstractSubjectHome
FIRST_ORDER, STEP
 
Constructor Summary
ThemeHome()
          Constructor
 
Method Summary
static fr.paris.lutece.util.ReferenceList findAllReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns Theme list
static Collection<VisitorQuestion> findQuestion(int nIdTheme, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns Question list for Theme
 IAbstractSubjectDAO getDAO()
          Return the used DAO
static ThemeHome getInstance()
          Returns the instance of ThemeHome
static Theme getVirtualRootTheme(Locale locale)
          Create the virtual root Theme to initialize the tree
 
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

ThemeHome

public ThemeHome()
Constructor

Method Detail

getInstance

public static ThemeHome getInstance()
Returns the instance of ThemeHome

Returns:
the ThemeHome instance

findAllReferenceList

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

Parameters:
plugin - The current plugin using this method
Returns:
the ReferenceList of the Theme of the database in form of ReferenceList

findQuestion

public static Collection<VisitorQuestion> findQuestion(int nIdTheme,
                                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns Question list for Theme

Parameters:
plugin - The current plugin using this method
nIdTheme - The Theme ID
Returns:
the Collection of the VisitorQuestion of Theme

getVirtualRootTheme

public static Theme getVirtualRootTheme(Locale locale)
Create the virtual root Theme to initialize the tree

Parameters:
locale - The locale
Returns:
The virtual root Theme

getDAO

public IAbstractSubjectDAO getDAO()
Return the used DAO

Returns:
the used DAO


Copyright © 2013 Mairie de Paris. All Rights Reserved.