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
Modifier and TypeFieldDescriptionThe day numbers.protected I18nizableText
The description.The filters.protected AutomaticNewsletter.FrequencyType
The frequency type.protected I18nizableText
The label.protected I18nizableText
The newsletter title.protected String
The plugin name. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected I18nizableText
_parseI18nizableText
(Configuration config, String name) Parse an i18n text.void
configure
(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.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.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:PluginAware
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.- Specified by:
setPluginInfo
in 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:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getLabel
Description copied from interface:AutomaticNewsletter
Get the automatic newsletter label.- Specified by:
getLabel
in interfaceAutomaticNewsletter
- Returns:
- the automatic newsletter label.
-
getDescription
Description copied from interface:AutomaticNewsletter
Get the automatic newsletter description.- Specified by:
getDescription
in interfaceAutomaticNewsletter
- Returns:
- the automatic newsletter description.
-
getNewsletterTitle
Description copied from interface:AutomaticNewsletter
Get the automatic newsletter title.- Specified by:
getNewsletterTitle
in interfaceAutomaticNewsletter
- Returns:
- the automatic newsletter title.
-
getFrequencyType
Description copied from interface:AutomaticNewsletter
Get the automatic newsletter frequency type.- Specified by:
getFrequencyType
in interfaceAutomaticNewsletter
- Returns:
- the automatic newsletter frequency type.
-
getDayNumbers
Description copied from interface:AutomaticNewsletter
Get the automatic newsletter frequency identifiers.- Specified by:
getDayNumbers
in interfaceAutomaticNewsletter
- Returns:
- the automatic newsletter frequency identifiers.
-
getFilters
Description copied from interface:AutomaticNewsletter
Get the filters which this automatic newsletter bases on.- Specified by:
getFilters
in 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.
-