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
FieldsModifier and TypeFieldDescriptionprotected StringThe implementation nameprotected SourceResolverThe source resolver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_parseMappingFile(Source source) Parse the mapping file_readMapping(String baseUri) Read the mapping file to convert types.voidconfigure(Configuration configuration) voidservice(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:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
service
- Specified by:
servicein 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
-