public class FileImporterImpl extends Object implements FileImporter
| Constructor and Description |
|---|
FileImporterImpl() |
| Modifier and Type | Method and Description |
|---|---|
int |
loadFile(NodeRef container,
File file)
Load a single file or directory without any recursion
|
int |
loadFile(NodeRef container,
File file,
boolean recurse)
Load a file or directory into the repository
|
int |
loadFile(NodeRef container,
File file,
FileFilter filter,
boolean recurse)
Load all files or directories that match the file filter in the given directory
|
int |
loadNamedFile(NodeRef container,
File file,
boolean recurse,
String name)
Load a file into a given location, giving it a new name.
|
protected void |
setAuthenticationService(AuthenticationService authenticationService) |
protected void |
setContentService(ContentService contentService) |
void |
setDictionaryService(DictionaryService dictionaryService) |
protected void |
setMimetypeService(MimetypeService mimetypeService) |
protected void |
setNodeService(NodeService nodeService) |
void |
setTransactionService(TransactionService transactionService) |
void |
setTxnPerFile(boolean txnPerFile) |
public int loadFile(NodeRef container, File file, boolean recurse) throws FileImporterException
FileImporterloadFile in interface FileImportercontainer - - the node into which to insert the file or directoryfile - - the start point for the importrecurse - - if the start point is a directoty then recurseFileImporterExceptionpublic int loadNamedFile(NodeRef container, File file, boolean recurse, String name) throws FileImporterException
FileImporterloadNamedFile in interface FileImportercontainer - 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 uploadedFileImporterExceptionpublic int loadFile(NodeRef container, File file, FileFilter filter, boolean recurse) throws FileImporterException
FileImporterloadFile in interface FileImportercontainer - NodeReffile - Filefilter - FileFilterrecurse - booleanFileImporterExceptionpublic int loadFile(NodeRef container, File file) throws FileImporterException
FileImporterloadFile in interface FileImportercontainer - NodeReffile - FileFileImporterExceptionprotected void setAuthenticationService(AuthenticationService authenticationService)
protected void setContentService(ContentService contentService)
protected void setMimetypeService(MimetypeService mimetypeService)
protected void setNodeService(NodeService nodeService)
public void setDictionaryService(DictionaryService dictionaryService)
public void setTransactionService(TransactionService transactionService)
public void setTxnPerFile(boolean txnPerFile)
txnPerFile - true to force each file or directory creation to be in its
own fileCopyright © 2005–2020 Alfresco Software. All rights reserved.