|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface I_CmsImport
This interface describes a import class which is used to import resources into the VFS.
OpenCms supports different import versions, for each version a own import class must be implemented.
| Method Summary | |
|---|---|
int |
getVersion()
Returns the version of the import implementation. |
void |
importData(CmsObject cms,
I_CmsReport report,
CmsImportParameters parameters)
Imports the data. |
void |
importResources(CmsObject cms,
java.lang.String importPath,
I_CmsReport report,
java.io.File importResource,
java.util.zip.ZipFile importZip,
org.dom4j.Document docXml)
Deprecated. use importData(CmsObject, I_CmsReport, CmsImportParameters) instead |
boolean |
matches(CmsImportParameters parameters)
Checks if the file given as parameter matches this import version implementation. |
| Method Detail |
|---|
int getVersion()
void importData(CmsObject cms,
I_CmsReport report,
CmsImportParameters parameters)
throws CmsImportExportException,
CmsXmlException
cms - the current users OpenCms contextreport - a report object to output the progress information toparameters - the parameters to use during the import
CmsImportExportException - if something goes wrong
CmsXmlException - if the manifest file could not be unmarshalled
@Deprecated
void importResources(CmsObject cms,
java.lang.String importPath,
I_CmsReport report,
java.io.File importResource,
java.util.zip.ZipFile importZip,
org.dom4j.Document docXml)
throws CmsImportExportException
importData(CmsObject, I_CmsReport, CmsImportParameters) instead
cms - the current users OpenCms contextimportPath - the path in the OpenCms VFS to import intoreport - a report object to output the progress information toimportResource - the import-resource (folder) to load resources fromimportZip - the import-resource (zip) to load resources fromdocXml - the manifest.xml file which contains the meta information of the imported files
CmsImportExportException - if something goes wrong
boolean matches(CmsImportParameters parameters)
throws CmsImportExportException
parameters - the parameters to use during matching
true if the file can be imported by this import version implementation
CmsImportExportException - if something goes wrong
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||