Interface ILinkPagesPortletDAO
-
- All Superinterfaces:
fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
- All Known Implementing Classes:
LinkPagesPortletDAO
public interface ILinkPagesPortletDAO extends fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Author:
- lenaini
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(int nPortletId)Deletes a record from the tablevoiddeleteAllLinkPages(int nPortletId)Remove all link pages from a specified portletvoiddeleteLinkPage(int nPortletId, int nLinkPageId)Remove a specified link page from a specified portletvoidinsert(fr.paris.lutece.portal.business.portlet.Portlet portlet)voidinsertLinkPage(int nPortletId, int nLinkPageId, int nOrder)Insert a new record in the table.fr.paris.lutece.portal.business.portlet.Portletload(int nPortletId)Loads the data of a LinkdPagesPortlet whose identifier is specified in parameter from the tableintselectLinkPageIdByOrder(int nPortletId, int nOrder)Returns the id of a link page wich has a specified order in a specified portletintselectLinkPageOrder(int nPortletId, int nPageId)Return the order of a link page in a specified portletList<fr.paris.lutece.portal.business.page.Page>selectLinkPagesInPortletList(int nPortletId)Return a list of linkpages which belong to a specified portletfr.paris.lutece.util.ReferenceListselectLinkPagesList()Load the list of all the pages of the websiteintselectMaxOrder(int nPortletId)Calculate a new primary key to add a new linkPagevoidstore(fr.paris.lutece.portal.business.portlet.Portlet portlet)voidstoreLinkPageOrder(int nOrder, int nPortletId, int nLinkPageId)Update the order of a specified link page in a specified portletbooleantestDuplicate(int nPortletId, int nLinkPageId)Check if a specified link page is not already registered in a specified portlet
-
-
-
Method Detail
-
delete
void delete(int nPortletId)
Deletes a record from the table- Specified by:
deletein interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
nPortletId- Identifier portlet
-
deleteAllLinkPages
void deleteAllLinkPages(int nPortletId)
Remove all link pages from a specified portlet- Parameters:
nPortletId- The identifier of the portlet
-
deleteLinkPage
void deleteLinkPage(int nPortletId, int nLinkPageId)Remove a specified link page from a specified portlet- Parameters:
nPortletId- The identifier of the portletnLinkPageId- The identifier of the link page
-
insert
void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet) throws fr.paris.lutece.portal.service.util.AppException- Specified by:
insertin interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Throws:
fr.paris.lutece.portal.service.util.AppException
-
insertLinkPage
void insertLinkPage(int nPortletId, int nLinkPageId, int nOrder)Insert a new record in the table.- Parameters:
nPortletId- The identifier of the portletnLinkPageId- The identifier of the link pagenOrder- The order of the portlet to insert
-
load
fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId)
Loads the data of a LinkdPagesPortlet whose identifier is specified in parameter from the table- Specified by:
loadin interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
nPortletId- The LinkdPagesPortlet identifier- Returns:
- the LinkdPagesPortlet object
-
selectLinkPageIdByOrder
int selectLinkPageIdByOrder(int nPortletId, int nOrder)Returns the id of a link page wich has a specified order in a specified portlet- Parameters:
nPortletId- The identifier of the portletnOrder- The link page's order- Returns:
- The identifier of the link page
-
selectLinkPageOrder
int selectLinkPageOrder(int nPortletId, int nPageId)Return the order of a link page in a specified portlet- Parameters:
nPortletId- The identifier of the portlet to checknPageId- The identifier of the page- Returns:
- The order of the page in the portlet
-
selectLinkPagesInPortletList
List<fr.paris.lutece.portal.business.page.Page> selectLinkPagesInPortletList(int nPortletId)
Return a list of linkpages which belong to a specified portlet- Parameters:
nPortletId- The identifier of the portlet- Returns:
- A list of linkpages objects
-
selectLinkPagesList
fr.paris.lutece.util.ReferenceList selectLinkPagesList()
Load the list of all the pages of the website- Returns:
- the list in form of a ReferenceList object
-
selectMaxOrder
int selectMaxOrder(int nPortletId)
Calculate a new primary key to add a new linkPage- Parameters:
nPortletId- The identifier of the portlet- Returns:
- The new key.
-
store
void store(fr.paris.lutece.portal.business.portlet.Portlet portlet) throws fr.paris.lutece.portal.service.util.AppException- Specified by:
storein interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Throws:
fr.paris.lutece.portal.service.util.AppException
-
storeLinkPageOrder
void storeLinkPageOrder(int nOrder, int nPortletId, int nLinkPageId)Update the order of a specified link page in a specified portlet- Parameters:
nPortletId- The identifier of the portletnLinkPageId- The identifier of the link pagenOrder- The new order
-
testDuplicate
boolean testDuplicate(int nPortletId, int nLinkPageId)Check if a specified link page is not already registered in a specified portlet- Parameters:
nPortletId- The identifier of the portletnLinkPageId- The identifier of the link page- Returns:
- The result(boolean)
-
-