Class AbstractNamespaceMappings
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.AbstractNamespaceMappings
-
- All Implemented Interfaces:
NamespaceMappings
,org.apache.jackrabbit.spi.commons.namespace.NamespaceResolver
- Direct Known Subclasses:
FileBasedNamespaceMappings
,NSRegistryBasedNamespaceMappings
public abstract class AbstractNamespaceMappings extends Object implements NamespaceMappings, org.apache.jackrabbit.spi.commons.namespace.NamespaceResolver
AbstractNamespaceMappings
is the base class for index internal namespace mappings.
-
-
Constructor Summary
Constructors Constructor Description AbstractNamespaceMappings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
translateName(org.apache.jackrabbit.spi.Name qName)
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.
-
-
-
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 interfaceNamespaceMappings
- 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 interfaceNamespaceMappings
- Parameters:
path
- the path to translate- Returns:
- the translated path.
- Throws:
org.apache.jackrabbit.spi.commons.conversion.IllegalNameException
- if the name cannot be translated.
-
-