Package org.opencms.ui.apps.modules
Class CmsModuleImportFile
java.lang.Object
org.opencms.ui.apps.modules.CmsModuleImportFile
A bean representing a module zip file to be imported.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the module data.getPath()
Gets the path of the zip file.void
Loads the module data from the zip file and validates whether the module is importable, throwing an exception otherwise.
-
Constructor Details
-
CmsModuleImportFile
Creates a new instance.- Parameters:
path
- the path of the module zip file to import
-
-
Method Details
-
getModule
Gets the module data.- Returns:
- the module data
-
getPath
Gets the path of the zip file.- Returns:
- the path of the zip file
-
loadAndValidate
Loads the module data from the zip file and validates whether the module is importable, throwing an exception otherwise.- Throws:
CmsConfigurationException
- if the module is not importable for some reason
-