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

public final class FaqHome extends Object
This class provides instances management methods (create, find, ...) for Subject objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    delete(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    static Collection<Faq>
    findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Finds all objects of this type
    static Collection<Faq>
    findAuthorizedFaq(String[] arrayRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Finds all authorized objects of this type specified by roleKey
    static Collection<Faq>
    findAuthorizedFaqWhitoutNoneRole(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 Collection<Faq>
    findByWorkgroup(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

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

    • FaqHome

      public FaqHome()
  • Method Details

    • 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 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
    • findAuthorizedFaqWhitoutNoneRole

      public static Collection<Faq> findAuthorizedFaqWhitoutNoneRole(String[] arrayRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Finds all authorized objects of this type specified by roleKey. Faq with role "none" will be ignored.
      Parameters:
      arrayRoleKey - The role key array
      plugin - The Plugin using this data access service
      Returns:
      A collection of objects
    • findAuthorizedFaq

      public static Collection<Faq> findAuthorizedFaq(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 Collection<Faq> findByWorkgroup(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