public interface I_CmsImport
OpenCms supports different import versions, for each version a own import class must be implemented.
限定符和类型 | 方法和说明 |
---|---|
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)
已过时。
|
boolean |
matches(CmsImportParameters parameters)
Checks if the file given as parameter matches this import version implementation.
|
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 importCmsImportExportException
- if something goes wrongCmsXmlException
- 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)
insteadcms
- 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 filesCmsImportExportException
- if something goes wrongboolean matches(CmsImportParameters parameters) throws CmsImportExportException
parameters
- the parameters to use during matchingtrue
if the file can be imported by this import version implementationCmsImportExportException
- if something goes wrong