public class BlobsExtractor extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,List<String>> |
docBlobPaths |
Constructor and Description |
---|
BlobsExtractor() |
Modifier and Type | Method and Description |
---|---|
protected void |
findBlobPaths(ComplexType complexType,
String path,
Schema schema,
List<String> paths) |
protected void |
findBlobsProperties(Property property,
List<String> split,
List<Property> properties) |
List<String> |
getBlobPaths(DocumentType documentType)
Gets the blob paths of the document type.
|
List<Blob> |
getBlobs(DocumentModel doc)
Gets the blobs of the document.
|
List<Property> |
getBlobsProperties(DocumentModel doc)
Gets the blob properties of the document.
|
protected boolean |
isInterestingPath(String path) |
protected Set<String> |
normalizePaths(Set<String> paths)
Removes the "/data" suffix used by FulltextConfiguration.
|
void |
setExtractorProperties(Set<String> includedPaths,
Set<String> excludedPaths,
boolean allBlobs)
Sets extractor properties, controlling what properties or values are returned by
getBlobsProperties(org.nuxeo.ecm.core.api.DocumentModel) or
getBlobs(org.nuxeo.ecm.core.api.DocumentModel) . |
protected final Map<String,List<String>> docBlobPaths
public BlobsExtractor()
public void setExtractorProperties(Set<String> includedPaths, Set<String> excludedPaths, boolean allBlobs)
getBlobsProperties(org.nuxeo.ecm.core.api.DocumentModel)
or
getBlobs(org.nuxeo.ecm.core.api.DocumentModel)
.
The properties have to be defined without prefix if there is no prefix in the schema definition. For blob
properties, the path must include the /data
part.
protected boolean isInterestingPath(String path)
protected Set<String> normalizePaths(Set<String> paths)
Adds missing schema name as prefix if no prefix ("content" -> "file:content").
public List<Blob> getBlobs(DocumentModel doc)
doc
- the documentpublic List<Property> getBlobsProperties(DocumentModel doc)
doc
- the documentpublic List<String> getBlobPaths(DocumentType documentType)
documentType
- the document typeprotected void findBlobsProperties(Property property, List<String> split, List<Property> properties)
protected void findBlobPaths(ComplexType complexType, String path, Schema schema, List<String> paths)
Copyright © 2018 Nuxeo. All rights reserved.