public class WhatsNewPortletService extends Object
Constructor and Description |
---|
WhatsNewPortletService() |
Modifier and Type | Method and Description |
---|---|
void |
create(WhatsNewPortlet portlet)
Create a new
WhatsNewPortlet |
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
|
List<PortletDocumentLink> |
getDocumentsFromWhatsNewId(int nWhatsNewPortletId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load all the documents associated to the given whatsnewPortletId
|
static WhatsNewPortletService |
getInstance()
Return the ThemeService singleton
|
List<Integer> |
getPageIdsFromWhatsNewId(int nWhatsNewPortletId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load all page IDs associated to the given whatNewPortletId
|
WhatsNewPortlet |
getPortlet(int nPortletId)
Get the portlet with the given portlet id
|
List<Integer> |
getPortletIdsFromWhatsNewId(int nWhatsNewPortletId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load all portlet IDs associated to the given whatsNewPortletId
|
String |
getPortletTypeId()
Get the portlet type id
|
void |
init()
Init
|
void |
remove(WhatsNewPortlet portlet)
Remove a
WhatsNewPortlet |
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(WhatsNewPortlet whatsNewPortlet,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete all links of a whatsnew portlet to the documents
|
void |
removeModeratedElements(WhatsNewPortlet portlet,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove all the moderated elements from the given portlet
|
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(WhatsNewPortlet whatsNewPortlet,
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(WhatsNewPortlet whatsNewPortlet,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete all links of a whatsnew portlet to the portlets
|
List<WhatsNewPortlet> |
selectAll()
Select all WhatsNewPortlet
|
void |
update(WhatsNewPortlet portlet)
Update a
WhatsNewPortlet |
public static WhatsNewPortletService getInstance()
public void init()
public WhatsNewPortlet getPortlet(int nPortletId)
nPortletId
- the portlet idWhatsNewPortlet
public String getPortletTypeId()
public void create(WhatsNewPortlet portlet)
WhatsNewPortlet
portlet
- a WhatsNewPortlet
public void update(WhatsNewPortlet portlet)
WhatsNewPortlet
portlet
- a WhatsNewPortlet
public void remove(WhatsNewPortlet portlet)
WhatsNewPortlet
portlet
- a WhatsNewPortlet
public List<WhatsNewPortlet> selectAll()
WhatsNewPortlet
public List<Integer> getPageIdsFromWhatsNewId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nWhatsNewPortletId
- the ID of the portletplugin
- Plugin
public List<Integer> getPortletIdsFromWhatsNewId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nWhatsNewPortletId
- the ID of the portletplugin
- Plugin
public List<PortletDocumentLink> getDocumentsFromWhatsNewId(int nWhatsNewPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nWhatsNewPortletId
- the ID of the portletplugin
- Plugin
PortletDocumentLink
public void createModeratedPage(int nWhatsNewPortletId, int nPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nWhatsNewPortletId
- the ID of the portletnPageId
- the page IDplugin
- Plugin
public void createModeratedPortlet(int nWhatsNewPortletId, int nPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nWhatsNewPortletId
- the ID of the whatsnew portletnPortletId
- the ID of the portletplugin
- Plugin
public void createModeratedDocument(int nWhatsNewPortletId, PortletDocumentLink pdLink, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nWhatsNewPortletId
- the ID of the whatsnew portletpdLink
- PortletDocumentLink
plugin
- Plugin
public void removeModeratedElements(WhatsNewPortlet portlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
portlet
- the WhatsNewPortletplugin
- Plugin
public void removeModeratedPages(WhatsNewPortlet whatsNewPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
whatsNewPortlet
- the portletplugin
- Plugin
public void removeModeratedPortlets(WhatsNewPortlet whatsNewPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
whatsNewPortlet
- the portletplugin
- Plugin
public void removeModeratedDocuments(WhatsNewPortlet whatsNewPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
whatsNewPortlet
- the portletplugin
- Plugin
public void removeModeratedPage(int nWhatsNewPortletId, int nPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nWhatsNewPortletId
- the ID of the portletnPageId
- the page IDplugin
- Plugin
public void removeModeratedPortlet(int nWhatsNewPortletId, int nPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nWhatsNewPortletId
- the ID of the whatsnew portletnPortletId
- the ID of the portletplugin
- Plugin
public void removeModeratedDocument(int nWhatsNewPortletId, PortletDocumentLink pdLink, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nWhatsNewPortletId
- the ID of the portletpdLink
- PortletDocumentLink
plugin
- Plugin
Copyright © 2016 City of Paris. All rights reserved.