public class ImportBasedFactory extends BaseContentFactory
FileManager
service.Modifier and Type | Class and Description |
---|---|
static class |
ImportBasedFactory.PathOptions |
Modifier and Type | Field and Description |
---|---|
protected FileManager |
fileManager |
static String |
IMPORT_FILE_PATH_OPTION |
static String |
IMPORT_OVERWRITE_OPTION |
protected File |
importedFile |
protected Map<String,String> |
options |
protected Boolean |
overwrite |
session
Constructor and Description |
---|
ImportBasedFactory() |
Modifier and Type | Method and Description |
---|---|
void |
createContentStructure(DocumentModel eventDoc) |
protected FileManager |
getFileManagerService() |
protected void |
importBlob(File file,
String parentPath)
Use fileManager to import the given file.
|
boolean |
initFactory(Map<String,String> options,
List<ACEDescriptor> rootAcl,
List<TemplateItemDescriptor> template) |
initSession
public static final String IMPORT_FILE_PATH_OPTION
public static final String IMPORT_OVERWRITE_OPTION
protected FileManager fileManager
protected File importedFile
public ImportBasedFactory()
public boolean initFactory(Map<String,String> options, List<ACEDescriptor> rootAcl, List<TemplateItemDescriptor> template)
public void createContentStructure(DocumentModel eventDoc)
protected void importBlob(File file, String parentPath) throws IOException
file
- to importparentPath
- of the targetDocumentIOException
protected FileManager getFileManagerService()
Copyright © 2016 Nuxeo SA. All rights reserved.