Package org.nuxeo.io.fsexporter
Class DriveLikeExporterPlugin
java.lang.Object
org.nuxeo.io.fsexporter.DefaultExporterPlugin
org.nuxeo.io.fsexporter.DriveLikeExporterPlugin
- All Implemented Interfaces:
FSExporterPlugin
Plugin for FS Exporter that exports documents like they should appear in Nuxeo Drive.
- Since:
- 10.3
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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) serialize
(CoreSession session, DocumentModel docfrom, String fsPath) Methods inherited from class org.nuxeo.io.fsexporter.DefaultExporterPlugin
getChildren, getFileName
-
Field Details
-
FORBIDDEN_CHAR_PATTERN
-
-
Constructor Details
-
DriveLikeExporterPlugin
public DriveLikeExporterPlugin()
-
-
Method Details
-
serialize
- Specified by:
serialize
in interfaceFSExporterPlugin
- Overrides:
serialize
in classDefaultExporterPlugin
- Throws:
IOException
-
avoidingCollision
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
-
encodeFilename
-