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 -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateModeratedDocument(int nWhatsNewPortletId, PortletDocumentLink pdLink, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a link between a document and a whatsnew portletvoidcreateModeratedPage(int nWhatsNewPortletId, int nPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a link between a whatsnew portlet and a pagevoidcreateModeratedPortlet(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.IPortletInterfaceDAOgetDAO()Returns the instance of the WhatsNewPortletDAO singletongetDocumentsFromWhatsNewId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load all the documents associated to the given whatsnewPortletIdstatic WhatsNewPortletHomeReturns the instance of the WhatsNewPortletHome singletongetPageIdsFromWhatsNewId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load all page IDs associated to the given whatNewPortletIdgetPortletIdsFromWhatsNewId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load all portlet IDs associated to the given whatsNewPortletIdReturns the type of the portletvoidremoveModeratedDocument(int nWhatsNewPortletId, PortletDocumentLink pdLink, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a link between a whatsnew portlet and a documentvoidremoveModeratedDocuments(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all links of a whatsnew portlet to the documentsvoidremoveModeratedPage(int nWhatsNewPortletId, int nPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a link between a whatsnew portlet and a pagevoidremoveModeratedPages(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all links of a whatsnew portlet to the pagesvoidremoveModeratedPortlet(int nWhatsNewPortletId, int nPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a link between a whatsnew portlet and a portletvoidremoveModeratedPortlets(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all links of a whatsnew portlet to the portletsSelect all WhatsNewPortletMethods 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
-
Constructor Details
-
WhatsNewPortletHome
public WhatsNewPortletHome()Constructor
-
-
Method Details
-
getInstance
Returns the instance of the WhatsNewPortletHome singleton- Returns:
- the WhatsNewPortletHome instance
-
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
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 portletplugin-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 portletplugin-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 portletplugin-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 portletnPageId- the page IDplugin-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 portletnPortletId- the ID of the portletplugin-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 portletpdLink-PortletDocumentLinkplugin-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 portletplugin-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 portletplugin-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 portletplugin-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 portletnPageId- the page IDplugin-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 portletnPortletId- the ID of the portletplugin-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 portletpdLink-PortletDocumentLinkplugin-Plugin
-