Class XMLDirectoryWriter
java.lang.Object
org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter
org.nuxeo.ecm.core.io.impl.plugins.XMLDirectoryWriter
- All Implemented Interfaces:
DocumentWriter
This class plays a role in the export pipe.It is used to generate xml files that have a nuxeo specific format.Each
file contains information about a document model such as,general information like name, uid or document type, and
information about the schemas that the document includes.
- Author:
- btatar
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Allow to skip the blob from export : useful in case of a Nuxeo 2 Nuxeo migration -
Constructor Summary
ConstructorDescriptionXMLDirectoryWriter
(File destination) XMLDirectoryWriter
(String destinationPath) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the writer.Gives the destination where the XML file will be generated.void
setDestination
(File destination) Sets the destination where the XML file will be generated.void
setSkipBlobs
(boolean skipBlobs) boolean
write
(ExportedDocument doc) Writes a single document.Methods inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter
createCompactFormat, createPrettyPrint, write, write
-
Field Details
-
skipBlobs
protected boolean skipBlobsAllow to skip the blob from export : useful in case of a Nuxeo 2 Nuxeo migration- Since:
- 7.4
-
-
Constructor Details
-
XMLDirectoryWriter
-
XMLDirectoryWriter
-
-
Method Details
-
skipBlobs
public boolean skipBlobs()- Since:
- 7.4
-
setSkipBlobs
public void setSkipBlobs(boolean skipBlobs) - Since:
- 7.4
-
getDestination
Gives the destination where the XML file will be generated. -
setDestination
Sets the destination where the XML file will be generated. -
close
public void close()Description copied from interface:DocumentWriter
Closes the writer. -
write
Description copied from interface:DocumentWriter
Writes a single document.- Specified by:
write
in interfaceDocumentWriter
- Specified by:
write
in classAbstractDocumentWriter
- Parameters:
doc
- the document to write- Returns:
- the translation map.
- Throws:
IOException
-