Class WhatsNewPortletService
java.lang.Object
fr.paris.lutece.plugins.whatsnew.service.portlet.WhatsNewPortletService
WhatsNewPortletService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(WhatsNewPortlet portlet) Create a newWhatsNewPortletvoidcreateModeratedDocument(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 portletgetDocumentsFromWhatsNewId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load all the documents associated to the given whatsnewPortletIdstatic WhatsNewPortletServiceReturn the ThemeService singletongetPageIdsFromWhatsNewId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load all page IDs associated to the given whatNewPortletIdgetPortlet(int nPortletId) Get the portlet with the given portlet idgetPortletIdsFromWhatsNewId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load all portlet IDs associated to the given whatsNewPortletIdGet the portlet type idvoidinit()Initvoidremove(WhatsNewPortlet portlet) Remove aWhatsNewPortletvoidremoveModeratedDocument(int nWhatsNewPortletId, PortletDocumentLink pdLink, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a link between a whatsnew portlet and a documentvoidremoveModeratedDocuments(WhatsNewPortlet whatsNewPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all links of a whatsnew portlet to the documentsvoidremoveModeratedElements(WhatsNewPortlet portlet, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove all the moderated elements from the given portletvoidremoveModeratedPage(int nWhatsNewPortletId, int nPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a link between a whatsnew portlet and a pagevoidremoveModeratedPages(WhatsNewPortlet whatsNewPortlet, 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(WhatsNewPortlet whatsNewPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all links of a whatsnew portlet to the portletsSelect all WhatsNewPortletvoidupdate(WhatsNewPortlet portlet) Update aWhatsNewPortlet
-
Constructor Details
-
WhatsNewPortletService
public WhatsNewPortletService()
-
-
Method Details
-
getInstance
Return the ThemeService singleton- Returns:
- the ThemeService singleton
-
init
public void init()Init -
getPortlet
Get the portlet with the given portlet id- Parameters:
nPortletId- the portlet id- Returns:
- a
WhatsNewPortlet
-
getPortletTypeId
Get the portlet type id- Returns:
- the portlet type id
-
create
Create a newWhatsNewPortlet- Parameters:
portlet- aWhatsNewPortlet
-
update
Update aWhatsNewPortlet- Parameters:
portlet- aWhatsNewPortlet
-
remove
Remove aWhatsNewPortlet- Parameters:
portlet- aWhatsNewPortlet
-
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
-
removeModeratedElements
public void removeModeratedElements(WhatsNewPortlet portlet, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove all the moderated elements from the given portlet- Parameters:
portlet- the WhatsNewPortletplugin-Plugin
-
removeModeratedPages
public void removeModeratedPages(WhatsNewPortlet whatsNewPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all links of a whatsnew portlet to the pages- Parameters:
whatsNewPortlet- the portletplugin-Plugin
-
removeModeratedPortlets
public void removeModeratedPortlets(WhatsNewPortlet whatsNewPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all links of a whatsnew portlet to the portlets- Parameters:
whatsNewPortlet- the portletplugin-Plugin
-
removeModeratedDocuments
public void removeModeratedDocuments(WhatsNewPortlet whatsNewPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all links of a whatsnew portlet to the documents- Parameters:
whatsNewPortlet- 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
-