|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.helpdesk.business.QuestionAnswerHome
public final class QuestionAnswerHome
This class provides instances management methods (create, find, ...) for QuestionAnswer objects
| Field Summary | |
|---|---|
static int |
FIRST_ORDER
|
| Method Summary | |
|---|---|
static int |
countbySubject(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Count QuestionAnswewr for one Subject |
static QuestionAnswer |
create(QuestionAnswer questionanswer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of an article QuestionAnswer |
static List<QuestionAnswer> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns QuestionAnswer list |
static Collection<QuestionAnswer> |
findByIdSubject(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find questions specified by id subject |
static List<QuestionAnswer> |
findByKeywords(String strKeywords,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find questions containing a list of keywords |
static QuestionAnswer |
findByPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of the article QuestionAnswer whose identifier is specified in parameter |
static void |
goDown(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Move down a question into the list |
static void |
goUp(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Move up an AbstractSubject into the list |
static void |
remove(int nIdQuestionAnswer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes the QuestionAnswer instance whose identifier is specified in parameter |
static void |
removeAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes all QuestionAnswer instances |
static void |
removeBySubject(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes the QuestionAnswer instance whose identifier is specified in parameter |
static QuestionAnswer |
update(QuestionAnswer questionanswer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Updates of the QuestionAnswer instance specified in parameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int FIRST_ORDER
| Method Detail |
|---|
public static QuestionAnswer create(QuestionAnswer questionanswer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
questionanswer - An instance of the QuestionAnswer which contains
the informations to storeplugin - The current plugin using this method
public static QuestionAnswer update(QuestionAnswer questionanswer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
questionanswer - An instance of the QuestionAnswer which contains
the informations to storeplugin - The current plugin using this method
public static void remove(int nIdQuestionAnswer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuestionAnswer - The identifier of the article QuestionAnswer to delete in
the databaseplugin - The current plugin using this methodpublic static void removeAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The current plugin using this method
public static void removeBySubject(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdSubject - The identifier of the article QuestionAnswer to delete in
the databaseplugin - The current plugin using this method
public static QuestionAnswer findByPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey - The primary key of the article to find in the databaseplugin - The current plugin using this method
public static List<QuestionAnswer> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The current plugin using this method
public static List<QuestionAnswer> findByKeywords(String strKeywords,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
strKeywords - The keywordsplugin - The current plugin using this method
public static Collection<QuestionAnswer> findByIdSubject(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdSubject - The Id of the subjectplugin - The current plugin using this method
public static int countbySubject(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdSubject - IDplugin - The current plugin using this method
public static void goDown(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nId - The id of the questionplugin - The plugin
public static void goUp(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
AbstractSubject into the list
nId - The id of the AbstractSubjectplugin - The plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||