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

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

public final class FaqHome
extends java.lang.Object

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


Constructor Summary
FaqHome()
           
 
Method Summary
static void delete(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
static java.util.Collection<Faq> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Finds all objects of this type
static java.util.Collection<Faq> findAuthorizedFaq(java.lang.String[] arrayRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Finds all authorized objects of this type specified by roleKey
static Faq findBySubjectId(int nSubjectId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find a faq containing the subject
static java.util.Collection<Faq> findByWorkgroup(java.lang.String[] strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Finds all objects of this type
static fr.paris.lutece.util.ReferenceList findListFaq(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Finds all objects of this type
static fr.paris.lutece.util.ReferenceList findReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Finds all objects of this type
static void insert(Faq faq, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
static Faq load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          load the data of Faq from the table
static void store(Faq faq, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FaqHome

public FaqHome()
Method Detail

insert

public static void insert(Faq faq,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
faq - The Instance of the object Faq
plugin - The Plugin using this data access service

delete

public static void delete(int nId,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nId - The indentifier of the object Faq
plugin - The Plugin using this data access service

load

public static Faq load(int nId,
                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
load the data of Faq from the table

Parameters:
nId - The indentifier of the object Faq
plugin - The Plugin using this data access service
Returns:
The Instance of the object Faq

store

public static void store(Faq faq,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
faq - The instance of the Faq to update
plugin - The Plugin using this data access service

findAll

public static java.util.Collection<Faq> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all objects of this type

Parameters:
plugin - The Plugin using this data access service
Returns:
A collection of objects

findReferenceList

public static fr.paris.lutece.util.ReferenceList findReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all objects of this type

Parameters:
plugin - The Plugin using this data access service
Returns:
A ReferenceList

findAuthorizedFaq

public static java.util.Collection<Faq> findAuthorizedFaq(java.lang.String[] arrayRoleKey,
                                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all authorized objects of this type specified by roleKey

Parameters:
arrayRoleKey - The role key array
plugin - The Plugin using this data access service
Returns:
A collection of objects

findByWorkgroup

public static java.util.Collection<Faq> findByWorkgroup(java.lang.String[] strWorkgroupKey,
                                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all objects of this type

Parameters:
strWorkgroupKey - The workgroup key
plugin - The Plugin using this data access service
Returns:
A collection of objects

findBySubjectId

public static Faq findBySubjectId(int nSubjectId,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a faq containing the subject

Parameters:
nSubjectId - subject id
plugin - the plugin
Returns:
the faq

findListFaq

public static fr.paris.lutece.util.ReferenceList findListFaq(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all objects of this type

Parameters:
plugin - The Plugin using this data access service
Returns:
A collection of objects


Copyright © 2010 Mairie de Paris. All Rights Reserved.