public interface BinaryMetadataService
Modifier and Type | Method and Description |
---|---|
void |
handleSyncUpdate(DocumentModel doc,
DocumentEventContext docCtx)
Handle document and blob updates according to following rules in an event context: - Define if rule should be
executed in async or sync mode.
|
void |
handleUpdate(List<MetadataMappingDescriptor> syncMappingDescriptors,
DocumentModel doc,
DocumentEventContext docCtx)
Handle document and blob updates according to following rules in an event context: - Define if rule should be
executed in async or sync mode.
|
Map<String,Object> |
readMetadata(Blob blob,
boolean ignorePrefix)
Read and return metadata from a given binary with Nuxeo default processor.
|
Map<String,Object> |
readMetadata(Blob blob,
List<String> metadataNames,
boolean ignorePrefix)
Read and return metadata from a given binary and a given metadata list with Nuxeo default processor.
|
Map<String,Object> |
readMetadata(String processorName,
Blob blob,
boolean ignorePrefix)
Read and return metadata from a given binary with a given processor.
|
Map<String,Object> |
readMetadata(String processorName,
Blob blob,
List<String> metadataNames,
boolean ignorePrefix)
Read and return metadata from a given binary and a given metadata list with a given processor.
|
Blob |
writeMetadata(Blob blob,
Map<String,String> metadata,
boolean ignorePrefix)
Write given metadata into a given binary with a Nuxeo default processor.
|
Blob |
writeMetadata(Blob blob,
String mappingDescriptorId,
DocumentModel doc)
Write given metadata mapping id into a given binary with a Nuxeo default processor.
|
void |
writeMetadata(DocumentModel doc,
CoreSession session)
Write metadata (from a binary) into a given Nuxeo Document according to the metadata mapping and rules
contributions.
|
void |
writeMetadata(DocumentModel doc,
CoreSession session,
String mappingDescriptorId)
Apply metadata mapping and override document properties according to the contribution.
|
Blob |
writeMetadata(String processorName,
Blob blob,
Map<String,String> metadata,
boolean ignorePrefix)
Write given metadata into a given binary with a given processor.
|
Blob |
writeMetadata(String processorName,
Blob blob,
String mappingDescriptorId,
DocumentModel doc)
Write given metadata mapping id into a given binary with a Nuxeo default processor.
|
Map<String,Object> readMetadata(String processorName, Blob blob, List<String> metadataNames, boolean ignorePrefix)
processorName
- Name of the contributed processor to run.blob
- Binary which metadata are read.metadataNames
- Metadata list to extract from the binary.ignorePrefix
- Since 7.3Map<String,Object> readMetadata(Blob blob, List<String> metadataNames, boolean ignorePrefix)
blob
- Binary which metadata are read.metadataNames
- Metadata list to extract from the binary.ignorePrefix
- Since 7.3Map<String,Object> readMetadata(Blob blob, boolean ignorePrefix)
blob
- Binary which metadata are read.ignorePrefix
- Since 7.3Map<String,Object> readMetadata(String processorName, Blob blob, boolean ignorePrefix)
processorName
- Name of the contributed processor to run.blob
- Binary which metadata are read.ignorePrefix
- Since 7.3Blob writeMetadata(String processorName, Blob blob, Map<String,String> metadata, boolean ignorePrefix)
processorName
- Name of the contributed processor to run.blob
- Binary which metadata are written.metadata
- Injected metadata.ignorePrefix
- Since 7.3null
if there was an error (since 7.4)Blob writeMetadata(Blob blob, Map<String,String> metadata, boolean ignorePrefix)
blob
- Binary which metadata are written.metadata
- Injected metadata.ignorePrefix
- Since 7.3null
if there was an error (since 7.4)Blob writeMetadata(String processorName, Blob blob, String mappingDescriptorId, DocumentModel doc)
processorName
- Name of the contributed processor to run.blob
- Binary which metadata are written.mappingDescriptorId
- The metadata mapping to apply on the document.doc
- Document from properties will be read.null
if there was an error (since 7.4)Blob writeMetadata(Blob blob, String mappingDescriptorId, DocumentModel doc)
blob
- Binary which metadata are written.mappingDescriptorId
- The metadata mapping to apply on the document.doc
- Document from properties will be read.null
if there was an error (since 7.4)void writeMetadata(DocumentModel doc, CoreSession session)
doc
- Nuxeo Document which metadata are written.void writeMetadata(DocumentModel doc, CoreSession session, String mappingDescriptorId)
doc
- The input document.session
- core session.mappingDescriptorId
- The metadata mapping to apply on the document.void handleUpdate(List<MetadataMappingDescriptor> syncMappingDescriptors, DocumentModel doc, DocumentEventContext docCtx)
void handleSyncUpdate(DocumentModel doc, DocumentEventContext docCtx)
Copyright © 2015 Nuxeo SA. All rights reserved.