Class WhatsNewPortletDAO
java.lang.Object
fr.paris.lutece.plugins.whatsnew.business.portlet.WhatsNewPortletDAO
- All Implemented Interfaces:
IWhatsNewPortletDAO,fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
WhatsNewPortletDAO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nPortletId) Delete a record from the tablevoiddeleteDocumentsFromWhatsNew(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all links of a whatsnew portlet to the documentsvoiddeleteLinkWhatsNewPortletToDocument(int nWhatsNewPortletId, PortletDocumentLink pdLink, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a link between a whatsnew portlet and a documentvoiddeleteLinkWhatsNewPortletToPage(int nWhatsNewPortletId, int nPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a link between a whatsnew portlet and a pagevoiddeleteLinkWhatsNewPortletToPortlet(int nWhatsNewPortletId, int nPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a link between a whatsnew portlet and a portletvoiddeletePagesFromWhatsNew(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all links of a whatsnew portlet to the pagesvoiddeletePortletsFromWhatsNew(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all links of a whatsnew portlet to the portletsvoiddeleteWhatsNewFromDocument(PortletDocumentLink pdLink, fr.paris.lutece.portal.service.plugin.Plugin plugin) voiddeleteWhatsNewFromPage(int nPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin) voiddeleteWhatsNewFromPortlet(int nPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) findAll()Find all WhatsNew portletsvoidinsert(fr.paris.lutece.portal.business.portlet.Portlet portlet) Insert a new record in the table whatsnew_portletvoidinsertDocumentForWhatsNew(int nWhatsNewPortletId, PortletDocumentLink pdLink, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a link between a document and a whatsnew portletvoidinsertPageForWhatsNew(int nWhatsNewPortletId, int nPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a link between a whatsnew portlet and a pagevoidinsertPortletForWhatsNew(int nWhatsNewPortletId, int nPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a link between a whatsnew portlet and a portletfr.paris.lutece.portal.business.portlet.Portletload(int nPortletId) Loads the data of What's new Portlet whose identifier is specified in parameterloadDocumentFromWhatsNewPortletId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load all the documents associated to the given whatsnewPortletIdloadPageIdsFromWhatsNewPortletId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load all page IDs associated to the given whatNewPortletIdloadPortletIdsFromWhatsNewPortletId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load all portlet IDs associated to the given whatsNewPortletIdvoidstore(fr.paris.lutece.portal.business.portlet.Portlet portlet) Update the record in the table
-
Constructor Details
-
WhatsNewPortletDAO
public WhatsNewPortletDAO()
-
-
Method Details
-
insert
public void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet) Insert a new record in the table whatsnew_portlet- Specified by:
insertin interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Specified by:
insertin interfaceIWhatsNewPortletDAO- Parameters:
portlet- the instance of the Portlet object to insert
-
delete
public void delete(int nPortletId) Delete a record from the table- Specified by:
deletein interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Specified by:
deletein interfaceIWhatsNewPortletDAO- Parameters:
nPortletId- The identifier of the portlet
-
load
public fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId) Loads the data of What's new Portlet whose identifier is specified in parameter- Specified by:
loadin interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Specified by:
loadin interfaceIWhatsNewPortletDAO- Parameters:
nPortletId- The Portlet identifier- Returns:
- the whatsNew object
-
store
public void store(fr.paris.lutece.portal.business.portlet.Portlet portlet) Update the record in the table- Specified by:
storein interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Specified by:
storein interfaceIWhatsNewPortletDAO- Parameters:
portlet- The instance of the object portlet
-
findAll
Find all WhatsNew portlets- Specified by:
findAllin interfaceIWhatsNewPortletDAO- Returns:
- a list of
WhatsNewPortlet
-
loadPageIdsFromWhatsNewPortletId
public List<Integer> loadPageIdsFromWhatsNewPortletId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load all page IDs associated to the given whatNewPortletId- Specified by:
loadPageIdsFromWhatsNewPortletIdin interfaceIWhatsNewPortletDAO- Parameters:
nWhatsNewPortletId- the ID of the portletplugin-Plugin- Returns:
- a list of page IDs
-
insertPageForWhatsNew
public void insertPageForWhatsNew(int nWhatsNewPortletId, int nPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a link between a whatsnew portlet and a page- Specified by:
insertPageForWhatsNewin interfaceIWhatsNewPortletDAO- Parameters:
nWhatsNewPortletId- the ID of the portletnPageId- the page IDplugin-Plugin
-
deletePagesFromWhatsNew
public void deletePagesFromWhatsNew(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all links of a whatsnew portlet to the pages- Specified by:
deletePagesFromWhatsNewin interfaceIWhatsNewPortletDAO- Parameters:
nWhatsNewPortletId- the ID of the portletplugin-Plugin
-
deleteWhatsNewFromPage
public void deleteWhatsNewFromPage(int nPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin) -
deleteLinkWhatsNewPortletToPage
public void deleteLinkWhatsNewPortletToPage(int nWhatsNewPortletId, int nPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a link between a whatsnew portlet and a page- Specified by:
deleteLinkWhatsNewPortletToPagein interfaceIWhatsNewPortletDAO- Parameters:
nWhatsNewPortletId- the ID of the portletnPageId- the page IDplugin-Plugin
-
loadPortletIdsFromWhatsNewPortletId
public List<Integer> loadPortletIdsFromWhatsNewPortletId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load all portlet IDs associated to the given whatsNewPortletId- Specified by:
loadPortletIdsFromWhatsNewPortletIdin interfaceIWhatsNewPortletDAO- Parameters:
nWhatsNewPortletId- the ID of the portletplugin-Plugin- Returns:
- a list of portlet IDs
-
insertPortletForWhatsNew
public void insertPortletForWhatsNew(int nWhatsNewPortletId, int nPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a link between a whatsnew portlet and a portlet- Specified by:
insertPortletForWhatsNewin interfaceIWhatsNewPortletDAO- Parameters:
nWhatsNewPortletId- the ID of the whatsnew portletnPortletId- the ID of the portletplugin-Plugin
-
deletePortletsFromWhatsNew
public void deletePortletsFromWhatsNew(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all links of a whatsnew portlet to the portlets- Specified by:
deletePortletsFromWhatsNewin interfaceIWhatsNewPortletDAO- Parameters:
nWhatsNewPortletId- the ID of the whatsnew portletplugin-Plugin
-
deleteWhatsNewFromPortlet
public void deleteWhatsNewFromPortlet(int nPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) -
deleteLinkWhatsNewPortletToPortlet
public void deleteLinkWhatsNewPortletToPortlet(int nWhatsNewPortletId, int nPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a link between a whatsnew portlet and a portlet- Specified by:
deleteLinkWhatsNewPortletToPortletin interfaceIWhatsNewPortletDAO- Parameters:
nWhatsNewPortletId- the ID of the whatsnew portletnPortletId- the ID of the portletplugin-Plugin
-
loadDocumentFromWhatsNewPortletId
public List<PortletDocumentLink> loadDocumentFromWhatsNewPortletId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load all the documents associated to the given whatsnewPortletId- Specified by:
loadDocumentFromWhatsNewPortletIdin interfaceIWhatsNewPortletDAO- Parameters:
nWhatsNewPortletId- the ID of the portletplugin-Plugin- Returns:
- a list of
PortletDocumentLink
-
insertDocumentForWhatsNew
public void insertDocumentForWhatsNew(int nWhatsNewPortletId, PortletDocumentLink pdLink, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a link between a document and a whatsnew portlet- Specified by:
insertDocumentForWhatsNewin interfaceIWhatsNewPortletDAO- Parameters:
nWhatsNewPortletId- the ID of the whatsnew portletpdLink-PortletDocumentLinkplugin-Plugin
-
deleteDocumentsFromWhatsNew
public void deleteDocumentsFromWhatsNew(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all links of a whatsnew portlet to the documents- Specified by:
deleteDocumentsFromWhatsNewin interfaceIWhatsNewPortletDAO- Parameters:
nWhatsNewPortletId- the ID of the portletplugin-Plugin
-
deleteWhatsNewFromDocument
public void deleteWhatsNewFromDocument(PortletDocumentLink pdLink, fr.paris.lutece.portal.service.plugin.Plugin plugin) -
deleteLinkWhatsNewPortletToDocument
public void deleteLinkWhatsNewPortletToDocument(int nWhatsNewPortletId, PortletDocumentLink pdLink, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a link between a whatsnew portlet and a document- Specified by:
deleteLinkWhatsNewPortletToDocumentin interfaceIWhatsNewPortletDAO- Parameters:
nWhatsNewPortletId- the ID of the portletpdLink-PortletDocumentLinkplugin-Plugin
-