public class NewsletterTopicService extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
BEAN_NAME
Name of the bean of this service
|
Constructor and Description |
---|
NewsletterTopicService() |
Modifier and Type | Method and Description |
---|---|
void |
createNewsletterTopic(NewsletterTopic newsletterTopic,
fr.paris.lutece.portal.business.user.AdminUser user,
Locale locale)
Creates a new newsletter topic
|
String |
getConfigurationPage(NewsletterTopic newsletterTopic,
String strBaseUrl,
fr.paris.lutece.portal.business.user.AdminUser user,
Locale locale)
Get the configuration page of a topic
|
fr.paris.lutece.util.ReferenceList |
getNewsletterTopicTypeRefList(Locale locale)
Get a reference list with every newsletter topic types
|
static NewsletterTopicService |
getService()
Get the service from Spring context
|
String |
getTopicContent(NewsletterTopic newsletterTopic,
fr.paris.lutece.portal.business.user.AdminUser user,
Locale locale)
Get the html content of a newsletter topic
|
String |
getTopicTypeName(String strTopicTypeCode)
Get the name of the topic type from a topic type code
|
void |
modifyNewsletterTopicOrder(NewsletterTopic newsletterTopic,
boolean bMoveUp)
Move a topic up or down in its section
|
void |
modifyNewsletterTopicSection(NewsletterTopic newsletterTopic,
int nSection)
Modify the section of a topic of a newsletter.
|
void |
removeNewsletterTopic(NewsletterTopic newsletterTopic,
fr.paris.lutece.portal.business.user.AdminUser user)
Removes a newsletter topic.
|
void |
saveConfiguration(Map<String,String[]> mapParameters,
NewsletterTopic newsletterTopic,
fr.paris.lutece.portal.business.user.AdminUser user,
Locale locale)
Save the configuration of a topic
|
public static final String BEAN_NAME
public static NewsletterTopicService getService()
public fr.paris.lutece.util.ReferenceList getNewsletterTopicTypeRefList(Locale locale)
locale
- The locale to get the topic types name in.public void createNewsletterTopic(NewsletterTopic newsletterTopic, fr.paris.lutece.portal.business.user.AdminUser user, Locale locale)
newsletterTopic
- The newsletter topic to createuser
- The current admin userlocale
- The current localepublic void removeNewsletterTopic(NewsletterTopic newsletterTopic, fr.paris.lutece.portal.business.user.AdminUser user)
newsletterTopic
- The topic to removeuser
- The current admin userpublic String getConfigurationPage(NewsletterTopic newsletterTopic, String strBaseUrl, fr.paris.lutece.portal.business.user.AdminUser user, Locale locale)
newsletterTopic
- The topic to get the configuration page of.strBaseUrl
- the base urluser
- The current userlocale
- The locale to usepublic void saveConfiguration(Map<String,String[]> mapParameters, NewsletterTopic newsletterTopic, fr.paris.lutece.portal.business.user.AdminUser user, Locale locale)
mapParameters
- The map of parameters of the the configuration. The
map contains request parameter if it is a request context.newsletterTopic
- The topic to save the configuration ofuser
- The current user, or null if there is no current userlocale
- The locale to usepublic void modifyNewsletterTopicOrder(NewsletterTopic newsletterTopic, boolean bMoveUp)
newsletterTopic
- The topic to movebMoveUp
- True to move the topic up (ie to decrease its order),
false to move it down (ie to increase its order)public void modifyNewsletterTopicSection(NewsletterTopic newsletterTopic, int nSection)
newsletterTopic
- The topic to update with the old values of
topic and order.nSection
- The new sectionpublic String getTopicContent(NewsletterTopic newsletterTopic, fr.paris.lutece.portal.business.user.AdminUser user, Locale locale)
newsletterTopic
- The topic to get the content ofuser
- The current userlocale
- The locale to display the content in.Copyright © 2019 City of Paris. All rights reserved.