public class NewsletterTemplate extends AbstractLogEnabled implements Serviceable, Component
Modifier and Type | Field and Description |
---|---|
private I18nizableText |
_description |
private String |
_id |
private I18nizableText |
_label |
private String |
_largeImage |
private long |
_lastConfUpdate |
private String |
_mediumImage |
private String |
_skinId |
private String |
_smallImage |
private SourceResolver |
_sourceResolver |
Constructor and Description |
---|
NewsletterTemplate(String skinId,
String templateId)
Creates a template
|
Modifier and Type | Method and Description |
---|---|
private I18nizableText |
_configureI18n(Configuration child,
I18nizableText defaultValue) |
private String |
_configureThumbnail(String value,
String defaultImage) |
private void |
_defaultValues() |
I18nizableText |
getDescription()
The template description
|
String |
getId()
The template id
|
I18nizableText |
getLabel()
The template label
|
String |
getLargeImage()
The large image file uri
|
String |
getMediumImage()
The medium image file uri
|
String |
getSmallImage()
The small image file uri
|
void |
refreshValues()
Refresh the configuration values
|
void |
service(ServiceManager manager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private SourceResolver _sourceResolver
private I18nizableText _label
private I18nizableText _description
private String _smallImage
private String _mediumImage
private String _largeImage
private long _lastConfUpdate
public NewsletterTemplate(String skinId, String templateId)
skinId
- The skin idtemplateId
- The template idpublic void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public I18nizableText getLabel()
public I18nizableText getDescription()
public String getSmallImage()
public String getMediumImage()
public String getLargeImage()
public void refreshValues()
private void _defaultValues()
private I18nizableText _configureI18n(Configuration child, I18nizableText defaultValue) throws ConfigurationException
ConfigurationException
private String _configureThumbnail(String value, String defaultImage)