Class CmsModuleImportData


  • public class CmsModuleImportData
    extends java.lang.Object
    Module data read from a module zip file.

    • Method Detail

      • addResource

        public void addResource​(CmsResourceImportData resourceData)
        Adds the information for a single resource.

        Parameters:
        resourceData - the information for a single resource
      • checkUpdatable

        public boolean checkUpdatable​(CmsObject cms)
        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

        public CmsObject getCms()
        Gets the CMS object.

        Returns:
        the CMS object
      • getConflictingIds

        public java.util.Map<CmsUUID,​CmsUUIDgetConflictingIds()
        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

        public CmsModule getModule()
        Gets the module metadata from the import zip.

        Returns:
        the module metadata
      • getResourceData

        public java.util.List<CmsResourceImportDatagetResourceData()
        Gets the list of resource data objects for the manifest entries.

        Returns:
        the resource data objects
      • setCms

        public void setCms​(CmsObject cms)
        Sets the CMS object.

        Parameters:
        cms - the CMS object to set
      • setModule

        public void setModule​(CmsModule module)
        Sets the module metadata.

        Parameters:
        module - the module metadata