fr.paris.lutece.plugins.links.business.portlet
Interface ILinksPortletDAO

All Superinterfaces:
fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
All Known Implementing Classes:
LinksPortletDAO

public interface ILinksPortletDAO
extends fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO


Method Summary
 void delete(int nPortletId)
          Deletes the portlet whose identifier is specified in parameter
 void deleteLink(int nPortletId, int nLinkId)
          Remove a specified link from a specified portlet
 fr.paris.lutece.util.ReferenceList findUnselectedPortlets()
          Finds the portlets which have not been selected in the links page
 void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
          Insert the portlet
 void insertLink(int nPortletId, int nLinkId, int nOrder)
          Insert a new record in the table.
 void insertPortlet(int nPortletId, int nOrder)
          Insert a new portlet in the links page
 fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId)
          Load the portlet whose identifier is specified in parameter
 void removeLinkFromPortlets(int nLinkId)
          Removes a link from all the portlets
 void removePortlet(int nPortletId)
          Remove a portlet from the links page
 int selectLinkIdByOrder(int nPortletId, int nOrder)
          Returns the id of an link wich has a specified order in a specified portlet
 int selectLinkOrder(int nPortletId, int nLinkId)
          Return the order of a specified link in a specified portlet
 java.util.Collection<Link> selectLinksInPortletList(int nPortletId)
          Return a list of links wich belong to a specified portlet
 fr.paris.lutece.util.ReferenceList selectLinksList()
          Returns a list of all the links
 int selectMaxOrder(int nPortletId)
          Calculate a new primary key to add a new link
 int selectPortletIdByOrder(int nOrder)
          Selects a portlet Id from the links page by its order
 int selectPortletMaxOrder()
          Returns the maximum order of the portlets in the links page
 int selectPortletOrder(int nPortletId)
          Selects the order of a portlet in the links page
 java.util.Collection<fr.paris.lutece.portal.business.portlet.Portlet> selectPortletsInLinksPage()
          Selects the list of the portlets in the links page
 void store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
          Update the portlet
 void storeLinkOrder(int nOrder, int nPortletId, int nLinkId)
          Update the order of a specified link in a specified portlet
 void storePortletOrder(int nOrder, int nPortletId)
          Stores the order of a portlet in the links page
 boolean testDuplicate(int nPortletId, int nLinkId)
          Check if a specified links is not already registered in a specified portlet
 

Method Detail

insert

void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
Insert the portlet

Specified by:
insert in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
Parameters:
portlet - The Portlet object

insertLink

void insertLink(int nPortletId,
                int nLinkId,
                int nOrder)
Insert a new record in the table.

Parameters:
nPortletId - The identifier of the portlet
nLinkId - The identifier of the link
nOrder - The order of the portlet to insert

deleteLink

void deleteLink(int nPortletId,
                int nLinkId)
Remove a specified link from a specified portlet

Parameters:
nPortletId - The identifier of the portlet
nLinkId - The identifier of the link

delete

void delete(int nPortletId)
Deletes the portlet whose identifier is specified in parameter

Specified by:
delete in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
Parameters:
nPortletId - The identifier of the portlet

load

fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId)
Load the portlet whose identifier is specified in parameter

Specified by:
load in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
Parameters:
nPortletId - the identifier of the portlet
Returns:
The portlet instance

store

void store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
Update the portlet

Specified by:
store in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
Parameters:
portlet - The portlet object

selectLinksList

fr.paris.lutece.util.ReferenceList selectLinksList()
Returns a list of all the links

Returns:
A list of links in form of a ReferenceList object

testDuplicate

boolean testDuplicate(int nPortletId,
                      int nLinkId)
Check if a specified links is not already registered in a specified portlet

Parameters:
nPortletId - The identifier of the portlet
nLinkId - The identifier of the link
Returns:
The result(boolean)

selectLinksInPortletList

java.util.Collection<Link> selectLinksInPortletList(int nPortletId)
Return a list of links wich belong to a specified portlet

Parameters:
nPortletId - The identifier of the portlet
Returns:
A collection of links objects

selectLinkOrder

int selectLinkOrder(int nPortletId,
                    int nLinkId)
Return the order of a specified link in a specified portlet

Parameters:
nPortletId - The identifier of the portlet
nLinkId - The identifier of the link
Returns:
The link's order

selectMaxOrder

int selectMaxOrder(int nPortletId)
Calculate a new primary key to add a new link

Parameters:
nPortletId - The identifier of the portlet
Returns:
The new key.

selectPortletMaxOrder

int selectPortletMaxOrder()
Returns the maximum order of the portlets in the links page

Returns:
the max order

storeLinkOrder

void storeLinkOrder(int nOrder,
                    int nPortletId,
                    int nLinkId)
Update the order of a specified link in a specified portlet

Parameters:
nPortletId - The identifier of the portlet
nLinkId - The identifier of the link
nOrder - The new order

selectLinkIdByOrder

int selectLinkIdByOrder(int nPortletId,
                        int nOrder)
Returns the id of an link wich has a specified order in a specified portlet

Parameters:
nPortletId - The identifier of the portlet
nOrder - The link's order
Returns:
The identifier of the link

findUnselectedPortlets

fr.paris.lutece.util.ReferenceList findUnselectedPortlets()
Finds the portlets which have not been selected in the links page

Returns:
the list of the unselected portlets

selectPortletsInLinksPage

java.util.Collection<fr.paris.lutece.portal.business.portlet.Portlet> selectPortletsInLinksPage()
Selects the list of the portlets in the links page

Returns:
a collection of the unselected portlets

selectPortletOrder

int selectPortletOrder(int nPortletId)
Selects the order of a portlet in the links page

Parameters:
nPortletId - The identifier of the portlet
Returns:
the order

removePortlet

void removePortlet(int nPortletId)
Remove a portlet from the links page

Parameters:
nPortletId - The identifier of the portlet

removeLinkFromPortlets

void removeLinkFromPortlets(int nLinkId)
Removes a link from all the portlets

Parameters:
nLinkId - The identifier of the link

insertPortlet

void insertPortlet(int nPortletId,
                   int nOrder)
Insert a new portlet in the links page

Parameters:
nPortletId - The identifier of the portlet
nOrder - The order of the portlet

selectPortletIdByOrder

int selectPortletIdByOrder(int nOrder)
Selects a portlet Id from the links page by its order

Parameters:
nOrder - The order of the portlet
Returns:
the portlet Id

storePortletOrder

void storePortletOrder(int nOrder,
                       int nPortletId)
Stores the order of a portlet in the links page

Parameters:
nOrder - The order of the portlet
nPortletId - The identifier of the portlet


Copyright © 2009 Mairie de Paris. All Rights Reserved.