|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.links.business.portlet.LinksPortletDAO
public final class LinksPortletDAO
This class provides Data Access methods for LinksPortlet objects
| Constructor Summary | |
|---|---|
LinksPortletDAO()
|
|
| Method Summary | |
|---|---|
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 |
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 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LinksPortletDAO()
| Method Detail |
|---|
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 portlet
public 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 insert
public 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 portlet
public 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 ILinksPortletDAO
public boolean testDuplicate(int nPortletId,
int nLinkId)
testDuplicate in interface ILinksPortletDAOnPortletId - The identifier of the portletnLinkId - The identifier of the link
public java.util.Collection<Link> selectLinksInPortletList(int nPortletId)
selectLinksInPortletList in interface ILinksPortletDAOnPortletId - The identifier of the portlet
public int selectLinkOrder(int nPortletId,
int nLinkId)
selectLinkOrder in interface ILinksPortletDAOnPortletId - The identifier of the portletnLinkId - The identifier of the link
public int selectMaxOrder(int nPortletId)
selectMaxOrder in interface ILinksPortletDAOnPortletId - The identifier of the portlet
public int selectPortletMaxOrder()
selectPortletMaxOrder in interface ILinksPortletDAO
public void storeLinkOrder(int nOrder,
int nPortletId,
int nLinkId)
storeLinkOrder in interface ILinksPortletDAOnPortletId - The identifier of the portletnLinkId - The identifier of the linknOrder - The new order
public int selectLinkIdByOrder(int nPortletId,
int nOrder)
selectLinkIdByOrder in interface ILinksPortletDAOnPortletId - The identifier of the portletnOrder - The link's order
public fr.paris.lutece.util.ReferenceList findUnselectedPortlets()
findUnselectedPortlets in interface ILinksPortletDAOpublic java.util.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 portlet
public 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 link
public 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 portlet
public void storePortletOrder(int nOrder,
int nPortletId)
storePortletOrder in interface ILinksPortletDAOnOrder - The order of the portletnPortletId - The identifier of the portlet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||