fr.paris.lutece.plugins.whatsnew.business.portlet
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
 void delete(int nPortletId)
          Delete a record from the table
 void deleteDocumentsFromWhatsNew(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete all links of a whatsnew portlet to the documents
 void deleteLinkWhatsNewPortletToDocument(int nWhatsNewPortletId, PortletDocumentLink pdLink, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a link between a whatsnew portlet and a document
 void deleteLinkWhatsNewPortletToPage(int nWhatsNewPortletId, int nPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a link between a whatsnew portlet and a page
 void deleteLinkWhatsNewPortletToPortlet(int nWhatsNewPortletId, int nPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a link between a whatsnew portlet and a portlet
 void deletePagesFromWhatsNew(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete all links of a whatsnew portlet to the pages
 void deletePortletsFromWhatsNew(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete all links of a whatsnew portlet to the portlets
 java.util.List<WhatsNewPortlet> findAll()
          Find all WhatsNew portlets
 void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
          Insert a new record in the table whatsnew_portlet
 void insertDocumentForWhatsNew(int nWhatsNewId, PortletDocumentLink pdLink, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a link between a document and a whatsnew portlet
 void insertPageForWhatsNew(int nWhatsNewPortletId, int nPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a link between a whatsnew portlet and a page
 void insertPortletForWhatsNew(int nWhatsNewPortletId, int nPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a link between a whatsnew portlet and a portlet
 fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId)
          Loads the data of What's new Portlet whose identifier is specified in parameter
 java.util.List<PortletDocumentLink> loadDocumentFromWhatsNewPortletId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load all the documents associated to the given whatsnewPortletId
 java.util.List<java.lang.Integer> loadPageIdsFromWhatsNewPortletId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load all page IDs associated to the given whatNewPortletId
 java.util.List<java.lang.Integer> loadPortletIdsFromWhatsNewPortletId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load all portlet IDs associated to the given whatsNewPortletId
 void store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
          Update the record in the table
 

Method Detail

delete

void delete(int nPortletId)
Delete a record from the table

Specified by:
delete in interface fr.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:
insert in interface fr.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:
load in interface fr.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:
store in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
Parameters:
portlet - The instance of the object portlet

findAll

java.util.List<WhatsNewPortlet> findAll()
Find all WhatsNew portlets

Returns:
a list of WhatsNewPortlet

loadPageIdsFromWhatsNewPortletId

java.util.List<java.lang.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 portlet
plugin - 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 portlet
nPageId - the page ID
plugin - 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 portlet
plugin - 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 portlet
nPageId - the page ID
plugin - Plugin

loadPortletIdsFromWhatsNewPortletId

java.util.List<java.lang.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 portlet
plugin - 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 portlet
nPortletId - the ID of the portlet
plugin - 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 portlet
plugin - 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 portlet
nPortletId - the ID of the portlet
plugin - Plugin

loadDocumentFromWhatsNewPortletId

java.util.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 portlet
plugin - 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 portlet
pdLink - PortletDocumentLink
plugin - 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 portlet
plugin - 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 portlet
pdLink - PortletDocumentLink
plugin - Plugin


Copyright © 2011 Mairie de Paris. All Rights Reserved.