|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileImporter
Interface to load files and directories into the hub. All will be created as new - there is no detection if a file exists or has changed etc..
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. |
Method Detail |
---|
int loadFile(org.alfresco.service.cmr.repository.NodeRef container, java.io.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 recurse
FileImporterException
int loadFile(org.alfresco.service.cmr.repository.NodeRef container, java.io.File file, java.io.FileFilter filter, boolean recurse) throws FileImporterException
container
- file
- filter
- recurse
-
FileImporterException
int loadFile(org.alfresco.service.cmr.repository.NodeRef container, java.io.File file) throws FileImporterException
container
- file
-
FileImporterException
int loadNamedFile(org.alfresco.service.cmr.repository.NodeRef container, java.io.File file, boolean recurse, java.lang.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 uploaded
FileImporterException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |