|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.helpdesk.business.SubjectHome
public final class SubjectHome
This class provides instances management methods (create, find, ...) for Subject objects
Method Summary | |
---|---|
static int |
countQuestionSubject(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
return the count of all announce for Field |
static Subject |
create(Subject subject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of an article Subject |
static java.util.List<Subject> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns Subject list |
static Subject |
findByPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of the article Subject whose identifier is specified in parameter |
static java.util.List<QuestionAnswer> |
findQuestion(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns Question list for Subject |
static fr.paris.lutece.util.ReferenceList |
findSubject(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns Subject list |
static void |
remove(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes the Subject instance whose identifier is specified in parameter |
static Subject |
update(Subject subject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Updates of the Subject instance specified in parameter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Subject create(Subject subject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
subject
- An instance of the Subject which contains the informations to storeplugin
- The current plugin using this method
public static Subject update(Subject subject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
subject
- An instance of the Subject which contains the informations to storeplugin
- The current plugin using this method
public static void remove(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdSubject
- The identifier of the article Subject to delete in the databaseplugin
- The current plugin using this methodpublic static Subject 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 java.util.List<Subject> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The current plugin using this method
public static fr.paris.lutece.util.ReferenceList findSubject(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The current plugin using this method
public static java.util.List<QuestionAnswer> findQuestion(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The current plugin using this methodnIdSubject
- The Subject ID
public static int countQuestionSubject(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The current plugin using this methodnIdSubject
- The subject ID
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |