Package org.opencms.importexport
Class CmsVfsImportExportHandler
java.lang.Object
org.opencms.importexport.CmsVfsImportExportHandler
- All Implemented Interfaces:
I_CmsImportExportHandler
Import/export handler implementation for VFS data.
- Since:
- 6.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexportData(CmsObject cms, I_CmsReport report) Exports the data from the Cms.longDeprecated.Returns the description of this import/export handler.Returns the export parameters.Deprecated.usesetExportParams(CmsExportParameters)insteadDeprecated.usesetExportParams(CmsExportParameters)insteadReturns the import parameters.voidimportData(CmsObject cms, String importFile, String importPath, I_CmsReport report) Deprecated.useimportData(CmsObject, I_CmsReport)insteadvoidimportData(CmsObject cms, I_CmsReport report) Imports the data into the Cms.booleanDeprecated.usesetExportParams(CmsExportParameters)insteadbooleanDeprecated.usesetExportParams(CmsExportParameters)insteadbooleanDeprecated.usesetExportParams(CmsExportParameters)insteadbooleanDeprecated.usesetExportParams(CmsExportParameters)insteadbooleanDeprecated.usesetExportParams(CmsExportParameters)insteadbooleanmatches(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.voidsetContentAge(long contentAge) Deprecated.usesetExportParams(CmsExportParameters)insteadvoidsetDescription(String description) Sets the description of this import/export handler.voidsetExportParams(CmsExportParameters exportParams) Sets the export parameters.voidsetExportPaths(List<String> exportPaths) Deprecated.usesetExportParams(CmsExportParameters)insteadvoidsetExportUserdata(boolean exportUserdata) Deprecated.usesetExportParams(CmsExportParameters)insteadvoidsetFileName(String fileName) Deprecated.usesetExportParams(CmsExportParameters)insteadvoidsetImportParameters(CmsImportParameters importParams) Sets the import parameters.voidsetIncludeSystem(boolean excludeSystem) Deprecated.usesetExportParams(CmsExportParameters)insteadvoidsetIncludeUnchanged(boolean excludeUnchanged) Deprecated.usesetExportParams(CmsExportParameters)insteadvoidsetProjectOnly(boolean projectOnly) Deprecated.usesetExportParams(CmsExportParameters)insteadvoidsetRecursive(boolean recursive) Deprecated.usesetExportParams(CmsExportParameters)instead
-
Constructor Details
-
CmsVfsImportExportHandler
public CmsVfsImportExportHandler()Creates a new VFS import/export handler.
-
-
Method Details
-
exportData
public void exportData(CmsObject cms, I_CmsReport report) throws CmsImportExportException, CmsRoleViolationException Description copied from interface:I_CmsImportExportHandlerExports the data from the Cms.- Specified by:
exportDatain interfaceI_CmsImportExportHandler- Parameters:
cms- the current OpenCms context objectreport- a Cms report to print log messages- Throws:
CmsImportExportException- if operation was not successfulCmsRoleViolationException- if the current user has not the required role- See Also:
-
getContentAge
Deprecated.usesetExportParams(CmsExportParameters)insteadReturns the timestamp to limit the resources to be exported by date.Only resources that have been modified after this date will be exported.
- Returns:
- the timestamp to limit the resources to be exported by date
-
getDescription
Description copied from interface:I_CmsImportExportHandlerReturns the description of this import/export handler.The description is useful to print some info about the purpose of this handler.
- Specified by:
getDescriptionin interfaceI_CmsImportExportHandler- Returns:
- the description of this import/export handler
- See Also:
-
getExportParams
Returns the export parameters.- Returns:
- the export parameters
-
getExportPaths
Deprecated.usesetExportParams(CmsExportParameters)insteadReturns the list with VFS paths to be exported.- Returns:
- the list with VFS paths to be exported
-
getFileName
Deprecated.usesetExportParams(CmsExportParameters)insteadReturns the name of the export file in the real file system.- Returns:
- the name of the export file in the real file system
-
getImportParameters
Returns the import parameters.- Specified by:
getImportParametersin interfaceI_CmsImportExportHandler- Returns:
- the import parameters
-
importData
public void importData(CmsObject cms, I_CmsReport report) throws CmsImportExportException, CmsXmlException, CmsRoleViolationException Description copied from interface:I_CmsImportExportHandlerImports the data into the Cms.- Specified by:
importDatain interfaceI_CmsImportExportHandler- Parameters:
cms- the current OpenCms context objectreport- a Cms report to print log messages- Throws:
CmsImportExportException- if operation was not successfulCmsXmlException- if the manifest of the import could not be unmarshalledCmsRoleViolationException- if the current user has not the required role- See Also:
-
importData
@Deprecated public void importData(CmsObject cms, String importFile, String importPath, I_CmsReport report) throws CmsXmlException, CmsImportExportException, CmsRoleViolationException, CmsException Deprecated.useimportData(CmsObject, I_CmsReport)insteadDescription copied from interface:I_CmsImportExportHandlerImports the data into the Cms.- Specified by:
importDatain interfaceI_CmsImportExportHandler- Parameters:
cms- the current OpenCms context objectimportFile- the name (absolute path) of the resource (zip file 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- Throws:
CmsXmlException- if the manifest of the import could not be unmarshalledCmsImportExportException- if operation was not successfulCmsRoleViolationException- if the current user has not the required roleCmsException- in case of errors accessing the VFS- See Also:
-
isExportUserdata
Deprecated.usesetExportParams(CmsExportParameters)insteadReturns the boolean flag to decide whether user/group data should be exported or not.- Returns:
- true, if user/group data should be exported
-
isIncludeSystem
Deprecated.usesetExportParams(CmsExportParameters)insteadReturns the boolean flag to decide whether VFS resources under /system/ should be exported or not.- Returns:
- true, if VFS resources under /system/ should not be exported
-
isIncludeUnchanged
Deprecated.usesetExportParams(CmsExportParameters)insteadReturns the boolean flag to decide whether unchanged resources should be exported or not.- Returns:
- true, if unchanged resources should not be exported
-
isProjectOnly
Deprecated.usesetExportParams(CmsExportParameters)insteadReturns the projectOnly.- Returns:
- the projectOnly
-
isRecursive
Deprecated.usesetExportParams(CmsExportParameters)insteadReturns the recursive flag.- Returns:
- the recursive flag
-
matches
Description copied from interface:I_CmsImportExportHandlerChecks, 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.- Specified by:
matchesin interfaceI_CmsImportExportHandler- Parameters:
manifest- the manifest.xml of the import as a dom4j XML document- Returns:
- true, this handler is able to import the data listed in the manifest document
- See Also:
-
setContentAge
Deprecated.usesetExportParams(CmsExportParameters)insteadSets the timestamp to limit the resources to be exported by date.Only resources that have been modified after this date will be exported.
- Parameters:
contentAge- the timestamp to limit the resources to be exported by date
-
setDescription
Description copied from interface:I_CmsImportExportHandlerSets the description of this import/export handler.The description is useful to print some info about the purpose of this handler.
- Specified by:
setDescriptionin interfaceI_CmsImportExportHandler- Parameters:
description- the description of this import/export handler- See Also:
-
setExportParams
Sets the export parameters.- Parameters:
exportParams- the parameters to set
-
setExportPaths
Deprecated.usesetExportParams(CmsExportParameters)insteadSets the list with VFS paths to be exported.- Parameters:
exportPaths- the list with VFS paths to be exported
-
setExportUserdata
Deprecated.usesetExportParams(CmsExportParameters)insteadSets the boolean flag to decide whether user/group data should be exported or not.- Parameters:
exportUserdata- true, if user/group data should not be exported
-
setFileName
Deprecated.usesetExportParams(CmsExportParameters)insteadSets the name of the export file in the real file system.- Parameters:
fileName- the name of the export file in the real file system
-
setImportParameters
Sets the import parameters.- Specified by:
setImportParametersin interfaceI_CmsImportExportHandler- Parameters:
importParams- the parameters to set
-
setIncludeSystem
Deprecated.usesetExportParams(CmsExportParameters)insteadSets the boolean flag to decide whether VFS resources under /system/ should be exported or not.- Parameters:
excludeSystem- true, if VFS resources under /system/ should not be exported
-
setIncludeUnchanged
Deprecated.usesetExportParams(CmsExportParameters)insteadSets the boolean flag to decide whether unchanged resources should be exported or not.- Parameters:
excludeUnchanged- true, if unchanged resources should not be exported
-
setProjectOnly
Deprecated.usesetExportParams(CmsExportParameters)insteadSets the projectOnly.- Parameters:
projectOnly- the projectOnly to set
-
setRecursive
Deprecated.usesetExportParams(CmsExportParameters)insteadSets the recursive flag.- Parameters:
recursive- the recursive flag to set
-
setExportParams(CmsExportParameters)instead