fr.paris.lutece.plugins.linkpages.business.portlet
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
 void delete(int nPortletId)
          Deletes a record from the table
 void deleteAllLinkPages(int nPortletId)
          Remove all link pages from a specified portlet
 void deleteLinkPage(int nPortletId, int nLinkPageId)
          Remove a specified link page from a specified portlet
 void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
           
 void insertLinkPage(int nPortletId, int nLinkPageId, int nOrder)
          Insert a new record in the table.
 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
 int selectLinkPageIdByOrder(int nPortletId, int nOrder)
          Returns the id of a link page wich has a specified order in a specified portlet
 int selectLinkPageOrder(int nPortletId, int nPageId)
          Return the order of a link page in a specified portlet
 java.util.List<fr.paris.lutece.portal.business.page.Page> selectLinkPagesInPortletList(int nPortletId)
          Return a list of linkpages which belong to a specified portlet
 fr.paris.lutece.util.ReferenceList selectLinkPagesList()
          Load the list of all the pages of the website
 int selectMaxOrder(int nPortletId)
          Calculate a new primary key to add a new linkPage
 void store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
           
 void storeLinkPageOrder(int nOrder, int nPortletId, int nLinkPageId)
          Update the order of a specified link page in a specified portlet
 boolean testDuplicate(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:
delete in interface fr.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 portlet
nLinkPageId - 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:
insert in interface fr.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 portlet
nLinkPageId - The identifier of the link page
nOrder - 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:
load in interface fr.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 portlet
nOrder - 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 check
nPageId - The identifier of the page
Returns:
The order of the page in the portlet

selectLinkPagesInPortletList

java.util.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:
store in interface fr.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 portlet
nLinkPageId - The identifier of the link page
nOrder - 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 portlet
nLinkPageId - The identifier of the link page
Returns:
The result(boolean)


Copyright © 2009 Mairie de Paris. All Rights Reserved.