Package org.ametys.cms.data
Class RichTextImportMetadataHandlerFactory
- java.lang.Object
-
- org.ametys.cms.data.RichTextImportMetadataHandlerFactory
-
- All Implemented Interfaces:
Component
,Contextualizable
public class RichTextImportMetadataHandlerFactory extends Object implements Component, Contextualizable
Factory for the transformer that imports the rich text metadata (attachments, semantic annotations, ...) from docbook.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
RichTextImportMetadataHandlerFactory.RichTextImportMetadataHandler
This transformer imports the rich text metadata (attachments, semantic annotations, ...) from docbook.
-
Field Summary
Fields Modifier and Type Field Description private Context
_cocoonContext
static String
ROLE
Avalon role.
-
Constructor Summary
Constructors Constructor Description RichTextImportMetadataHandlerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextualize(Context context)
RichTextImportMetadataHandlerFactory.RichTextImportMetadataHandler
createHandler(RichText richText, Map<String,InputStream> files)
Creates a handler to import the rich text's metadata
-
-
-
Field Detail
-
_cocoonContext
private Context _cocoonContext
-
-
Constructor Detail
-
RichTextImportMetadataHandlerFactory
public RichTextImportMetadataHandlerFactory()
-
-
Method Detail
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
createHandler
public RichTextImportMetadataHandlerFactory.RichTextImportMetadataHandler createHandler(RichText richText, Map<String,InputStream> files)
Creates a handler to import the rich text's metadata- Parameters:
richText
- the rich textfiles
- the attachments of this rich text- Returns:
- the created handler
-
-