Class WhatsNewPortletHome

java.lang.Object
fr.paris.lutece.portal.business.portlet.PortletHome
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

    Constructors
    Constructor
    Description
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    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
    Returns the instance of the WhatsNewPortletDAO singleton
    getDocumentsFromWhatsNewId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load all the documents associated to the given whatsnewPortletId
    Returns the instance of the WhatsNewPortletHome singleton
    getPageIdsFromWhatsNewId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load all page IDs associated to the given whatNewPortletId
    getPortletIdsFromWhatsNewId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load all portlet IDs associated to the given whatsNewPortletId
    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
    Select all WhatsNewPortlet

    Methods inherited from class fr.paris.lutece.portal.business.portlet.PortletHome

    create, findByPrimaryKey, findByType, getAliasList, getLastModifiedPortlet, getPortletListByStyle, getPortletsByRoleKey, getPortletsListbyName, getPortletType, getStylesList, getUsedOrdersForColumns, getXslFile, getXslSource, hasAlias, invalidate, invalidate, notifyListeners, remove, update, updatePosition, updateStatus

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WhatsNewPortletHome

      public WhatsNewPortletHome()
      Constructor
  • Method Details

    • getInstance

      public static WhatsNewPortletHome getInstance()
      Returns the instance of the WhatsNewPortletHome singleton
      Returns:
      the WhatsNewPortletHome instance
    • getPortletTypeId

      public 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 List<WhatsNewPortlet> selectAll()
      Select all WhatsNewPortlet
      Returns:
      a list of WhatsNewPortlet
    • getPageIdsFromWhatsNewId

      public List<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 List<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 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