Class ChildPagesPortletDAO
java.lang.Object
fr.paris.lutece.plugins.childpages.business.portlet.ChildPagesPortletDAO
- All Implemented Interfaces:
IChildPagesPortletDAO,fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
@ApplicationScoped
public final class ChildPagesPortletDAO
extends Object
implements IChildPagesPortletDAO
This class provides Data Access methods for ChildPagesPortlet objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nPortletId) Deletes a record from the tablegetChildPagesPortlets(int parentPageId) Loads the portlets bound to a parent pagevoidinsert(fr.paris.lutece.portal.business.portlet.Portlet portlet) Inserts a new record in the tablefr.paris.lutece.portal.business.portlet.Portletload(int nPortletId) Loads a portlet by identifierfr.paris.lutece.util.ReferenceListselectChildPagesList(int nPageId) Loads the child pages of a pagefr.paris.lutece.util.ReferenceListLoads all the pages of the databasevoidstore(fr.paris.lutece.portal.business.portlet.Portlet portlet) Updates a record in the table
-
Constructor Details
-
ChildPagesPortletDAO
public ChildPagesPortletDAO()
-
-
Method Details
-
insert
public void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet) Inserts a new record in the table- Specified by:
insertin interfaceIChildPagesPortletDAO- Specified by:
insertin interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
portlet- the portlet to insert
-
delete
public void delete(int nPortletId) Deletes a record from the table- Specified by:
deletein interfaceIChildPagesPortletDAO- Specified by:
deletein interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
nPortletId- the portlet identifier
-
load
public fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId) Loads a portlet by identifier- Specified by:
loadin interfaceIChildPagesPortletDAO- Specified by:
loadin interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
nPortletId- the portlet identifier- Returns:
- the loaded portlet
-
store
public void store(fr.paris.lutece.portal.business.portlet.Portlet portlet) Updates a record in the table- Specified by:
storein interfaceIChildPagesPortletDAO- Specified by:
storein interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
portlet- the portlet to update
-
selectChildPagesList
public fr.paris.lutece.util.ReferenceList selectChildPagesList(int nPageId) Loads the child pages of a page- Specified by:
selectChildPagesListin interfaceIChildPagesPortletDAO- Parameters:
nPageId- the page identifier- Returns:
- the child pages list
-
selectPagesList
public fr.paris.lutece.util.ReferenceList selectPagesList()Loads all the pages of the database- Specified by:
selectPagesListin interfaceIChildPagesPortletDAO- Returns:
- the pages list
-
getChildPagesPortlets
Loads the portlets bound to a parent page- Specified by:
getChildPagesPortletsin interfaceIChildPagesPortletDAO- Parameters:
parentPageId- the parent page identifier- Returns:
- the portlets list
-