Interface MetadataEmbedder
-
- All Superinterfaces:
ContentWorker
- All Known Implementing Classes:
AbstractMappingMetadataExtracter,DWGMetadataExtracter,HtmlMetadataExtracter,JodConverterMetadataExtracter,MailMetadataExtracter,MP3MetadataExtracter,OfficeMetadataExtracter,OpenDocumentMetadataExtracter,PdfBoxMetadataExtracter,PoiMetadataExtracter,RFC822MetadataExtracter,TikaAudioMetadataExtracter,TikaAutoMetadataExtracter,TikaPoweredMetadataExtracter,TikaSpringConfiguredMetadataExtracter,XmlMetadataExtracter,XPathMetadataExtracter
@AlfrescoPublicApi public interface MetadataEmbedder extends ContentWorker
Interface for writing metadata properties back into the content file.- Author:
- Ray Gauss II
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidembed(java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> properties, org.alfresco.service.cmr.repository.ContentReader reader, org.alfresco.service.cmr.repository.ContentWriter writer)Embeds the given properties into the file specified by the given content writer.booleanisEmbeddingSupported(java.lang.String mimetype)Determines if the extracter works against the given mimetype.
-
-
-
Method Detail
-
isEmbeddingSupported
boolean isEmbeddingSupported(java.lang.String mimetype)
Determines if the extracter works against the given mimetype.- Parameters:
mimetype- the document mimetype- Returns:
- Returns true if the mimetype is supported, otherwise false.
-
embed
void embed(java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> properties, org.alfresco.service.cmr.repository.ContentReader reader, org.alfresco.service.cmr.repository.ContentWriter writer) throws org.alfresco.service.cmr.repository.ContentIOExceptionEmbeds the given properties into the file specified by the given content writer. *The embedding viability can be determined by an up front call to
isEmbeddingSupported(String).The source mimetype must be available on the
ContentAccessor.getMimetype()method of the writer.- Parameters:
properties- the model properties to embedreader- the reader for the original source content filewriter- the writer for the content after metadata has been embedded- Throws:
org.alfresco.service.cmr.repository.ContentIOException
-
-