@AlfrescoPublicApi public interface MetadataEmbedder extends ContentWorker
| Modifier and Type | Method and Description |
|---|---|
void |
embed(Map<org.alfresco.service.namespace.QName,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.
|
boolean |
isEmbeddingSupported(String mimetype)
Determines if the extracter works against the given mimetype.
|
boolean isEmbeddingSupported(String mimetype)
mimetype - the document mimetypevoid embed(Map<org.alfresco.service.namespace.QName,Serializable> properties, org.alfresco.service.cmr.repository.ContentReader reader, org.alfresco.service.cmr.repository.ContentWriter writer) throws org.alfresco.service.cmr.repository.ContentIOException
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.
properties - the model properties to embedreader - the reader for the original source content filewriter - the writer for the content after metadata has been embeddedorg.alfresco.service.cmr.repository.ContentIOExceptionCopyright © 2005–2018 Alfresco Software. All rights reserved.