Class CmsTemplateMapperConfiguration

    • Constructor Detail

      • CmsTemplateMapperConfiguration

        public CmsTemplateMapperConfiguration​(CmsObject cms,
                                              org.dom4j.Document doc)
                                       throws CmsException
        Parses a template mapper configuration from an XML document.

        Parameters:
        cms - the current CMS context
        doc - the XML document containing the configuration
        Throws:
        CmsException - if something goes wrong
    • Method Detail

      • getMappedElementGroupType

        public java.lang.String getMappedElementGroupType​(java.lang.String type)
        Gets the mapped type for a given element group type, or null if there is no mapped type.

        Parameters:
        type - the original element group type
        Returns:
        the mapped element group type
      • getMappedFormatterConfiguration

        public java.lang.String getMappedFormatterConfiguration​(java.lang.String id)
        Gets the mapped formatter configuration structure id string for another formatter configuration structure id string.

        Parameters:
        id - the structure id of a formatter configuration as a string
        Returns:
        the mapped formatter configuration structure id of a string
      • getMappedFormatterJspId

        public CmsUUID getMappedFormatterJspId​(CmsUUID formatterId)
        Gets the mapped formatter JSP structure id for another formatter JSP structure id.

        Parameters:
        formatterId - the input formatter JSP structure id
        Returns:
        the mapped formatter JSP structure id
      • isEnabledForPath

        public boolean isEnabledForPath​(java.lang.String rootPath)
        Checks if the mapping is enabled for the given root path.

        Parameters:
        rootPath - a VFS root path
        Returns:
        true if the configuration is enabled for the given root path