public final class LinksPortletDAO extends Object implements ILinksPortletDAO
| Constructor and Description |
|---|
LinksPortletDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nPortletId)
Delete a record from the table
|
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 a new record in the table.
|
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)
Gets the data from database
|
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
|
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
|
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 record in the table
|
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
|
public void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
insert in interface ILinksPortletDAOinsert in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAOportlet - The identifier of the portletpublic void insertLink(int nPortletId,
int nLinkId,
int nOrder)
insertLink in interface ILinksPortletDAOnPortletId - The identifier of the portletnLinkId - The identifier of the linknOrder - The order of the portlet to insertpublic void deleteLink(int nPortletId,
int nLinkId)
deleteLink in interface ILinksPortletDAOnPortletId - The identifier of the portletnLinkId - The identifier of the linkpublic void delete(int nPortletId)
delete in interface ILinksPortletDAOdelete in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAOnPortletId - The identifier of the portletpublic fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId)
load in interface ILinksPortletDAOload in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAOnPortletId - The identifier of the portletpublic void store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
store in interface ILinksPortletDAOstore in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAOportlet - The instance of the object portletpublic fr.paris.lutece.util.ReferenceList selectLinksList()
selectLinksList in interface ILinksPortletDAOpublic boolean testDuplicate(int nPortletId,
int nLinkId)
testDuplicate in interface ILinksPortletDAOnPortletId - The identifier of the portletnLinkId - The identifier of the linkpublic Collection<Link> selectLinksInPortletList(int nPortletId)
selectLinksInPortletList in interface ILinksPortletDAOnPortletId - The identifier of the portletpublic int selectLinkOrder(int nPortletId,
int nLinkId)
selectLinkOrder in interface ILinksPortletDAOnPortletId - The identifier of the portletnLinkId - The identifier of the linkpublic int selectMaxOrder(int nPortletId)
selectMaxOrder in interface ILinksPortletDAOnPortletId - The identifier of the portletpublic int selectPortletMaxOrder()
selectPortletMaxOrder in interface ILinksPortletDAOpublic void storeLinkOrder(int nOrder,
int nPortletId,
int nLinkId)
storeLinkOrder in interface ILinksPortletDAOnPortletId - The identifier of the portletnLinkId - The identifier of the linknOrder - The new orderpublic int selectLinkIdByOrder(int nPortletId,
int nOrder)
selectLinkIdByOrder in interface ILinksPortletDAOnPortletId - The identifier of the portletnOrder - The link's orderpublic fr.paris.lutece.util.ReferenceList findUnselectedPortlets()
findUnselectedPortlets in interface ILinksPortletDAOpublic Collection<fr.paris.lutece.portal.business.portlet.Portlet> selectPortletsInLinksPage()
selectPortletsInLinksPage in interface ILinksPortletDAOpublic int selectPortletOrder(int nPortletId)
selectPortletOrder in interface ILinksPortletDAOnPortletId - The identifier of the portletpublic void removePortlet(int nPortletId)
removePortlet in interface ILinksPortletDAOnPortletId - The identifier of the portletpublic void removeLinkFromPortlets(int nLinkId)
removeLinkFromPortlets in interface ILinksPortletDAOnLinkId - The identifier of the linkpublic void insertPortlet(int nPortletId,
int nOrder)
insertPortlet in interface ILinksPortletDAOnPortletId - The identifier of the portletnOrder - The order of the portletpublic int selectPortletIdByOrder(int nOrder)
selectPortletIdByOrder in interface ILinksPortletDAOnOrder - The order of the portletpublic void storePortletOrder(int nOrder,
int nPortletId)
storePortletOrder in interface ILinksPortletDAOnOrder - The order of the portletnPortletId - The identifier of the portletCopyright © 2021 City of Paris. All rights reserved.