Interface IWhatsNewPortletDAO
- All Superinterfaces:
fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
- All Known Implementing Classes:
WhatsNewPortletDAO
public interface IWhatsNewPortletDAO
extends fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
IWhatsNewPortletDAO
-
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 portletsfindAll()Find all WhatsNew portletsvoidinsert(fr.paris.lutece.portal.business.portlet.Portlet portlet) Insert a new record in the table whatsnew_portletvoidinsertDocumentForWhatsNew(int nWhatsNewId, 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
-
Method Details
-
delete
void delete(int nPortletId) Delete a record from the table- Specified by:
deletein interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
nPortletId- The identifier of the portlet
-
insert
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- Parameters:
portlet- the instance of the Portlet object to insert
-
load
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- Parameters:
nPortletId- The Portlet identifier- Returns:
- the whatsNew object
-
store
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- Parameters:
portlet- The instance of the object portlet
-
findAll
List<WhatsNewPortlet> findAll()Find all WhatsNew portlets- Returns:
- a list of
WhatsNewPortlet
-
loadPageIdsFromWhatsNewPortletId
List<Integer> loadPageIdsFromWhatsNewPortletId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load all page IDs associated to the given whatNewPortletId- Parameters:
nWhatsNewPortletId- the ID of the portletplugin-Plugin- Returns:
- a list of page IDs
-
insertPageForWhatsNew
void insertPageForWhatsNew(int nWhatsNewPortletId, int nPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a link between a whatsnew portlet and a page- Parameters:
nWhatsNewPortletId- the ID of the portletnPageId- the page IDplugin-Plugin
-
deletePagesFromWhatsNew
void deletePagesFromWhatsNew(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all links of a whatsnew portlet to the pages- Parameters:
nWhatsNewPortletId- the ID of the portletplugin-Plugin
-
deleteLinkWhatsNewPortletToPage
void deleteLinkWhatsNewPortletToPage(int nWhatsNewPortletId, int nPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a link between a whatsnew portlet and a page- Parameters:
nWhatsNewPortletId- the ID of the portletnPageId- the page IDplugin-Plugin
-
loadPortletIdsFromWhatsNewPortletId
List<Integer> loadPortletIdsFromWhatsNewPortletId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load all portlet IDs associated to the given whatsNewPortletId- Parameters:
nWhatsNewPortletId- the ID of the portletplugin-Plugin- Returns:
- a list of portlet IDs
-
insertPortletForWhatsNew
void insertPortletForWhatsNew(int nWhatsNewPortletId, int nPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a link between a whatsnew portlet and a portlet- Parameters:
nWhatsNewPortletId- the ID of the whatsnew portletnPortletId- the ID of the portletplugin-Plugin
-
deletePortletsFromWhatsNew
void deletePortletsFromWhatsNew(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all links of a whatsnew portlet to the portlets- Parameters:
nWhatsNewPortletId- the ID of the whatsnew portletplugin-Plugin
-
deleteLinkWhatsNewPortletToPortlet
void deleteLinkWhatsNewPortletToPortlet(int nWhatsNewPortletId, int nPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a link between a whatsnew portlet and a portlet- Parameters:
nWhatsNewPortletId- the ID of the whatsnew portletnPortletId- the ID of the portletplugin-Plugin
-
loadDocumentFromWhatsNewPortletId
List<PortletDocumentLink> loadDocumentFromWhatsNewPortletId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load all the documents associated to the given whatsnewPortletId- Parameters:
nWhatsNewPortletId- the ID of the portletplugin-Plugin- Returns:
- a list of
PortletDocumentLink
-
insertDocumentForWhatsNew
void insertDocumentForWhatsNew(int nWhatsNewId, PortletDocumentLink pdLink, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a link between a document and a whatsnew portlet- Parameters:
nWhatsNewId- the ID of the whatsnew portletpdLink-PortletDocumentLinkplugin-Plugin
-
deleteDocumentsFromWhatsNew
void deleteDocumentsFromWhatsNew(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all links of a whatsnew portlet to the documents- Parameters:
nWhatsNewPortletId- the ID of the portletplugin-Plugin
-
deleteLinkWhatsNewPortletToDocument
void deleteLinkWhatsNewPortletToDocument(int nWhatsNewPortletId, PortletDocumentLink pdLink, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a link between a whatsnew portlet and a document- Parameters:
nWhatsNewPortletId- the ID of the portletpdLink-PortletDocumentLinkplugin-Plugin
-