fr.paris.lutece.plugins.helpdesk.business
Interface IFaqDAO

All Known Implementing Classes:
FaqDAO

public interface IFaqDAO

Interface for Faq DAO


Method Summary
 void delete(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 Collection<Faq> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Finds all objects of this type
 Collection<Faq> findAuthorizedFaq(String[] arrayRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Finds all authorized objects of this type specified by roleKey
 Faq findBySubjectId(int nSubjectId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find a faq containing the subject
 Collection<Faq> 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.
 Faq load(int nId, 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
 

Method Detail

newPrimaryKey

int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Calculate a new primary key to add a new Faq

Parameters:
plugin - The Plugin using this data access service
Returns:
The new key.

insert

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

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

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

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

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

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

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

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

findByWorkgroup

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

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

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 ReferenceList of ReferenceItem


Copyright © 2013 Mairie de Paris. All Rights Reserved.