Interface MetadataEmbedder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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)
      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.
    • 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.ContentIOException
        Embeds 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 embed
        reader - the reader for the original source content file
        writer - the writer for the content after metadata has been embedded
        Throws:
        org.alfresco.service.cmr.repository.ContentIOException