Class ImportCDMFrValuesExtractorFactory
java.lang.Object
org.ametys.plugins.odfsync.cdmfr.extractor.ImportCDMFrValuesExtractorFactory
- All Implemented Interfaces:
Component
,Serviceable
Factory for
ImportCDMFrValuesExtractor
Creates the right instance of ImportCDMFrValuesExtractor
according to the imported content
Provides components to the values extractor-
Field Summary
Modifier and TypeFieldDescriptionprotected ContentTypeExtensionPoint
The content type extension pointprotected AmetysObjectResolver
The ametys object resolverstatic final String
The component role. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the ametys object resolverRetrieves the content type extension pointgetMentionValuesExtractor
(Element contentElement, ImportCDMFrComponent component, ImportCDMFrContext context) Retrieves the values extractor for mentionsRetrieves theOdfReferenceTableHelper
getSharedSubProgramValuesExtractor
(Element contentElement, ImportCDMFrComponent component, ImportCDMFrContext context) Retrieves the values extractor for mentionsgetValuesExtractor
(Element contentElement, ImportCDMFrComponent component, Content content, ContentType contentType, String syncCode, ImportCDMFrContext context) Retrieves the values extractor corresponding to the given contentvoid
service
(ServiceManager manager)
-
Field Details
-
ROLE
The component role. -
_resolver
The ametys object resolver -
_contentTypeExtensionPoint
The content type extension point
-
-
Constructor Details
-
ImportCDMFrValuesExtractorFactory
public ImportCDMFrValuesExtractorFactory()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getValuesExtractor
public ModelAwareValuesExtractor getValuesExtractor(Element contentElement, ImportCDMFrComponent component, Content content, ContentType contentType, String syncCode, ImportCDMFrContext context) Retrieves the values extractor corresponding to the given content- Parameters:
contentElement
- the DOM content elementcomponent
- The import CDM-fr componentcontent
- The content to synchronizecontentType
- The content typesyncCode
- The synchronization codecontext
- the import context- Returns:
- the values extractor corresponding to the given content
-
getMentionValuesExtractor
public ModelAwareValuesExtractor getMentionValuesExtractor(Element contentElement, ImportCDMFrComponent component, ImportCDMFrContext context) Retrieves the values extractor for mentions- Parameters:
contentElement
- the DOM content elementcomponent
- The import CDM-fr componentcontext
- the import context- Returns:
- the values extractor corresponding to the given content
-
getAmetysObjectResolver
Retrieves the ametys object resolver- Returns:
- the ametys object resolver
-
getContentTypeExtensionPoint
Retrieves the content type extension point- Returns:
- the content type extension point
-
getODFReferenceTableHelper
Retrieves theOdfReferenceTableHelper
- Returns:
- the
OdfReferenceTableHelper
-