|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.opencms.importexport.CmsImport
public class CmsImport
Holds the functionality to import resources from the file system or a zip file into the OpenCms VFS.
| Field Summary | |
|---|---|
protected CmsObject |
m_cms
The cms context. |
protected java.util.List |
m_importImplementations
Stores all import interface implementations . |
protected I_CmsReport |
m_report
The output report. |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
void |
importData(CmsImportParameters parameters)
Imports the resources and writes them to the cms VFS, even if there already exist files with the same name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CmsObject m_cms
protected I_CmsReport m_report
protected java.util.List m_importImplementations
| Constructor Detail |
|---|
public CmsImport()
public CmsImport(CmsObject cms,
I_CmsReport report)
throws CmsRoleViolationException
cms - the cms contextreport - the output report
CmsRoleViolationException - if the current user dies not have role permissions to import the database| Method Detail |
|---|
public void importData(CmsImportParameters parameters)
throws CmsImportExportException,
CmsXmlException
parameters - the import parameters
CmsImportExportException - if something goes wrong
CmsXmlException - if the manifest of the import file could not be unmarshalled
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||