public class MetadataFile extends Object
DocumentModel.
Only support the types that MetadataCollector knows.
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(String propertyKey,
Object value) |
static MetadataFile |
createFromDocument(DocumentModel doc)
Create a
MetadataFile from a DocumentModel's schemas. |
static MetadataFile |
createFromProperties(DocumentModel doc,
List<String> properties)
Create a
MetadataFile from the listed properties of a DocumentModel |
static MetadataFile |
createFromSchemas(DocumentModel doc,
List<String> allPropertiesSchemas)
Create a
MetadataFile from the listed schemas (with all properties) of a DocumentModel |
static MetadataFile |
createFromSchemasAndProperties(DocumentModel doc,
List<String> allPropertiesSchemas,
List<String> properties)
Create a
MetadataFile from the listed schemas (with all properties) and the listed properties of a
DocumentModel |
void |
writeTo(File file)
Write the properties file to the given
file |
public static MetadataFile createFromDocument(DocumentModel doc) throws ClientException
MetadataFile from a DocumentModel's schemas.ClientExceptionpublic static MetadataFile createFromSchemasAndProperties(DocumentModel doc, List<String> allPropertiesSchemas, List<String> properties) throws ClientException
MetadataFile from the listed schemas (with all properties) and the listed properties of a
DocumentModelClientExceptionpublic static MetadataFile createFromSchemas(DocumentModel doc, List<String> allPropertiesSchemas) throws ClientException
MetadataFile from the listed schemas (with all properties) of a DocumentModelClientExceptionpublic static MetadataFile createFromProperties(DocumentModel doc, List<String> properties) throws ClientException
MetadataFile from the listed properties of a DocumentModelClientExceptionpublic void writeTo(File file) throws ClientException
fileClientExceptionCopyright © 2015 Nuxeo SA. All rights reserved.