Class FaqHome
java.lang.Object
fr.paris.lutece.plugins.helpdesk.business.FaqHome
This class provides instances management methods (create, find, ...)
for Subject objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddelete(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablestatic Collection<Faq>findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds all objects of this typestatic Collection<Faq>findAuthorizedFaq(String[] arrayRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds all authorized objects of this type specified by roleKeystatic Collection<Faq>findAuthorizedFaqWhitoutNoneRole(String[] arrayRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds all authorized objects of this type specified by roleKey.static FaqfindBySubjectId(int nSubjectId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find a faq containing the subjectstatic Collection<Faq>findByWorkgroup(String[] strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds all objects of this typestatic fr.paris.lutece.util.ReferenceListfindListFaq(fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds all objects of this typestatic fr.paris.lutece.util.ReferenceListfindReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds all objects of this typestatic voidInsert a new record in the table.static Faqload(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) load the data of Faq from the tablestatic voidUpdate the record in the table
-
Constructor Details
-
FaqHome
public FaqHome()
-
-
Method Details
-
insert
Insert a new record in the table.- Parameters:
faq- The Instance of the object Faqplugin- 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 Faqplugin- The Plugin using this data access service
-
load
load the data of Faq from the table- Parameters:
nId- The indentifier of the object Faqplugin- The Plugin using this data access service- Returns:
- The Instance of the object Faq
-
store
Update the record in the table- Parameters:
faq- The instance of the Faq to updateplugin- The Plugin using this data access service
-
findAll
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 arrayplugin- 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 arrayplugin- 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 keyplugin- 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 idplugin- 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
-