Class StaticAutomaticNewsletter
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.plugins.newsletter.auto.StaticAutomaticNewsletter
- All Implemented Interfaces:
AutomaticNewsletter,PluginAware,Configurable,LogEnabled
public class StaticAutomaticNewsletter
extends AbstractLogEnabled
implements AutomaticNewsletter, Configurable, PluginAware
Static implementation of
AutomaticNewsletter.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.plugins.newsletter.auto.AutomaticNewsletter
AutomaticNewsletter.FrequencyType -
Field Summary
FieldsModifier and TypeFieldDescriptionThe day numbers.protected I18nizableTextThe description.The filters.protected AutomaticNewsletter.FrequencyTypeThe frequency type.protected I18nizableTextThe label.protected I18nizableTextThe newsletter title.protected StringThe plugin name. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected I18nizableText_parseI18nizableText(Configuration config, String name) Parse an i18n text.voidconfigure(Configuration configuration) Get the automatic newsletter frequency identifiers.Get the automatic newsletter description.Get the filters which this automatic newsletter bases on.Get the automatic newsletter frequency type.getLabel()Get the automatic newsletter label.Get the automatic newsletter title.voidsetPluginInfo(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.Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
_label
The label. -
_description
The description. -
_newsletterTitle
The newsletter title. -
_frequencyType
The frequency type. -
_dayNumbers
The day numbers. -
_filters
The filters. -
_pluginName
The plugin name.
-
-
Constructor Details
-
StaticAutomaticNewsletter
public StaticAutomaticNewsletter()
-
-
Method Details
-
setPluginInfo
Description copied from interface:PluginAwareSets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.- Specified by:
setPluginInfoin interfacePluginAware- Parameters:
pluginName- Unique identifier for the plugin hosting the extensionfeatureName- Unique feature identifier (unique for a given pluginName)id- Unique identifier of this component
-
configure
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
getLabel
Description copied from interface:AutomaticNewsletterGet the automatic newsletter label.- Specified by:
getLabelin interfaceAutomaticNewsletter- Returns:
- the automatic newsletter label.
-
getDescription
Description copied from interface:AutomaticNewsletterGet the automatic newsletter description.- Specified by:
getDescriptionin interfaceAutomaticNewsletter- Returns:
- the automatic newsletter description.
-
getNewsletterTitle
Description copied from interface:AutomaticNewsletterGet the automatic newsletter title.- Specified by:
getNewsletterTitlein interfaceAutomaticNewsletter- Returns:
- the automatic newsletter title.
-
getFrequencyType
Description copied from interface:AutomaticNewsletterGet the automatic newsletter frequency type.- Specified by:
getFrequencyTypein interfaceAutomaticNewsletter- Returns:
- the automatic newsletter frequency type.
-
getDayNumbers
Description copied from interface:AutomaticNewsletterGet the automatic newsletter frequency identifiers.- Specified by:
getDayNumbersin interfaceAutomaticNewsletter- Returns:
- the automatic newsletter frequency identifiers.
-
getFilters
Description copied from interface:AutomaticNewsletterGet the filters which this automatic newsletter bases on.- Specified by:
getFiltersin interfaceAutomaticNewsletter- Returns:
- a Map of filter name -> filter ID.
-
_parseI18nizableText
protected I18nizableText _parseI18nizableText(Configuration config, String name) throws ConfigurationException Parse an i18n text.- Parameters:
config- the configuration to use.name- the child name.- Returns:
- the i18n text.
- Throws:
ConfigurationException- if the configuration is not valid.
-