Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

org.alfresco.repo.content.metadata
Interface MetadataEmbedder
All Superinterfaces:
ContentWorker
All Known Implementing Classes:
AbstractMappingMetadataExtracter, TikaPoweredMetadataExtracter, TikaSpringConfiguredMetadataExtracter

public interface MetadataEmbedder
extends ContentWorker
Interface for writing metadata properties back into the content file.
Author:
Ray Gauss II

Method Summary
void
embed(Map<QName,Serializable> properties, ContentReader reader, 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.
Method Detail
isEmbeddingSupported
boolean isEmbeddingSupported(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(Map<QName,Serializable> properties,
           ContentReader reader,
           ContentWriter writer)
    throws 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:
ContentIOException

Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005–2016 Alfresco Software. All rights reserved.

Java API documentation generated with DocFlex/Javadoc 1.6.1 using JavadocPro template set.