Package org.opencms.importexport
Class CmsExportParameters
java.lang.Object
org.opencms.importexport.CmsExportParameters
Export parameters.
- Since:
- 7.0.4
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.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 TypeMethodDescriptionvoidAdds the resources from the additional resource list to the actual export resources.Gets the additional resource list.longReturns the content Age.Returns the export mode that should be used.org.dom4j.ElementReturns 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.booleanChecks if to export account data.booleanIndicates if the resources are exported in one export .ZIP file (the default) or as individual files.booleanChecks if to export project data.booleanChecks if to export resource data.booleanChecks if to include the /system/ Folder.booleanChecks if to include unchanged resources.booleanChecks if to include only resources in the current project.booleanChecks if to recurse the resources to export.booleanIf true, parent folders are not written to the manifest.booleanChecks if the manifest.xml file will be generated with dtd info.voidsetAdditionalResourceList(String additionalResourceList) Sets the additional resources for the export.voidsetAdditionalResourcesToExportWithMetaData(List<String> resourcesToExportWithMetaData) Checks if the manifest.xml file will be generated with dtd info.voidsetContentAge(long contentAge) Sets the content Age.voidsetExportAccountData(boolean exportAccountData) Sets if to export account data.voidsetExportAsFiles(boolean exportAsFiles) Controls if the resources are exported in one export .ZIP file (the default) or as individual files.voidsetExportMode(CmsModule.ExportMode exportMode) Sets the export mode.voidsetExportProjectData(boolean exportProjectData) Sets if to export project data.voidsetExportResourceData(boolean exportResourceData) Sets if to export resource data.voidsetIncludeSystemFolder(boolean includeSystemFolder) Sets if to include the /system/ Folder.voidsetIncludeUnchangedResources(boolean includeUnchangedResources) Sets if to include unchanged resources.voidsetInProject(boolean inProject) Sets if to only include files in the current project.voidsetModuleInfo(org.dom4j.Element moduleInfo) Sets the module informations if to export a module.voidSets the file path, should be a zip file.voidsetRecursive(boolean recursive) Sets the recursive flag.voidsetResources(List<String> resources) Sets the resources.voidsetSkipParentFolders(boolean skipSuperFolders) Enables / disables skipping of parent folders in the manifest.voidsetXmlValidation(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:
falseif the resources will be exported in a .ZIP file,trueif 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
-