|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.linkpages.business.portlet.LinkPagesPortletDAO
public class LinkPagesPortletDAO
This class provides Data Access methods for LinkPagesPortlet objects
Constructor Summary | |
---|---|
LinkPagesPortletDAO()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinkPagesPortletDAO()
Method Detail |
---|
public void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
insert
in interface ILinkPagesPortletDAO
insert
in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
public void delete(int nPortletId)
delete
in interface ILinkPagesPortletDAO
delete
in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
nPortletId
- Identifier portletpublic fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId)
load
in interface ILinkPagesPortletDAO
load
in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
nPortletId
- The LinkdPagesPortlet identifier
public void store(fr.paris.lutece.portal.business.portlet.Portlet portlet) throws fr.paris.lutece.portal.service.util.AppException
store
in interface ILinkPagesPortletDAO
store
in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
fr.paris.lutece.portal.service.util.AppException
public fr.paris.lutece.util.ReferenceList selectLinkPagesList()
selectLinkPagesList
in interface ILinkPagesPortletDAO
public int selectMaxOrder(int nPortletId)
selectMaxOrder
in interface ILinkPagesPortletDAO
nPortletId
- The identifier of the portlet
public java.util.List<fr.paris.lutece.portal.business.page.Page> selectLinkPagesInPortletList(int nPortletId)
selectLinkPagesInPortletList
in interface ILinkPagesPortletDAO
nPortletId
- The identifier of the portlet
public int selectLinkPageOrder(int nPortletId, int nPageId)
selectLinkPageOrder
in interface ILinkPagesPortletDAO
nPortletId
- The identifier of the portlet to checknPageId
- The identifier of the page
public int selectLinkPageIdByOrder(int nPortletId, int nOrder)
selectLinkPageIdByOrder
in interface ILinkPagesPortletDAO
nPortletId
- The identifier of the portletnOrder
- The link page's order
public void storeLinkPageOrder(int nOrder, int nPortletId, int nLinkPageId)
storeLinkPageOrder
in interface ILinkPagesPortletDAO
nPortletId
- The identifier of the portletnLinkPageId
- The identifier of the link pagenOrder
- The new orderpublic void deleteLinkPage(int nPortletId, int nLinkPageId)
deleteLinkPage
in interface ILinkPagesPortletDAO
nPortletId
- The identifier of the portletnLinkPageId
- The identifier of the link pagepublic void deleteAllLinkPages(int nPortletId)
deleteAllLinkPages
in interface ILinkPagesPortletDAO
nPortletId
- The identifier of the portletpublic boolean testDuplicate(int nPortletId, int nLinkPageId)
testDuplicate
in interface ILinkPagesPortletDAO
nPortletId
- The identifier of the portletnLinkPageId
- The identifier of the link page
public void insertLinkPage(int nPortletId, int nLinkPageId, int nOrder)
insertLinkPage
in interface ILinkPagesPortletDAO
nPortletId
- The identifier of the portletnLinkPageId
- The identifier of the link pagenOrder
- The order of the portlet to insert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |