Package org.ametys.core.ui
Class StaticRibbonImportManager
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.core.ui.StaticRibbonImportManager
-
- All Implemented Interfaces:
RibbonImport
,LogEnabled
,PluginAware
,Configurable
- Direct Known Subclasses:
HierarchicalReferenceTablesRibbonImportManager
public class StaticRibbonImportManager extends AbstractLogEnabled implements RibbonImport, Configurable, PluginAware
Static implementation for the ribbon import manager. The expected configuration is one or more "workspace" with a match attribute (default to ".*"), and a list of files to include : <workspace match=".*"> <file plugin="core-ui">ribbon/ribbon.xml</file> <file>ribbon/ribbon.xml</file> </workspace>
-
-
Field Summary
Fields Modifier and Type Field Description private Map<List<String>,Pattern>
_filesList
private String
_pluginName
-
Constructor Summary
Constructors Constructor Description StaticRibbonImportManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Configuration configuration)
Map<List<String>,Pattern>
getImports()
Get the list of files to import, associated with the workspace pattern to matchvoid
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.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_filesList
private Map<List<String>,Pattern> _filesList
-
_pluginName
private String _pluginName
-
-
Constructor Detail
-
StaticRibbonImportManager
public StaticRibbonImportManager()
-
-
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
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getImports
public Map<List<String>,Pattern> getImports()
Description copied from interface:RibbonImport
Get the list of files to import, associated with the workspace pattern to match- Specified by:
getImports
in interfaceRibbonImport
- Returns:
- The list of files
-
-