Package org.ametys.odf.enumeration
Class CertificationLabels
- java.lang.Object
-
- org.ametys.odf.enumeration.CertificationLabels
-
- All Implemented Interfaces:
PluginAware
,Component
,Configurable
,Serviceable
public class CertificationLabels extends Object implements Serviceable, Configurable, Component, PluginAware
Component for certification labels
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,I18nizableText>
_entries
private String
_pluginName
private SourceResolver
_srcResolver
static String
ROLE
The Avalon role
-
Constructor Summary
Constructors Constructor Description CertificationLabels()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Configuration configuration)
Map<String,I18nizableText>
getLabels()
Get the labelsI18nizableText
getLabelTitle(String value)
Get the title of a labelvoid
service(ServiceManager smanager)
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.
-
-
-
Field Detail
-
_entries
private Map<String,I18nizableText> _entries
-
_pluginName
private String _pluginName
-
_srcResolver
private SourceResolver _srcResolver
-
-
Constructor Detail
-
CertificationLabels
public CertificationLabels()
-
-
Method Detail
-
setPluginInfo
public void setPluginInfo(String pluginName, String featureName, String id)
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
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getLabelTitle
public I18nizableText getLabelTitle(String value)
Get the title of a label- Parameters:
value
- the code of label- Returns:
- the label's title
-
getLabels
public Map<String,I18nizableText> getLabels()
Get the labels- Returns:
- the labels
-
-