public interface FileImporter
Modifier and Type | Method and Description |
---|---|
int |
loadFile(org.alfresco.service.cmr.repository.NodeRef container,
File file)
Load a single file or directory without any recursion
|
int |
loadFile(org.alfresco.service.cmr.repository.NodeRef container,
File file,
boolean recurse)
Load a file or directory into the repository
|
int |
loadFile(org.alfresco.service.cmr.repository.NodeRef container,
File file,
FileFilter filter,
boolean recurse)
Load all files or directories that match the file filter in the given directory
|
int |
loadNamedFile(org.alfresco.service.cmr.repository.NodeRef container,
File file,
boolean recurse,
String name)
Load a file into a given location, giving it a new name.
|
int loadFile(org.alfresco.service.cmr.repository.NodeRef container, File file, boolean recurse) throws FileImporterException
container
- - the node into which to insert the file or directoryfile
- - the start point for the importrecurse
- - if the start point is a directoty then recurseFileImporterException
int loadFile(org.alfresco.service.cmr.repository.NodeRef container, File file, FileFilter filter, boolean recurse) throws FileImporterException
container
- NodeReffile
- Filefilter
- FileFilterrecurse
- booleanFileImporterException
int loadFile(org.alfresco.service.cmr.repository.NodeRef container, File file) throws FileImporterException
container
- NodeReffile
- FileFileImporterException
int loadNamedFile(org.alfresco.service.cmr.repository.NodeRef container, File file, boolean recurse, String name) throws FileImporterException
container
- the target parent to load intofile
- the source file to uploadrecurse
- true to recurse into subfoldersname
- the new name of the file or folder when it gets uploadedFileImporterException
Copyright © 2005–2017 Alfresco Software. All rights reserved.