Class NewsletterTemplate
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.plugins.newsletter.category.NewsletterTemplate
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
public class NewsletterTemplate extends AbstractLogEnabled implements Serviceable, Component
Represent a newsletter template.
-
-
Constructor Summary
Constructors Constructor Description NewsletterTemplate(String skinId, String templateId)
Creates a template
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I18nizableText
getDescription()
The template descriptionString
getId()
The template idI18nizableText
getLabel()
The template labelString
getLargeImage()
The large image file uriString
getMediumImage()
The medium image file uriString
getSmallImage()
The small image file urivoid
refreshValues()
Refresh the configuration valuesvoid
service(ServiceManager manager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Constructor Detail
-
NewsletterTemplate
public NewsletterTemplate(String skinId, String templateId)
Creates a template- Parameters:
skinId
- The skin idtemplateId
- The template id
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getLabel
public I18nizableText getLabel()
The template label- Returns:
- The label
-
getDescription
public I18nizableText getDescription()
The template description- Returns:
- The description. Can not be null but can be empty
-
getSmallImage
public String getSmallImage()
The small image file uri- Returns:
- The small image file uri
-
getMediumImage
public String getMediumImage()
The medium image file uri- Returns:
- The medium image file uri
-
getLargeImage
public String getLargeImage()
The large image file uri- Returns:
- The large image file uri
-
refreshValues
public void refreshValues()
Refresh the configuration values
-
-