Class AbstractNamespaceMappings

    • Constructor Detail

      • AbstractNamespaceMappings

        public AbstractNamespaceMappings()
    • Method Detail

      • translateName

        public String translateName​(org.apache.jackrabbit.spi.Name qName)
                             throws org.apache.jackrabbit.spi.commons.conversion.IllegalNameException
        Translates a name from a session local namespace mapping into a search index private namespace mapping.
        Specified by:
        translateName in interface NamespaceMappings
        Parameters:
        qName - the name to translate
        Returns:
        the translated JCR name
        Throws:
        org.apache.jackrabbit.spi.commons.conversion.IllegalNameException - if the name cannot be translated.
      • translatePath

        public String translatePath​(org.apache.jackrabbit.spi.Path path)
                             throws org.apache.jackrabbit.spi.commons.conversion.IllegalNameException
        Translates a path into a search index private namespace mapping.
        Specified by:
        translatePath in interface NamespaceMappings
        Parameters:
        path - the path to translate
        Returns:
        the translated path.
        Throws:
        org.apache.jackrabbit.spi.commons.conversion.IllegalNameException - if the name cannot be translated.