Class FaqDAO
java.lang.Object
fr.paris.lutece.plugins.helpdesk.business.FaqDAO
- All Implemented Interfaces:
IFaqDAO
This class provides Data Access methods for Faq objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablefindAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds all objects of this typefindAuthorizedFaq(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 subjectfindByWorkgroup(String[] strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds all objects of this typefr.paris.lutece.util.ReferenceListfindListFaq(fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds all objects of this typefr.paris.lutece.util.ReferenceListfindReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds all objects of this typevoidInsert a new record in the table.load(int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) load the data of Faq from the tableintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin) Calculate a new primary key to add a new FaqvoidUpdate the record in the table
-
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:
newPrimaryKeyin interfaceIFaqDAO- Parameters:
plugin- The Plugin using this data access service- Returns:
- The new key.
-
insert
Insert a new record in the table. -
delete
public void delete(int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table -
load
load the data of Faq from the table -
store
Update the record in the table -
findAll
Finds all objects of this type -
findReferenceList
public fr.paris.lutece.util.ReferenceList findReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds all objects of this type- Specified by:
findReferenceListin interfaceIFaqDAO- 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:
findAuthorizedFaqin interfaceIFaqDAO- Parameters:
plugin- The Plugin using this data access servicearrayRoleKey- 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:
findByWorkgroupin interfaceIFaqDAO- Parameters:
strWorkgroupKey- The workgroup keyplugin- The Plugin using this data access service- Returns:
- A collection of objects
-
findBySubjectId
Find a faq containing the subject- Specified by:
findBySubjectIdin interfaceIFaqDAO- Parameters:
nSubjectId- subject idplugin- 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:
findListFaqin interfaceIFaqDAO- Parameters:
plugin- The Plugin using this data access service- Returns:
- A collection of objects
-