Package org.opencms.importexport
Class CmsImportParameters
java.lang.Object
org.opencms.importexport.CmsImportParameters
Import parameters.
- Since:
- 7.0.4
-
Constructor Summary
ConstructorsConstructorDescriptionCmsImportParameters(String path, String destination, boolean keepPermissions) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the path in the OpenCms VFS to import into.getPath()Returns the file path, could be a folder or a zip file.booleanReturns the keep permissions flags.booleanChecks if the manifest.xml file will be validated during the import.voidsetDestinationPath(String importPath) Sets the path in the OpenCms VFS to import into.voidsetKeepPermissions(boolean keepPermissions) Sets the keep permissions flag.voidSets the file path, could be a folder or a zip file.voidsetXmlValidation(boolean xmlValidation) Sets the xml validation flag.
-
Constructor Details
-
CmsImportParameters
Constructor.- Parameters:
path- the file path, could be a folder or a zip filedestination- path in the OpenCms VFS to import intokeepPermissions- if set, the permissions set on existing resources will not be modified
-
-
Method Details
-
getDestinationPath
Returns the path in the OpenCms VFS to import into.- Returns:
- the path in the OpenCms VFS to import into
-
getPath
Returns the file path, could be a folder or a zip file.- Returns:
- the file path
-
isKeepPermissions
Returns the keep permissions flags. if set, the permissions set on existing resources will not be modified.- Returns:
- the keep permissions flag
-
isXmlValidation
Checks if the manifest.xml file will be validated during the import.- Returns:
- the xml validation flag
-
setDestinationPath
Sets the path in the OpenCms VFS to import into.- Parameters:
importPath- the import path to set
-
setKeepPermissions
Sets the keep permissions flag. If set, the permissions set on existing resources will not be modified.- Parameters:
keepPermissions- the keep permissions flag to set
-
setPath
Sets the file path, could be a folder or a zip file.- Parameters:
path- the file path, could be a folder or a zip file
-
setXmlValidation
Sets the xml validation flag. If set, the manifest.xml file will be validated during the import.- Parameters:
xmlValidation- the xml validation flag to set
-