Class AbstractSubjectHome
java.lang.Object
fr.paris.lutece.plugins.helpdesk.business.AbstractSubjectHome
- All Implemented Interfaces:
AbstractSubjectHomeInterface
- Direct Known Subclasses:
SubjectHome,ThemeHome
This class provides instances management methods (create, find, ...)
for AbstractSubject objects
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(AbstractSubject abstractSubject, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Creation of an instance of an articleAbstractSubjectvoidcreateLinkToFaq(int nIdAbstractSubject, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Create a new record in the table.List<? extends AbstractSubject>findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) ReturnsAbstractSubjectlistfindByFaqOrder(int nIdFaq, int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns an instance of theAbstractSubjectwhose identifier is specified in parameterCollection<? extends AbstractSubject>findByIdFaq(int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds allSubjectspecified by the Faq idCollection<? extends AbstractSubject>findByIdParent(int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds allAbstractSubjectspecified by the parent idfindByOrder(int nIdParent, int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns an instance of theAbstractSubjectwhose identifier is specified in parameterfindByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns an instance of theAbstractSubjectwhose identifier is specified in parameterintgetMaxOrder(int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the max order of a parentAbstractSubjectvoidgoDown(int nId, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Move down anAbstractSubjectinto the listvoidgoIn(int nId, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Set theAbstractSubjectinto another parentAbstractSubjectvoidgoOut(int nId, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Set theAbstractSubjectout of another parentAbstractSubjectvoidgoUp(int nId, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Move up anAbstractSubjectinto the listvoidremove(int nIdAbstractSubject, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Deletes theAbstractSubjectinstance whose identifier is specified in parametervoidremoveAllLinksToFaq(int nIdAbstractSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove a record in the table.voidremoveLinkToFaq(int nIdAbstractSubject, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove a record in the table.update(AbstractSubject abstractSubject, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Updates of theAbstractSubjectinstance specified in parameterMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.paris.lutece.plugins.helpdesk.business.AbstractSubjectHomeInterface
getDAO
-
Field Details
-
FIRST_ORDER
public static final int FIRST_ORDER- See Also:
-
-
Constructor Details
-
AbstractSubjectHome
public AbstractSubjectHome()
-
-
Method Details
-
create
public AbstractSubject create(AbstractSubject abstractSubject, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Creation of an instance of an articleAbstractSubject- Parameters:
abstractSubject- An instance of theAbstractSubjectwhich contains the informations to storenIdFaq- TheFaqIdplugin- The current plugin using this method- Returns:
- The instance of the
AbstractSubjectwhich has been created
-
update
public AbstractSubject update(AbstractSubject abstractSubject, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Updates of theAbstractSubjectinstance specified in parameter- Parameters:
abstractSubject- An instance of theAbstractSubjectwhich contains the informations to storenIdFaq- TheFaqIdplugin- The current plugin using this method- Returns:
- The instance of the
AbstractSubjectwhich has been updated.
-
remove
public void remove(int nIdAbstractSubject, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Deletes theAbstractSubjectinstance whose identifier is specified in parameter- Parameters:
nIdAbstractSubject- The identifier of the articleAbstractSubjectto delete in the databasenIdFaq- TheFaqIdplugin- The current plugin using this method
-
findByPrimaryKey
public AbstractSubject findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns an instance of theAbstractSubjectwhose identifier is specified in parameter- Parameters:
nKey- The primary key of theAbstractSubjectto find in the databaseplugin- The current plugin using this method- Returns:
- An instance of the
AbstractSubjectwhich corresponds to the key
-
findAll
ReturnsAbstractSubjectlist- Parameters:
plugin- The current plugin using this method- Returns:
- the list of the
AbstractSubjectof the database in form of a Subject Collection object
-
findByIdParent
public Collection<? extends AbstractSubject> findByIdParent(int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds allAbstractSubjectspecified by the parent id- Parameters:
nIdParent- The parentAbstractSubjectidplugin- The Plugin using this data access service- Returns:
- A collection of
AbstractSubject
-
findByIdFaq
public Collection<? extends AbstractSubject> findByIdFaq(int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds allSubjectspecified by the Faq id- Parameters:
nIdFaq- The faq subject idplugin- The Plugin using this data access service- Returns:
- A collection of
Subject
-
findByOrder
public AbstractSubject findByOrder(int nIdParent, int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns an instance of theAbstractSubjectwhose identifier is specified in parameter- Parameters:
nIdParent- The primary key of the parentAbstractSubjectnOrder- The order idplugin- The current plugin using this method- Returns:
- An instance of the
AbstractSubjectwhich corresponds to the parent id and order id
-
findByFaqOrder
public AbstractSubject findByFaqOrder(int nIdFaq, int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns an instance of theAbstractSubjectwhose identifier is specified in parameter- Parameters:
nIdFaq- The primary key of the faqAbstractSubjectnOrder- The order idplugin- The current plugin using this method- Returns:
- An instance of the
AbstractSubjectwhich corresponds to the faq id and order id
-
getMaxOrder
public int getMaxOrder(int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the max order of a parentAbstractSubject- Parameters:
nIdParent- The id of the parentAbstractSubjectplugin- ThePlugin- Returns:
- the max order
-
goDown
public void goDown(int nId, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Move down anAbstractSubjectinto the list- Parameters:
nId- The id of theAbstractSubjectnIdFaq- TheFaqIdplugin- The plugin
-
goUp
public void goUp(int nId, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Move up anAbstractSubjectinto the list- Parameters:
nId- The id of theAbstractSubjectnIdFaq- TheFaqIdplugin- The plugin
-
goIn
public void goIn(int nId, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Set theAbstractSubjectinto another parentAbstractSubject- Parameters:
nId- TheAbstractSubjectto movenIdFaq- TheFaqIdplugin- The plugin
-
goOut
public void goOut(int nId, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Set theAbstractSubjectout of another parentAbstractSubject- Parameters:
nId- TheAbstractSubjectto movenIdFaq- TheFaqIdplugin- The plugin
-
createLinkToFaq
public void createLinkToFaq(int nIdAbstractSubject, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Create a new record in the table.- Parameters:
nIdAbstractSubject- The id of the object SubjectnIdFaq- The parent id of the object Faqplugin- The Plugin using this data access service
-
removeLinkToFaq
public void removeLinkToFaq(int nIdAbstractSubject, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove a record in the table.- Parameters:
nIdAbstractSubject- The id of the object SubjectnIdFaq- The parent id of the object Faqplugin- The Plugin using this data access service
-
removeAllLinksToFaq
public void removeAllLinksToFaq(int nIdAbstractSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove a record in the table.- Parameters:
nIdAbstractSubject- The id of the object Subjectplugin- The Plugin using this data access service
-