public interface MetadataEmbedder extends ContentWorker
| Modifier and Type | Method and Description |
|---|---|
void |
embed(java.util.Map 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(java.lang.String mimetype)
Determines if the extracter works against the given mimetype.
|
boolean isEmbeddingSupported(java.lang.String mimetype)
mimetype - the document mimetypevoid embed(java.util.Map 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
#isSupported(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 - 2013 Alfresco Software, Inc. All Rights Reserved.