|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.opencms.importexport.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. |
String |
getDescription()
Returns the description of this import/export handler. |
List |
getExportPaths()
Returns the list with VFS paths to be exported. |
String |
getFileName()
Returns the name of the export file in the real file system. |
void |
importData(CmsObject cms,
String importFile,
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 |
matches(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(String description)
Sets the description of this import/export handler. |
void |
setExportPaths(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(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. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CmsVfsImportExportHandler()
| Method Detail |
public boolean isIncludeSystem()
public void exportData(CmsObject cms,
I_CmsReport report)
throws CmsImportExportException,
CmsRoleViolationException
I_CmsImportExportHandler
exportData in interface I_CmsImportExportHandlercms - the current OpenCms context objectreport - a Cms report to print log messages
CmsRoleViolationException - if the current user has not the required role
CmsImportExportException - if operation was not successfulI_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 String getDescription()
I_CmsImportExportHandlerThe description is useful to print some info about the purpose of this handler.
getDescription in interface I_CmsImportExportHandlerI_CmsImportExportHandler.getDescription()public List getExportPaths()
public String getFileName()
public void importData(CmsObject cms,
String importFile,
String importPath,
I_CmsReport report)
throws CmsImportExportException,
CmsXmlException,
CmsRoleViolationException
I_CmsImportExportHandler
importData in interface I_CmsImportExportHandlercms - 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
CmsXmlException - if the manifest of the import could not be unmarshalled
CmsImportExportException - if operation was not successful
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 isIncludeUnchanged()
public boolean isExportUserdata()
public boolean matches(Document manifest)
I_CmsImportExportHandler
matches in interface I_CmsImportExportHandlermanifest - 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(String description)
I_CmsImportExportHandlerThe description is useful to print some info about the purpose of this handler.
setDescription in interface I_CmsImportExportHandlerdescription - the description of this import/export handlerI_CmsImportExportHandler.setDescription(java.lang.String)public 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 setExportPaths(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(String fileName)
fileName - the name of the export file in the real file system
protected void finalize()
throws Throwable
ThrowableObject.finalize()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||