Package org.nuxeo.io.fsexporter
Class DriveLikeExporterPlugin
- java.lang.Object
-
- org.nuxeo.io.fsexporter.DefaultExporterPlugin
-
- org.nuxeo.io.fsexporter.DriveLikeExporterPlugin
-
- All Implemented Interfaces:
FSExporterPlugin
public class DriveLikeExporterPlugin extends DefaultExporterPlugin
Plugin for FS Exporter that exports documents like they should appear in Nuxeo Drive.- Since:
- 10.3
-
-
Field Summary
Fields Modifier and Type Field Description static Pattern
FORBIDDEN_CHAR_PATTERN
-
Constructor Summary
Constructors Constructor Description DriveLikeExporterPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected File
avoidingCollision(File file)
Given a file one wants to create, returns a file which name doesn't collide with the already existing files.protected String
encodeFilename(String filename)
File
serialize(CoreSession session, DocumentModel docfrom, String fsPath)
-
Methods inherited from class org.nuxeo.io.fsexporter.DefaultExporterPlugin
getChildren, getFileName
-
-
-
-
Field Detail
-
FORBIDDEN_CHAR_PATTERN
public static final Pattern FORBIDDEN_CHAR_PATTERN
-
-
Method Detail
-
serialize
public File serialize(CoreSession session, DocumentModel docfrom, String fsPath) throws IOException
- Specified by:
serialize
in interfaceFSExporterPlugin
- Overrides:
serialize
in classDefaultExporterPlugin
- Throws:
IOException
-
avoidingCollision
protected File avoidingCollision(File file)
Given a file one wants to create, returns a file which name doesn't collide with the already existing files. For files, the anti-collide index is added before the extension.- Parameters:
file
- The file to create- Returns:
- a file that can be created.
- Since:
- 10.3
-
-