Package org.opencms.ui.apps.modules
Class CmsModuleImportFile
- java.lang.Object
-
- org.opencms.ui.apps.modules.CmsModuleImportFile
-
public class CmsModuleImportFile extends java.lang.Object
A bean representing a module zip file to be imported.
-
-
Constructor Summary
Constructors Constructor Description CmsModuleImportFile(java.lang.String path)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmsModule
getModule()
Gets the module data.java.lang.String
getPath()
Gets the path of the zip file.void
loadAndValidate()
Loads the module data from the zip file and validates whether the module is importable, throwing an exception otherwise.
-
-
-
Constructor Detail
-
CmsModuleImportFile
public CmsModuleImportFile(java.lang.String path)
Creates a new instance.- Parameters:
path
- the path of the module zip file to import
-
-
Method Detail
-
getPath
public java.lang.String getPath()
Gets the path of the zip file.- Returns:
- the path of the zip file
-
loadAndValidate
public void loadAndValidate() throws CmsConfigurationException
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
-
-