Package org.opencms.importexport
Class CmsExportParameters
java.lang.Object
org.opencms.importexport.CmsExportParameters
Export parameters.
- Since:
- 7.0.4
-
Constructor Summary
ConstructorDescriptionConstructor.CmsExportParameters
(String exportFile, org.dom4j.Element moduleElement, boolean exportResourceData, boolean exportUserdata, boolean exportProjectData, List<String> resourcesToExport, boolean includeSystem, boolean includeUnchanged, long contentAge, boolean recursive, boolean inProject, CmsModule.ExportMode exportMode) Constructor.CmsExportParameters
(String exportFile, org.dom4j.Element moduleElement, boolean exportResourceData, boolean exportUserdata, boolean exportProjectData, List<String> resourcesToExport, boolean includeSystem, boolean includeUnchanged, long contentAge, boolean recursive, boolean inProject, CmsModule.ExportMode exportMode, List<String> additionalResourcesToExportWithMetaData) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the resources from the additional resource list to the actual export resources.Gets the additional resource list.long
Returns the content Age.Returns the export mode that should be used.org.dom4j.Element
Returns the module informations if to export a module.getPath()
Returns the file path, should be a zip file.Returns the resources.Returns the resources to export with (some additional) meta-data, even for reduced meta-data export.boolean
Checks if to export account data.boolean
Indicates if the resources are exported in one export .ZIP file (the default) or as individual files.boolean
Checks if to export project data.boolean
Checks if to export resource data.boolean
Checks if to include the /system/ Folder.boolean
Checks if to include unchanged resources.boolean
Checks if to include only resources in the current project.boolean
Checks if to recurse the resources to export.boolean
If true, parent folders are not written to the manifest.boolean
Checks if the manifest.xml file will be generated with dtd info.void
setAdditionalResourceList
(String additionalResourceList) Sets the additional resources for the export.void
setAdditionalResourcesToExportWithMetaData
(List<String> resourcesToExportWithMetaData) Checks if the manifest.xml file will be generated with dtd info.void
setContentAge
(long contentAge) Sets the content Age.void
setExportAccountData
(boolean exportAccountData) Sets if to export account data.void
setExportAsFiles
(boolean exportAsFiles) Controls if the resources are exported in one export .ZIP file (the default) or as individual files.void
setExportMode
(CmsModule.ExportMode exportMode) Sets the export mode.void
setExportProjectData
(boolean exportProjectData) Sets if to export project data.void
setExportResourceData
(boolean exportResourceData) Sets if to export resource data.void
setIncludeSystemFolder
(boolean includeSystemFolder) Sets if to include the /system/ Folder.void
setIncludeUnchangedResources
(boolean includeUnchangedResources) Sets if to include unchanged resources.void
setInProject
(boolean inProject) Sets if to only include files in the current project.void
setModuleInfo
(org.dom4j.Element moduleInfo) Sets the module informations if to export a module.void
Sets the file path, should be a zip file.void
setRecursive
(boolean recursive) Sets the recursive flag.void
setResources
(List<String> resources) Sets the resources.void
setSkipParentFolders
(boolean skipSuperFolders) Enables / disables skipping of parent folders in the manifest.void
setXmlValidation
(boolean xmlValidation) Sets the xml validation flag.
-
Constructor Details
-
CmsExportParameters
public CmsExportParameters()Constructor. -
CmsExportParameters
public CmsExportParameters(String exportFile, org.dom4j.Element moduleElement, boolean exportResourceData, boolean exportUserdata, boolean exportProjectData, List<String> resourcesToExport, boolean includeSystem, boolean includeUnchanged, long contentAge, boolean recursive, boolean inProject, CmsModule.ExportMode exportMode) Constructor.- Parameters:
exportFile
- the zip file to export tomoduleElement
- module informations in a Node for module exportexportResourceData
- if the resource data has also to be exportedexportUserdata
- if the account data has also to be exportedexportProjectData
- if the project data has also to be exportedresourcesToExport
- the paths of folders and files to exportincludeSystem
- iftrue
, the system folder is includedincludeUnchanged
-true
, if unchanged files should be includedcontentAge
- export contents changed after this date/timerecursive
- recursive flaginProject
- if only resources in the current project are exportedexportMode
- the export mode to use
-
CmsExportParameters
public CmsExportParameters(String exportFile, org.dom4j.Element moduleElement, boolean exportResourceData, boolean exportUserdata, boolean exportProjectData, List<String> resourcesToExport, boolean includeSystem, boolean includeUnchanged, long contentAge, boolean recursive, boolean inProject, CmsModule.ExportMode exportMode, List<String> additionalResourcesToExportWithMetaData) Constructor.- Parameters:
exportFile
- the zip file to export tomoduleElement
- module informations in a Node for module exportexportResourceData
- if the resource data has also to be exportedexportUserdata
- if the account data has also to be exportedexportProjectData
- if the project data has also to be exportedresourcesToExport
- the paths of folders and files to exportincludeSystem
- iftrue
, the system folder is includedincludeUnchanged
-true
, if unchanged files should be includedcontentAge
- export contents changed after this date/timerecursive
- recursive flaginProject
- if only resources in the current project are exportedexportMode
- the export mode to useadditionalResourcesToExportWithMetaData
- the list of export-site relative paths of folders/files for which meta data should be exported, even if they do not belong the the resourcesToExport.
-
-
Method Details
-
addAdditionalResources
Adds the resources from the additional resource list to the actual export resources. -
getAdditionalResourceList
Gets the additional resource list.- Returns:
- the additional resource list
-
getContentAge
Returns the content Age.- Returns:
- the content Age
-
getExportMode
Returns the export mode that should be used.- Returns:
- the export mode that should be used.
-
getModuleInfo
Returns the module informations if to export a module.- Returns:
- the module informations if to export a module
-
getPath
Returns the file path, should be a zip file.- Returns:
- the file path
-
getResources
Returns the resources.- Returns:
- the resources
-
getResourcesToExportWithMetaData
Returns the resources to export with (some additional) meta-data, even for reduced meta-data export.- Returns:
- the resources to export with (some additional) meta-data, even for reduced meta-data export.
-
isExportAccountData
Checks if to export account data.- Returns:
true
, if to export account data
-
isExportAsFiles
Indicates if the resources are exported in one export .ZIP file (the default) or as individual files.- Returns:
false
if the resources will be exported in a .ZIP file,true
if the resources will be exported as individual files
-
isExportProjectData
Checks if to export project data.- Returns:
true
, if to export project data
-
isExportResourceData
Checks if to export resource data.- Returns:
true
, if to export resource data
-
isIncludeSystemFolder
Checks if to include the /system/ Folder.- Returns:
true
, if to include the /system/ Folder
-
isIncludeUnchangedResources
Checks if to include unchanged resources.- Returns:
true
, if to include unchanged resources
-
isInProject
Checks if to include only resources in the current project.- Returns:
true
, if to include only resources in the current project
-
isRecursive
Checks if to recurse the resources to export.- Returns:
true
, if to recurse the resources to export
-
isSkipParentFolders
If true, parent folders are not written to the manifest.- Returns:
- true if parent folders should be skipped
-
isXmlValidation
Checks if the manifest.xml file will be generated with dtd info.- Returns:
- the xml validation flag
-
setAdditionalResourceList
Sets the additional resources for the export.- Parameters:
additionalResourceList
- the additional resource paths to export, separated by newlines
-
setAdditionalResourcesToExportWithMetaData
Checks if the manifest.xml file will be generated with dtd info.- Parameters:
resourcesToExportWithMetaData
- the vfs paths of the resources.
-
setContentAge
Sets the content Age.- Parameters:
contentAge
- the content Age to set
-
setExportAccountData
Sets if to export account data.- Parameters:
exportAccountData
- the flag to set
-
setExportAsFiles
Controls if the resources are exported in one export .ZIP file (the default) or as individual files.- Parameters:
exportAsFiles
- iffalse
, then the resources will be exported in a .ZIP file, otherwise as individual files
-
setExportMode
Sets the export mode.- Parameters:
exportMode
- the export mode to set
-
setExportProjectData
Sets if to export project data.- Parameters:
exportProjectData
- the flag to set
-
setExportResourceData
Sets if to export resource data.- Parameters:
exportResourceData
- the flag to set
-
setIncludeSystemFolder
Sets if to include the /system/ Folder.- Parameters:
includeSystemFolder
- the flag to set
-
setIncludeUnchangedResources
Sets if to include unchanged resources.- Parameters:
includeUnchangedResources
- the flag to set
-
setInProject
Sets if to only include files in the current project.- Parameters:
inProject
- the flag to set
-
setModuleInfo
Sets the module informations if to export a module.- Parameters:
moduleInfo
- the module info node to set
-
setPath
Sets the file path, should be a zip file.- Parameters:
path
- the file path
-
setRecursive
Sets the recursive flag.- Parameters:
recursive
- the flag to set
-
setResources
Sets the resources.- Parameters:
resources
- the resources to set
-
setSkipParentFolders
Enables / disables skipping of parent folders in the manifest.- Parameters:
skipSuperFolders
- true if parent folders should not be written to the manifest
-
setXmlValidation
Sets the xml validation flag. If set, the manifest.xml file will be generated with dtd info.- Parameters:
xmlValidation
- the xml validation flag to set
-