Package org.opencms.module
Class CmsModuleImportData
java.lang.Object
org.opencms.module.CmsModuleImportData
Module data read from a module zip file.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addResource
(CmsResourceImportData resourceData) Adds the information for a single resource.boolean
checkUpdatable
(CmsObject cms) Checks if the installed module is updatable with the version from the import zip file.getCms()
Gets the CMS object.Gets the map of conflicting ids.Gets the module metadata from the import zip.Gets the list of resource data objects for the manifest entries.void
Sets the CMS object.void
Sets the module metadata.
-
Constructor Details
-
CmsModuleImportData
public CmsModuleImportData()
-
-
Method Details
-
addResource
Adds the information for a single resource.- Parameters:
resourceData
- the information for a single resource
-
checkUpdatable
Checks if the installed module is updatable with the version from the import zip file.- Parameters:
cms
- the current CMS context- Returns:
- true if the module is updatable
-
getCms
Gets the CMS object.- Returns:
- the CMS object
-
getConflictingIds
Gets the map of conflicting ids.The keys are structure ids from the manifest, the values are structure ids from the VFS.
- Returns:
- the conflicting id map
-
getModule
Gets the module metadata from the import zip.- Returns:
- the module metadata
-
getResourceData
Gets the list of resource data objects for the manifest entries.- Returns:
- the resource data objects
-
setCms
Sets the CMS object.- Parameters:
cms
- the CMS object to set
-
setModule
Sets the module metadata.- Parameters:
module
- the module metadata
-