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>_entriesprivate String_pluginNameprivate SourceResolver_srcResolverstatic StringROLEThe Avalon role
-
Constructor Summary
Constructors Constructor Description CertificationLabels()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(Configuration configuration)Map<String,I18nizableText>getLabels()Get the labelsI18nizableTextgetLabelTitle(String value)Get the title of a labelvoidservice(ServiceManager smanager)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.
-
-
-
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: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
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configurein 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
-
-