Package org.opencms.importexport
Class CmsImportParameters
java.lang.Object
org.opencms.importexport.CmsImportParameters
Import parameters.
- Since:
- 7.0.4
-
Constructor Summary
ConstructorDescriptionCmsImportParameters
(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.boolean
Returns the keep permissions flags.boolean
Checks if the manifest.xml file will be validated during the import.void
setDestinationPath
(String importPath) Sets the path in the OpenCms VFS to import into.void
setKeepPermissions
(boolean keepPermissions) Sets the keep permissions flag.void
Sets the file path, could be a folder or a zip file.void
setXmlValidation
(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
-