public interface PartImporter
| Modifier and Type | Method and Description |
|---|---|
boolean |
canImportFile(String importFileName)
Determine if plugin is able to import the given file format
|
ImportPreview |
dryRunImport(String workspaceId,
File file,
String originalFileName,
boolean autoCheckout,
boolean autoCheckin,
boolean permissiveUpdate)
Run a dry import
|
ImportResult |
importFile(String workspaceId,
File file,
String revisionNote,
boolean autoCheckout,
boolean autoCheckin,
boolean permissiveUpdate)
Import the file and make requested changes
|
boolean canImportFile(String importFileName)
importFileName - the file nameImportResult importFile(String workspaceId, File file, String revisionNote, boolean autoCheckout, boolean autoCheckin, boolean permissiveUpdate)
workspaceId - the workspace concerned by the importfile - the file to importrevisionNote - a revision note to apply on parts changedautoCheckout - check out the part if not checked outautoCheckin - check in the modified parts after operationpermissiveUpdate - todoImportPreview dryRunImport(String workspaceId, File file, String originalFileName, boolean autoCheckout, boolean autoCheckin, boolean permissiveUpdate)
workspaceId - the workspace concerned by the importfile - the file to importoriginalFileName - the original file nameautoCheckout - check out the part if not checked outautoCheckin - check in the modified parts after operationpermissiveUpdate - todoCopyright © 2017 DocDoku. All rights reserved.