org.opencms.importexport
Class CmsExportParameters

java.lang.Object
  extended by org.opencms.importexport.CmsExportParameters

public class CmsExportParameters
extends java.lang.Object

Export parameters.

Since:
7.0.4
Version:
$Revision: 1.9 $
Author:
Michael Moossen

Constructor Summary
CmsExportParameters()
          Constructor.
CmsExportParameters(java.lang.String exportFile, org.dom4j.Element moduleElement, boolean exportResourceData, boolean exportUserdata, boolean exportProjectData, java.util.List<java.lang.String> resourcesToExport, boolean includeSystem, boolean includeUnchanged, long contentAge, boolean recursive, boolean inProject)
          Constructor.
 
Method Summary
 long getContentAge()
          Returns the content Age.
 org.dom4j.Element getModuleInfo()
          Returns the module informations if to export a module.
 java.lang.String getPath()
          Returns the file path, should be a zip file.
 java.util.List<java.lang.String> getResources()
          Returns the resources.
 boolean isExportAccountData()
          Checks if to export account data.
 boolean isExportAsFiles()
          Indicates if the resources are exported in one export .ZIP file (the default) or as individual files.
 boolean isExportProjectData()
          Checks if to export project data.
 boolean isExportResourceData()
          Checks if to export resource data.
 boolean isIncludeSystemFolder()
          Checks if to include the /system/ Folder.
 boolean isIncludeUnchangedResources()
          Checks if to include unchanged resources.
 boolean isInProject()
          Checks if to include only resources in the current project.
 boolean isRecursive()
          Checks if to recurse the resources to export.
 boolean isXmlValidation()
          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 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 setPath(java.lang.String path)
          Sets the file path, should be a zip file.
 void setRecursive(boolean recursive)
          Sets the recursive flag.
 void setResources(java.util.List<java.lang.String> resources)
          Sets the resources.
 void setXmlValidation(boolean xmlValidation)
          Sets the xml validation flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsExportParameters

public CmsExportParameters()
Constructor.


CmsExportParameters

public CmsExportParameters(java.lang.String exportFile,
                           org.dom4j.Element moduleElement,
                           boolean exportResourceData,
                           boolean exportUserdata,
                           boolean exportProjectData,
                           java.util.List<java.lang.String> resourcesToExport,
                           boolean includeSystem,
                           boolean includeUnchanged,
                           long contentAge,
                           boolean recursive,
                           boolean inProject)
Constructor.

Parameters:
exportFile - the zip file to export to
moduleElement - module informations in a Node for module export
exportResourceData - if the resource data has also to be exported
exportUserdata - if the account data has also to be exported
exportProjectData - if the project data has also to be exported
resourcesToExport - the paths of folders and files to export
includeSystem - if true, the system folder is included
includeUnchanged - true, if unchanged files should be included
contentAge - export contents changed after this date/time
recursive - recursive flag
inProject - if only resources in the current project are exported
Method Detail

getContentAge

public long getContentAge()
Returns the content Age.

Returns:
the content Age

getModuleInfo

public org.dom4j.Element getModuleInfo()
Returns the module informations if to export a module.

Returns:
the module informations if to export a module

getPath

public java.lang.String getPath()
Returns the file path, should be a zip file.

Returns:
the file path

getResources

public java.util.List<java.lang.String> getResources()
Returns the resources.

Returns:
the resources

isExportAccountData

public boolean isExportAccountData()
Checks if to export account data.

Returns:
true, if to export account data

isExportAsFiles

public boolean 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

public boolean isExportProjectData()
Checks if to export project data.

Returns:
true, if to export project data

isExportResourceData

public boolean isExportResourceData()
Checks if to export resource data.

Returns:
true, if to export resource data

isIncludeSystemFolder

public boolean isIncludeSystemFolder()
Checks if to include the /system/ Folder.

Returns:
true, if to include the /system/ Folder

isIncludeUnchangedResources

public boolean isIncludeUnchangedResources()
Checks if to include unchanged resources.

Returns:
true, if to include unchanged resources

isInProject

public boolean isInProject()
Checks if to include only resources in the current project.

Returns:
true, if to include only resources in the current project

isRecursive

public boolean isRecursive()
Checks if to recurse the resources to export.

Returns:
true, if to recurse the resources to export

isXmlValidation

public boolean isXmlValidation()
Checks if the manifest.xml file will be generated with dtd info.

Returns:
the xml validation flag

setContentAge

public void setContentAge(long contentAge)
Sets the content Age.

Parameters:
contentAge - the content Age to set

setExportAccountData

public void setExportAccountData(boolean exportAccountData)
Sets if to export account data.

Parameters:
exportAccountData - the flag to set

setExportAsFiles

public void setExportAsFiles(boolean exportAsFiles)
Controls if the resources are exported in one export .ZIP file (the default) or as individual files.

Parameters:
exportAsFiles - if false, then the resources will be exported in a .ZIP file, otherwise as individual files

setExportProjectData

public void setExportProjectData(boolean exportProjectData)
Sets if to export project data.

Parameters:
exportProjectData - the flag to set

setExportResourceData

public void setExportResourceData(boolean exportResourceData)
Sets if to export resource data.

Parameters:
exportResourceData - the flag to set

setIncludeSystemFolder

public void setIncludeSystemFolder(boolean includeSystemFolder)
Sets if to include the /system/ Folder.

Parameters:
includeSystemFolder - the flag to set

setIncludeUnchangedResources

public void setIncludeUnchangedResources(boolean includeUnchangedResources)
Sets if to include unchanged resources.

Parameters:
includeUnchangedResources - the flag to set

setInProject

public void setInProject(boolean inProject)
Sets if to only include files in the current project.

Parameters:
inProject - the flag to set

setModuleInfo

public void setModuleInfo(org.dom4j.Element moduleInfo)
Sets the module informations if to export a module.

Parameters:
moduleInfo - the module info node to set

setPath

public void setPath(java.lang.String path)
Sets the file path, should be a zip file.

Parameters:
path - the file path

setRecursive

public void setRecursive(boolean recursive)
Sets the recursive flag.

Parameters:
recursive - the flag to set

setResources

public void setResources(java.util.List<java.lang.String> resources)
Sets the resources.

Parameters:
resources - the resources to set

setXmlValidation

public void setXmlValidation(boolean xmlValidation)
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