public class StaticAutomaticNewsletter extends AbstractLogEnabled implements AutomaticNewsletter, Configurable, PluginAware
AutomaticNewsletter.AutomaticNewsletter.FrequencyType| Modifier and Type | Field and Description |
|---|---|
protected List<Integer> |
_dayNumbers
The day numbers.
|
protected I18nizableText |
_description
The description.
|
protected Map<String,String> |
_filters
The filters.
|
protected AutomaticNewsletter.FrequencyType |
_frequencyType
The frequency type.
|
protected I18nizableText |
_label
The label.
|
protected I18nizableText |
_newsletterTitle
The newsletter title.
|
protected String |
_pluginName
The plugin name.
|
| Constructor and Description |
|---|
StaticAutomaticNewsletter() |
| Modifier and Type | Method and Description |
|---|---|
protected I18nizableText |
_parseI18nizableText(Configuration config,
String name)
Parse an i18n text.
|
void |
configure(Configuration configuration) |
Collection<Integer> |
getDayNumbers()
Get the automatic newsletter frequency identifiers.
|
I18nizableText |
getDescription()
Get the automatic newsletter description.
|
Map<String,String> |
getFilters()
Get the filters which this automatic newsletter bases on.
|
AutomaticNewsletter.FrequencyType |
getFrequencyType()
Get the automatic newsletter frequency type.
|
I18nizableText |
getLabel()
Get the automatic newsletter label.
|
I18nizableText |
getNewsletterTitle()
Get the automatic newsletter title.
|
void |
setPluginInfo(String pluginName,
String featureName,
String id)
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level. |
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerprotected I18nizableText _label
protected I18nizableText _description
protected I18nizableText _newsletterTitle
protected AutomaticNewsletter.FrequencyType _frequencyType
protected List<Integer> _dayNumbers
protected String _pluginName
public StaticAutomaticNewsletter()
public void setPluginInfo(String pluginName, String featureName, String id)
PluginAwaresetPluginInfo in interface PluginAwarepluginName - Unique identifier for the plugin hosting the extensionfeatureName - Unique feature identifier (unique for a given pluginName)id - Unique identifier of this componentpublic void configure(Configuration configuration) throws ConfigurationException
configure in interface ConfigurableConfigurationExceptionpublic I18nizableText getLabel()
AutomaticNewslettergetLabel in interface AutomaticNewsletterpublic I18nizableText getDescription()
AutomaticNewslettergetDescription in interface AutomaticNewsletterpublic I18nizableText getNewsletterTitle()
AutomaticNewslettergetNewsletterTitle in interface AutomaticNewsletterpublic AutomaticNewsletter.FrequencyType getFrequencyType()
AutomaticNewslettergetFrequencyType in interface AutomaticNewsletterpublic Collection<Integer> getDayNumbers()
AutomaticNewslettergetDayNumbers in interface AutomaticNewsletterpublic Map<String,String> getFilters()
AutomaticNewslettergetFilters in interface AutomaticNewsletterprotected I18nizableText _parseI18nizableText(Configuration config, String name) throws ConfigurationException
config - the configuration to use.name - the child name.ConfigurationException - if the configuration is not valid.