Interface NamespaceMappings
-
- All Superinterfaces:
NamespaceResolver
- All Known Implementing Classes:
AbstractNamespaceMappings,FileBasedNamespaceMappings,NSRegistryBasedNamespaceMappings
public interface NamespaceMappings extends NamespaceResolver
The classNamespaceMappingsholds 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringtranslateName(Name name)Translates a name from a session local namespace mapping into a search index private namespace mapping.StringtranslatePath(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(Name name) throws 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:
IllegalNameException- if the name cannot be translated.
-
translatePath
String translatePath(Path path) throws IllegalNameException
Translates a path into a search index private namespace mapping.- Parameters:
path- the path to translate- Returns:
- the translated path.
- Throws:
IllegalNameException- if the name cannot be translated.
-
-