|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.importexport.CmsVfsImportExportHandler
public class CmsVfsImportExportHandler
Import/export handler implementation for VFS data.
Constructor Summary | |
---|---|
CmsVfsImportExportHandler()
Creates a new VFS import/export handler. |
Method Summary | |
---|---|
void |
exportData(CmsObject cms,
I_CmsReport report)
Exports the data from the Cms. |
protected void |
finalize()
|
long |
getContentAge()
Returns the timestamp to limit the resources to be exported by date. |
java.lang.String |
getDescription()
Returns the description of this import/export handler. |
java.util.List |
getExportPaths()
Returns the list with VFS paths to be exported. |
java.lang.String |
getFileName()
Returns the name of the export file in the real file system. |
void |
importData(CmsObject cms,
java.lang.String importFile,
java.lang.String importPath,
I_CmsReport report)
Imports the data into the Cms. |
boolean |
isExportUserdata()
Returns the boolean flag to decide whether user/group data should be exported or not. |
boolean |
isIncludeSystem()
Returns the boolean flag to decide whether VFS resources under /system/ should be exported or not. |
boolean |
isIncludeUnchanged()
Returns the boolean flag to decide whether unchanged resources should be exported or not. |
boolean |
isProjectOnly()
Returns the projectOnly. |
boolean |
isRecursive()
Returns the recursive flag. |
boolean |
matches(org.dom4j.Document manifest)
Checks, if this import/export handler matches with a specified manifest document of an import, so that it is able to import the data listed in the manifest document. |
void |
setContentAge(long contentAge)
Sets the timestamp to limit the resources to be exported by date. |
void |
setDescription(java.lang.String description)
Sets the description of this import/export handler. |
void |
setExportPaths(java.util.List exportPaths)
Sets the list with VFS paths to be exported. |
void |
setExportUserdata(boolean exportUserdata)
Sets the boolean flag to decide whether user/group data should be exported or not. |
void |
setFileName(java.lang.String fileName)
Sets the name of the export file in the real file system. |
void |
setIncludeSystem(boolean excludeSystem)
Sets the boolean flag to decide whether VFS resources under /system/ should be exported or not. |
void |
setIncludeUnchanged(boolean excludeUnchanged)
Sets the boolean flag to decide whether unchanged resources should be exported or not. |
void |
setProjectOnly(boolean projectOnly)
Sets the projectOnly. |
void |
setRecursive(boolean recursive)
Sets the recursive flag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CmsVfsImportExportHandler()
Method Detail |
---|
public void exportData(CmsObject cms, I_CmsReport report) throws CmsImportExportException, CmsRoleViolationException
I_CmsImportExportHandler
exportData
in interface I_CmsImportExportHandler
cms
- the current OpenCms context objectreport
- a Cms report to print log messages
CmsImportExportException
- if operation was not successful
CmsRoleViolationException
- if the current user has not the required roleI_CmsImportExportHandler.exportData(org.opencms.file.CmsObject, org.opencms.report.I_CmsReport)
public long getContentAge()
Only resources that have been modified after this date will be exported.
public java.lang.String getDescription()
I_CmsImportExportHandler
The description is useful to print some info about the purpose of this handler.
getDescription
in interface I_CmsImportExportHandler
I_CmsImportExportHandler.getDescription()
public java.util.List getExportPaths()
public java.lang.String getFileName()
public void importData(CmsObject cms, java.lang.String importFile, java.lang.String importPath, I_CmsReport report) throws CmsImportExportException, CmsXmlException, CmsRoleViolationException
I_CmsImportExportHandler
importData
in interface I_CmsImportExportHandler
cms
- the current OpenCms context objectimportFile
- the name (absolute path) of the resource (zipfile or folder) to be importedimportPath
- the name (absolute path) of the destination folder in the Cms (if required)report
- a Cms report to print log messages
CmsImportExportException
- if operation was not successful
CmsXmlException
- if the manifest of the import could not be unmarshalled
CmsRoleViolationException
- if the current user has not the required roleI_CmsImportExportHandler.importData(org.opencms.file.CmsObject, java.lang.String, java.lang.String, org.opencms.report.I_CmsReport)
public boolean isExportUserdata()
public boolean isIncludeSystem()
public boolean isIncludeUnchanged()
public boolean isProjectOnly()
public boolean isRecursive()
public boolean matches(org.dom4j.Document manifest)
I_CmsImportExportHandler
matches
in interface I_CmsImportExportHandler
manifest
- the manifest.xml of the import as a dom4j XML document
I_CmsImportExportHandler.matches(org.dom4j.Document)
public void setContentAge(long contentAge)
Only resources that have been modified after this date will be exported.
contentAge
- the timestamp to limit the resources to be exported by datepublic void setDescription(java.lang.String description)
I_CmsImportExportHandler
The description is useful to print some info about the purpose of this handler.
setDescription
in interface I_CmsImportExportHandler
description
- the description of this import/export handlerI_CmsImportExportHandler.setDescription(java.lang.String)
public void setExportPaths(java.util.List exportPaths)
exportPaths
- the list with VFS paths to be exportedpublic void setExportUserdata(boolean exportUserdata)
exportUserdata
- true, if user/group data should not be exportedpublic void setFileName(java.lang.String fileName)
fileName
- the name of the export file in the real file systempublic void setIncludeSystem(boolean excludeSystem)
excludeSystem
- true, if VFS resources under /system/ should not be exportedpublic void setIncludeUnchanged(boolean excludeUnchanged)
excludeUnchanged
- true, if unchanged resources should not be exportedpublic void setProjectOnly(boolean projectOnly)
projectOnly
- the projectOnly to setpublic void setRecursive(boolean recursive)
recursive
- the recursive flag to setprotected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Object.finalize()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |