|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.importer.FileImporterImpl
public class FileImporterImpl
Simple import of content into the repository
| Constructor Summary | |
|---|---|
FileImporterImpl()
|
|
| Method Summary | |
|---|---|
int |
loadFile(org.alfresco.service.cmr.repository.NodeRef container,
java.io.File file)
Load a single file or directory without any recursion |
int |
loadFile(org.alfresco.service.cmr.repository.NodeRef container,
java.io.File file,
boolean recurse)
Load a file or directory into the repository |
int |
loadFile(org.alfresco.service.cmr.repository.NodeRef container,
java.io.File file,
java.io.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,
java.io.File file,
boolean recurse,
java.lang.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(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
|
protected void |
setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
|
protected void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
|
void |
setTransactionService(TransactionService transactionService)
|
void |
setTxnPerFile(boolean txnPerFile)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileImporterImpl()
| Method Detail |
|---|
public int loadFile(org.alfresco.service.cmr.repository.NodeRef container,
java.io.File file,
boolean recurse)
throws FileImporterException
FileImporter
loadFile 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 recurse
FileImporterException
public int loadNamedFile(org.alfresco.service.cmr.repository.NodeRef container,
java.io.File file,
boolean recurse,
java.lang.String name)
throws FileImporterException
FileImporter
loadNamedFile 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 uploaded
FileImporterException
public int loadFile(org.alfresco.service.cmr.repository.NodeRef container,
java.io.File file,
java.io.FileFilter filter,
boolean recurse)
throws FileImporterException
FileImporter
loadFile in interface FileImporterFileImporterException
public int loadFile(org.alfresco.service.cmr.repository.NodeRef container,
java.io.File file)
throws FileImporterException
FileImporter
loadFile in interface FileImporterFileImporterExceptionprotected void setAuthenticationService(AuthenticationService authenticationService)
protected void setContentService(ContentService contentService)
protected void setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
protected void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setDictionaryService(org.alfresco.service.cmr.dictionary.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 file
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||