public class FreeHtmlTopicService extends Object implements INewsletterTopicService
| Modifier and Type | Field and Description |
|---|---|
static String |
NEWSLETTER_FREE_HTML_TOPIC_TYPE_CODE
Code of the topic type
|
| Constructor and Description |
|---|
FreeHtmlTopicService() |
| Modifier and Type | Method and Description |
|---|---|
void |
copyNewsletterTopic(int oldTopicId,
NewsletterTopic newsletterTopic,
fr.paris.lutece.portal.business.user.AdminUser user,
Locale locale)
Copy a topic for a newsletter.
|
void |
createNewsletterTopic(NewsletterTopic newsletterTopic,
fr.paris.lutece.portal.business.user.AdminUser user,
Locale locale)
Creates a new topic for a newsletter
|
String |
getConfigurationPage(NewsletterTopic newsletterTopic,
String strBaseUrl,
fr.paris.lutece.portal.business.user.AdminUser user,
Locale locale)
Get the configuration page of the content type.
|
String |
getHtmlContent(NewsletterTopic newsletterTopic,
fr.paris.lutece.portal.business.user.AdminUser user,
Locale locale)
Get the html content of a topic.
|
String |
getNewsletterTopicTypeCode()
Get the unique code of the topic type associated with this service.
|
String |
getNewsletterTopicTypeName(Locale locale)
Get the localized name of the topic type associated with this service.
|
boolean |
hasConfiguration()
Check if topics of this topic type need a configuration or not.
|
void |
removeNewsletterTopic(int nNewsletterTopicId)
Remove a newsletter topic from its id.
|
void |
saveConfiguration(Map<String,String[]> mapParameters,
NewsletterTopic newsletterTopic,
fr.paris.lutece.portal.business.user.AdminUser user,
Locale locale) |
public static final String NEWSLETTER_FREE_HTML_TOPIC_TYPE_CODE
public String getNewsletterTopicTypeCode()
getNewsletterTopicTypeCode in interface INewsletterTopicServicepublic String getNewsletterTopicTypeName(Locale locale)
getNewsletterTopicTypeName in interface INewsletterTopicServicelocale - The locale to usepublic boolean hasConfiguration()
hasConfiguration in interface INewsletterTopicServicepublic String getConfigurationPage(NewsletterTopic newsletterTopic, String strBaseUrl, fr.paris.lutece.portal.business.user.AdminUser user, Locale locale)
getConfigurationPage in interface INewsletterTopicServicenewsletterTopic - The newsletter topic to get the configuration of.strBaseUrl - The base urluser - The current userlocale - The localepublic void saveConfiguration(Map<String,String[]> mapParameters, NewsletterTopic newsletterTopic, fr.paris.lutece.portal.business.user.AdminUser user, Locale locale)
saveConfiguration in interface INewsletterTopicServicemapParameters - The collection of parameters of the configuration. Those parameters are request parameters in request contexts.newsletterTopic - The newsletter topic to get the configuration of.user - The current userlocale - The localepublic void createNewsletterTopic(NewsletterTopic newsletterTopic, fr.paris.lutece.portal.business.user.AdminUser user, Locale locale)
createNewsletterTopic in interface INewsletterTopicServicenewsletterTopic - The details of the topic to createuser - The current userlocale - The localepublic void removeNewsletterTopic(int nNewsletterTopicId)
removeNewsletterTopic in interface INewsletterTopicServicenNewsletterTopicId - The id of the topic to remove.public String getHtmlContent(NewsletterTopic newsletterTopic, fr.paris.lutece.portal.business.user.AdminUser user, Locale locale)
getHtmlContent in interface INewsletterTopicServicenewsletterTopic - The topic to get the html of.user - The current userlocale - The localepublic void copyNewsletterTopic(int oldTopicId,
NewsletterTopic newsletterTopic,
fr.paris.lutece.portal.business.user.AdminUser user,
Locale locale)
INewsletterTopicServicecopyNewsletterTopic in interface INewsletterTopicServicenewsletterTopic - The details of the topic to createuser - The current userlocale - The localeCopyright © 2023 City of Paris. All rights reserved.