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, setupLogger
protected 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)
PluginAware
setPluginInfo
in interface PluginAware
pluginName
- 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 Configurable
ConfigurationException
public I18nizableText getLabel()
AutomaticNewsletter
getLabel
in interface AutomaticNewsletter
public I18nizableText getDescription()
AutomaticNewsletter
getDescription
in interface AutomaticNewsletter
public I18nizableText getNewsletterTitle()
AutomaticNewsletter
getNewsletterTitle
in interface AutomaticNewsletter
public AutomaticNewsletter.FrequencyType getFrequencyType()
AutomaticNewsletter
getFrequencyType
in interface AutomaticNewsletter
public Collection<Integer> getDayNumbers()
AutomaticNewsletter
getDayNumbers
in interface AutomaticNewsletter
public Map<String,String> getFilters()
AutomaticNewsletter
getFilters
in interface AutomaticNewsletter
protected I18nizableText _parseI18nizableText(Configuration config, String name) throws ConfigurationException
config
- the configuration to use.name
- the child name.ConfigurationException
- if the configuration is not valid.