Package org.ametys.odf.init
Class OdfRefTableDataAsFolder
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.odf.init.OdfRefTableDataAsFolder
- All Implemented Interfaces:
OdfRefTableData
,LogEnabled
,PluginAware
,Prioritizable
,Component
,Configurable
,Serviceable
- Direct Known Subclasses:
OdfRefTableDataAsFilesList
public class OdfRefTableDataAsFolder
extends AbstractLogEnabled
implements OdfRefTableData, PluginAware, Serviceable, Configurable
ODF reference table data description to import on initialization.
This implementation only works outside a JAR file.
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
List of data files to importprotected String
The extension idprotected String
The plugin nameprotected Integer
The priorityprotected SourceResolver
The source resolver component -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) Get the list ofPath
including data files to import.Data to import for the given path (by default plugin://ref-data/*.csv) by content type id.int
Get the priority for the component.void
service
(ServiceManager manager) 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.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_srcResolver
The source resolver component -
_pluginName
The plugin name -
_id
The extension id -
_dataFolder
List of data files to import -
_priority
The priority
-
-
Constructor Details
-
OdfRefTableDataAsFolder
public OdfRefTableDataAsFolder()
-
-
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
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getPriority
Description copied from interface:Prioritizable
Get the priority for the component. On components usingPrioritizable
interface, each implementation define the order. In most cases, less is the number, more prior is the component.- Specified by:
getPriority
in interfacePrioritizable
- Returns:
- the priority
-
getDataToImport
Description copied from interface:OdfRefTableData
Data to import for the given path (by default plugin://ref-data/*.csv) by content type id.- Specified by:
getDataToImport
in interfaceOdfRefTableData
- Returns:
- Path of CSV files to import by content type id.
-
getDataFiles
Get the list ofPath
including data files to import.- Returns:
- The list of files to import
-