org.apache.jackrabbit.core.query.lucene
Interface NamespaceMappings

All Superinterfaces:
org.apache.jackrabbit.spi.commons.namespace.NamespaceResolver
All Known Implementing Classes:
AbstractNamespaceMappings, FileBasedNamespaceMappings, NSRegistryBasedNamespaceMappings

public interface NamespaceMappings
extends org.apache.jackrabbit.spi.commons.namespace.NamespaceResolver

The class NamespaceMappings holds a namespace mapping that is used internally in the search index. Storing paths with the full uri of a namespace would require too much space in the search index.


Method Summary
 String translateName(org.apache.jackrabbit.spi.Name name)
          Translates a name from a session local namespace mapping into a search index private namespace mapping.
 String translatePath(org.apache.jackrabbit.spi.Path path)
          Translates a path into a search index private namespace mapping.
 
Methods inherited from interface org.apache.jackrabbit.spi.commons.namespace.NamespaceResolver
getPrefix, getURI
 

Method Detail

translateName

String translateName(org.apache.jackrabbit.spi.Name name)
                     throws org.apache.jackrabbit.spi.commons.conversion.IllegalNameException
Translates a name from a session local namespace mapping into a search index private namespace mapping.

Parameters:
name - the name to translate
Returns:
the translated JCR name
Throws:
org.apache.jackrabbit.spi.commons.conversion.IllegalNameException - if the name cannot be translated.

translatePath

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.

Parameters:
path - the path to translate
Returns:
the translated path.
Throws:
org.apache.jackrabbit.spi.commons.conversion.IllegalNameException - if the name cannot be translated.


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.