fr.paris.lutece.plugins.whatsnew.business.portlet
Class WhatsNewPortletDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.whatsnew.business.portlet.WhatsNewPortletDAO
All Implemented Interfaces:
IWhatsNewPortletDAO, fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO

public final class WhatsNewPortletDAO
extends Object
implements IWhatsNewPortletDAO

WhatsNewPortletDAO


Constructor Summary
WhatsNewPortletDAO()
           
 
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
 void deleteWhatsNewFromDocument(PortletDocumentLink pdLink, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          
 void deleteWhatsNewFromPage(int nPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          
 void deleteWhatsNewFromPortlet(int nPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          
 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 nWhatsNewPortletId, 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
 List<PortletDocumentLink> loadDocumentFromWhatsNewPortletId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load all the documents associated to the given whatsnewPortletId
 List<Integer> loadPageIdsFromWhatsNewPortletId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load all page IDs associated to the given whatNewPortletId
 List<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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhatsNewPortletDAO

public WhatsNewPortletDAO()
Method Detail

insert

public void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
Insert a new record in the table whatsnew_portlet

Specified by:
insert in interface IWhatsNewPortletDAO
Specified by:
insert in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
Parameters:
portlet - the instance of the Portlet object to insert

delete

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

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

findAll

public List<WhatsNewPortlet> findAll()
Find all WhatsNew portlets

Specified by:
findAll in interface IWhatsNewPortletDAO
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:
loadPageIdsFromWhatsNewPortletId in interface IWhatsNewPortletDAO
Parameters:
nWhatsNewPortletId - the ID of the portlet
plugin - 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:
insertPageForWhatsNew in interface IWhatsNewPortletDAO
Parameters:
nWhatsNewPortletId - the ID of the portlet
nPageId - the page ID
plugin - 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:
deletePagesFromWhatsNew in interface IWhatsNewPortletDAO
Parameters:
nWhatsNewPortletId - the ID of the portlet
plugin - 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:
deleteLinkWhatsNewPortletToPage in interface IWhatsNewPortletDAO
Parameters:
nWhatsNewPortletId - the ID of the portlet
nPageId - the page ID
plugin - 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:
loadPortletIdsFromWhatsNewPortletId in interface IWhatsNewPortletDAO
Parameters:
nWhatsNewPortletId - the ID of the portlet
plugin - 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:
insertPortletForWhatsNew in interface IWhatsNewPortletDAO
Parameters:
nWhatsNewPortletId - the ID of the whatsnew portlet
nPortletId - the ID of the portlet
plugin - 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:
deletePortletsFromWhatsNew in interface IWhatsNewPortletDAO
Parameters:
nWhatsNewPortletId - the ID of the whatsnew portlet
plugin - 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:
deleteLinkWhatsNewPortletToPortlet in interface IWhatsNewPortletDAO
Parameters:
nWhatsNewPortletId - the ID of the whatsnew portlet
nPortletId - the ID of the portlet
plugin - 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:
loadDocumentFromWhatsNewPortletId in interface IWhatsNewPortletDAO
Parameters:
nWhatsNewPortletId - the ID of the portlet
plugin - 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:
insertDocumentForWhatsNew in interface IWhatsNewPortletDAO
Parameters:
nWhatsNewPortletId - the ID of the whatsnew portlet
pdLink - PortletDocumentLink
plugin - 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:
deleteDocumentsFromWhatsNew in interface IWhatsNewPortletDAO
Parameters:
nWhatsNewPortletId - the ID of the portlet
plugin - 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:
deleteLinkWhatsNewPortletToDocument in interface IWhatsNewPortletDAO
Parameters:
nWhatsNewPortletId - the ID of the portlet
pdLink - PortletDocumentLink
plugin - Plugin


Copyright © 2013 Mairie de Paris. All Rights Reserved.