public final class NewsletterBlogHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
associateNewsLetterDocumentCategory(int nTopicId,
int nDocumentTagId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Associate a blogs category to a newsletter topic
|
static void |
associateNewsLetterDocumentPortlet(int nTopicId,
int nPortletId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Associate a new portlet to a newsletter topic
|
static void |
createDocumentTopic(NewsletterBlog topic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new newsletter blogs topic into the database
|
static void |
deleteDocumentTopic(int nIdTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a newsletter blogs topic from the database
|
static NewsletterBlog |
findByPrimaryKey(int nIdTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get a newsletter blogs topic from its id
|
static int[] |
findNewsletterPortletsIds(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of blogs list portlets linked to the newsletter
|
static int[] |
findNewsletterTagIds(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of categories of the newsletter
|
static boolean |
findTemplate(int nIdNewsletterTemplate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if a template is used by a topic
|
static fr.paris.lutece.util.ReferenceList |
getAllTag(fr.paris.lutece.portal.business.user.AdminUser user)
Fetches all the tags defined
|
static List<Integer> |
getPublishedDocumentsIdsListByPortletIds(int[] nPortletsIds,
Date datePublishing,
Date dateEndPublishing,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of published blogs associated with a given collection of portlets.
|
static void |
removeNewsLetterDocumentPortlet(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the relationship between a topic and the list of portlets
|
static void |
removeNewsLetterDocumentTags(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Removes the relationship between a list of blogs categories and a newsletter topic
|
static void |
updateDocumentTopic(NewsletterBlog topic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a newsletter blogs topic
|
public static NewsletterBlog findByPrimaryKey(int nIdTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdTopic - the id of the topic to getplugin - The pluginpublic static void updateDocumentTopic(NewsletterBlog topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
topic - The topic to updateplugin - The pluginpublic static void deleteDocumentTopic(int nIdTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdTopic - The id of the newsletter blogs topic to removeplugin - The pluginpublic static void createDocumentTopic(NewsletterBlog topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
topic - The newsletter blogs topic to insertplugin - the pluginpublic static fr.paris.lutece.util.ReferenceList getAllTag(fr.paris.lutece.portal.business.user.AdminUser user)
user - the current userpublic static void associateNewsLetterDocumentCategory(int nTopicId,
int nDocumentTagId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTopicId - the topic identifiernDocumentTagId - the id of the blogs tag to associateplugin - the Pluginpublic static void removeNewsLetterDocumentTags(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTopicId - the newsletter identifierplugin - the Pluginpublic static int[] findNewsletterTagIds(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTopicId - the topic identifierplugin - the pluginpublic static void associateNewsLetterDocumentPortlet(int nTopicId,
int nPortletId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTopicId - the topic idnPortletId - the portlet identifierplugin - the newsletter blogs pluginpublic static void removeNewsLetterDocumentPortlet(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTopicId - the topic idplugin - the newsletter blogs pluginpublic static int[] findNewsletterPortletsIds(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTopicId - the topic identifierplugin - the pluginpublic static List<Integer> getPublishedDocumentsIdsListByPortletIds(int[] nPortletsIds, Date datePublishing, Date dateEndPublishing, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nPortletsIds - The list of portlet ids.datePublishing - TODOplugin - The document pluginpublic static boolean findTemplate(int nIdNewsletterTemplate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdNewsletterTemplate - The id of the templateplugin - The newsletter pluginCopyright © 2019 City of Paris. All rights reserved.