Class AbstractMappingHelper
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.odfsync.generic.scc.AbstractMappingHelper
- All Implemented Interfaces:
LogEnabled
,Configurable
,Serviceable
- Direct Known Subclasses:
PegaseSCCMappingHelper
public abstract class AbstractMappingHelper
extends AbstractLogEnabled
implements Serviceable, Configurable
Abstract class for reading mapping files in ODF helpers.
First look for a project mapping files in WEB-INF/param/odf
Then look for the default mapping files in plugin.odf-sync
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
The implementation nameprotected SourceResolver
The source resolver -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription_parseMappingFile
(Source source) Parse the mapping file_readMapping
(String baseUri) Read the mapping file to convert types.void
configure
(Configuration configuration) void
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_srcResolver
The source resolver -
_implementationName
The implementation name
-
-
Constructor Details
-
AbstractMappingHelper
public AbstractMappingHelper()
-
-
Method Details
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
_readMapping
Read the mapping file to convert types.- Parameters:
baseUri
- The base uri of the file- Returns:
- The mapping
-
_parseMappingFile
Parse the mapping file- Parameters:
source
- The source of the file- Returns:
- The mapping
- Throws:
Exception
- If an error occurs
-