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

java.lang.Object
  extended by fr.paris.lutece.portal.business.portlet.PortletHome
      extended by fr.paris.lutece.plugins.whatsnew.business.portlet.WhatsNewPortletHome
All Implemented Interfaces:
fr.paris.lutece.portal.business.portlet.PortletHomeInterface

public class WhatsNewPortletHome
extends fr.paris.lutece.portal.business.portlet.PortletHome

WhatsNewPortletHome


Constructor Summary
WhatsNewPortletHome()
          Constructor
 
Method Summary
 void createModeratedDocument(int nWhatsNewPortletId, PortletDocumentLink pdLink, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a link between a document and a whatsnew portlet
 void createModeratedPage(int nWhatsNewPortletId, int nPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a link between a whatsnew portlet and a page
 void createModeratedPortlet(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.IPortletInterfaceDAO getDAO()
          Returns the instance of the WhatsNewPortletDAO singleton
 java.util.List<PortletDocumentLink> getDocumentsFromWhatsNewId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load all the documents associated to the given whatsnewPortletId
static WhatsNewPortletHome getInstance()
          Returns the instance of the WhatsNewPortletHome singleton
 java.util.List<java.lang.Integer> getPageIdsFromWhatsNewId(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> getPortletIdsFromWhatsNewId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load all portlet IDs associated to the given whatsNewPortletId
 java.lang.String getPortletTypeId()
          Returns the type of the portlet
 void removeModeratedDocument(int nWhatsNewPortletId, PortletDocumentLink pdLink, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a link between a whatsnew portlet and a document
 void removeModeratedDocuments(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete all links of a whatsnew portlet to the documents
 void removeModeratedPage(int nWhatsNewPortletId, int nPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a link between a whatsnew portlet and a page
 void removeModeratedPages(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete all links of a whatsnew portlet to the pages
 void removeModeratedPortlet(int nWhatsNewPortletId, int nPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a link between a whatsnew portlet and a portlet
 void removeModeratedPortlets(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete all links of a whatsnew portlet to the portlets
 java.util.List<WhatsNewPortlet> selectAll()
          Select all WhatsNewPortlet
 
Methods inherited from class fr.paris.lutece.portal.business.portlet.PortletHome
create, findByPrimaryKey, findByType, getAliasList, getLastModifiedPortlet, getPortletListByStyle, getPortletsByRoleKey, getPortletsListbyName, getPortletType, getStylesList, hasAlias, invalidate, invalidate, remove, update, updateStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhatsNewPortletHome

public WhatsNewPortletHome()
Constructor

Method Detail

getInstance

public static WhatsNewPortletHome getInstance()
Returns the instance of the WhatsNewPortletHome singleton

Returns:
the WhatsNewPortletHome instance

getPortletTypeId

public java.lang.String getPortletTypeId()
Returns the type of the portlet

Returns:
The type of the portlet

getDAO

public fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO getDAO()
Returns the instance of the WhatsNewPortletDAO singleton

Returns:
the instance of the WhatsNewPortletDAO

selectAll

public java.util.List<WhatsNewPortlet> selectAll()
Select all WhatsNewPortlet

Returns:
a list of WhatsNewPortlet

getPageIdsFromWhatsNewId

public java.util.List<java.lang.Integer> getPageIdsFromWhatsNewId(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

getPortletIdsFromWhatsNewId

public java.util.List<java.lang.Integer> getPortletIdsFromWhatsNewId(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

getDocumentsFromWhatsNewId

public java.util.List<PortletDocumentLink> getDocumentsFromWhatsNewId(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

createModeratedPage

public void createModeratedPage(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

createModeratedPortlet

public void createModeratedPortlet(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

createModeratedDocument

public void createModeratedDocument(int nWhatsNewPortletId,
                                    PortletDocumentLink pdLink,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a link between a document and a whatsnew portlet

Parameters:
nWhatsNewPortletId - the ID of the whatsnew portlet
pdLink - PortletDocumentLink
plugin - Plugin

removeModeratedPages

public void removeModeratedPages(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

removeModeratedPortlets

public void removeModeratedPortlets(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

removeModeratedDocuments

public void removeModeratedDocuments(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

removeModeratedPage

public void removeModeratedPage(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

removeModeratedPortlet

public void removeModeratedPortlet(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

removeModeratedDocument

public void removeModeratedDocument(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.