public class CmsImport
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected CmsObject |
m_cms
The cms context.
|
protected java.util.List<I_CmsImport> |
m_importImplementations
Stores all import interface implementations .
|
protected I_CmsReport |
m_report
The output report.
|
构造器和说明 |
---|
CmsImport()
Constructs a new uninitialized import, required for special subclass data import.
|
CmsImport(CmsObject cms,
I_CmsReport report)
Constructs a new import object which imports the resources from an OpenCms
export zip file or a folder in the "real" file system.
|
限定符和类型 | 方法和说明 |
---|---|
void |
importData(CmsImportParameters parameters)
Imports the resources and writes them to the cms VFS, even if there
already exist files with the same name.
|
protected CmsObject m_cms
protected I_CmsReport m_report
protected java.util.List<I_CmsImport> m_importImplementations
public CmsImport()
public CmsImport(CmsObject cms, I_CmsReport report) throws CmsRoleViolationException
cms
- the cms contextreport
- the output reportCmsRoleViolationException
- if the current user dies not have role permissions to import the databasepublic void importData(CmsImportParameters parameters) throws CmsImportExportException, CmsXmlException
parameters
- the import parametersCmsImportExportException
- if something goes wrongCmsXmlException
- if the manifest of the import file could not be unmarshalled