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
FieldsModifier and TypeFieldDescriptionprotected StringList of data files to importprotected StringThe extension idprotected StringThe plugin nameprotected IntegerThe priorityprotected SourceResolverThe source resolver component -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration configuration) Get the list ofPathincluding data files to import.Data to import for the given path (by default plugin://ref-data/*.csv) by content type id.intGet the priority for the component.voidservice(ServiceManager manager) 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.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: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
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
configure
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
getPriority
Description copied from interface:PrioritizableGet the priority for the component. On components usingPrioritizableinterface, each implementation define the order. In most cases, less is the number, more prior is the component.- Specified by:
getPriorityin interfacePrioritizable- Returns:
- the priority
-
getDataToImport
Description copied from interface:OdfRefTableDataData to import for the given path (by default plugin://ref-data/*.csv) by content type id.- Specified by:
getDataToImportin interfaceOdfRefTableData- Returns:
- Path of CSV files to import by content type id.
-
getDataFiles
Get the list ofPathincluding data files to import.- Returns:
- The list of files to import
-