public class OwLocalFileDocumentImporter extends Object implements com.wewebu.ow.server.app.OwDocumentImporter
Special class representing the document importer which handle local file uploads.
The files were uploaded to a temporary location defined by the application.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Modifier and Type | Field and Description |
---|---|
protected com.wewebu.ow.server.util.OwXMLUtil |
m_config
the configuration of this importer
|
protected com.wewebu.ow.server.app.OwMainAppContext |
m_context
the current MainAppContext
|
protected boolean |
m_singleFileImports
the current state of single file import
|
Constructor and Description |
---|
OwLocalFileDocumentImporter() |
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
protected com.wewebu.ow.server.app.OwMainAppContext |
getContext() |
String |
getDisplayName() |
String |
getIconURL() |
com.wewebu.ow.server.ui.OwView |
getPostProcessView(int importContext_p,
com.wewebu.ow.server.ecm.OwObject savedObj_p) |
protected String |
getTempDir()
Returns the path to the common temporary folder for this importer.
|
protected int |
getTempFileID()
Returns a unique ID for a file in the temp folder.
|
com.wewebu.ow.server.ui.OwView |
getView(int context_p,
com.wewebu.ow.server.app.OwDocumentImporterCallback callback_p) |
boolean |
hasPostProcessView(int importContext_p) |
void |
init(com.wewebu.ow.server.app.OwMainAppContext context_p,
com.wewebu.ow.server.util.OwXMLUtil config_p) |
void |
releaseAll() |
void |
setSingleFileImports(boolean singleFileImports_p) |
protected com.wewebu.ow.server.app.OwMainAppContext m_context
protected com.wewebu.ow.server.util.OwXMLUtil m_config
protected boolean m_singleFileImports
public void init(com.wewebu.ow.server.app.OwMainAppContext context_p, com.wewebu.ow.server.util.OwXMLUtil config_p) throws com.wewebu.ow.server.exceptions.OwConfigurationException
init
in interface com.wewebu.ow.server.app.OwDocumentImporter
com.wewebu.ow.server.exceptions.OwConfigurationException
protected String getTempDir() throws com.wewebu.ow.server.exceptions.OwConfigurationException
com.wewebu.ow.server.exceptions.OwConfigurationException
- if the temporary folder can not be createdprotected int getTempFileID()
protected com.wewebu.ow.server.app.OwMainAppContext getContext()
public String getDisplayName()
getDisplayName
in interface com.wewebu.ow.server.app.OwDocumentImporter
public String getIconURL()
getIconURL
in interface com.wewebu.ow.server.app.OwDocumentImporter
public void setSingleFileImports(boolean singleFileImports_p)
setSingleFileImports
in interface com.wewebu.ow.server.app.OwDocumentImporter
public com.wewebu.ow.server.ui.OwView getView(int context_p, com.wewebu.ow.server.app.OwDocumentImporterCallback callback_p)
getView
in interface com.wewebu.ow.server.app.OwDocumentImporter
public void releaseAll()
releaseAll
in interface com.wewebu.ow.server.app.OwDocumentImporter
public com.wewebu.ow.server.ui.OwView getPostProcessView(int importContext_p, com.wewebu.ow.server.ecm.OwObject savedObj_p)
getPostProcessView
in interface com.wewebu.ow.server.app.OwDocumentImporter
public boolean hasPostProcessView(int importContext_p)
hasPostProcessView
in interface com.wewebu.ow.server.app.OwDocumentImporter
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.