java.lang.Object
fr.paris.lutece.plugins.helpdesk.business.FaqDAO
All Implemented Interfaces:
IFaqDAO

public final class FaqDAO extends Object implements IFaqDAO
This class provides Data Access methods for Faq objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Finds all objects of this type
    findAuthorizedFaq(String[] arrayRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Finds all authorized objects of this type specified by roleKey (front office)
    findBySubjectId(int nSubjectId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Find a faq containing the subject
    findByWorkgroup(String[] strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Finds all objects of this type
    fr.paris.lutece.util.ReferenceList
    findListFaq(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Finds all objects of this type
    fr.paris.lutece.util.ReferenceList
    findReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Finds all objects of this type
    void
    insert(Faq faq, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    load(int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    load the data of Faq from the table
    int
    newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Calculate a new primary key to add a new Faq
    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

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FaqDAO

      public FaqDAO()
  • Method Details

    • newPrimaryKey

      public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Calculate a new primary key to add a new Faq
      Specified by:
      newPrimaryKey in interface IFaqDAO
      Parameters:
      plugin - The Plugin using this data access service
      Returns:
      The new key.
    • insert

      public void insert(Faq faq, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface IFaqDAO
      Parameters:
      faq - The Instance of the object Faq
      plugin - The Plugin using this data access service
    • delete

      public void delete(int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Specified by:
      delete in interface IFaqDAO
      Parameters:
      nIdFaq - The indentifier of the object Faq
      plugin - The Plugin using this data access service
    • load

      public Faq load(int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      load the data of Faq from the table
      Specified by:
      load in interface IFaqDAO
      Parameters:
      nIdFaq - The indentifier of the object Faq
      plugin - The Plugin using this data access service
      Returns:
      The Instance of the object Faq
    • store

      public void store(Faq faq, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IFaqDAO
      Parameters:
      faq - The instance of the Faq to update
      plugin - The Plugin using this data access service
    • findAll

      public Collection<Faq> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Finds all objects of this type
      Specified by:
      findAll in interface IFaqDAO
      Parameters:
      plugin - The Plugin using this data access service
      Returns:
      A collection of objects
    • findReferenceList

      public fr.paris.lutece.util.ReferenceList findReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Finds all objects of this type
      Specified by:
      findReferenceList in interface IFaqDAO
      Parameters:
      plugin - The Plugin using this data access service
      Returns:
      A ReferenceList
    • findAuthorizedFaq

      public Collection<Faq> findAuthorizedFaq(String[] arrayRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Finds all authorized objects of this type specified by roleKey (front office)
      Specified by:
      findAuthorizedFaq in interface IFaqDAO
      Parameters:
      plugin - The Plugin using this data access service
      arrayRoleKey - The role key array
      Returns:
      A collection of objects
    • findByWorkgroup

      public Collection<Faq> findByWorkgroup(String[] strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Finds all objects of this type
      Specified by:
      findByWorkgroup in interface IFaqDAO
      Parameters:
      strWorkgroupKey - The workgroup key
      plugin - The Plugin using this data access service
      Returns:
      A collection of objects
    • findBySubjectId

      public Faq findBySubjectId(int nSubjectId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find a faq containing the subject
      Specified by:
      findBySubjectId in interface IFaqDAO
      Parameters:
      nSubjectId - subject id
      plugin - the plugin
      Returns:
      the faq
    • findListFaq

      public fr.paris.lutece.util.ReferenceList findListFaq(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Finds all objects of this type
      Specified by:
      findListFaq in interface IFaqDAO
      Parameters:
      plugin - The Plugin using this data access service
      Returns:
      A collection of objects