org.apache.directory.server.core.schema
Interface NormalizerRegistry

All Known Implementing Classes:
BootstrapNormalizerRegistry, GlobalNormalizerRegistry

public interface NormalizerRegistry

Normalizer registry service interface.

Version:
$Rev: 434579 $
Author:
Apache Directory Project

Method Summary
 java.lang.String getSchemaName(java.lang.String oid)
          Gets the name of the schema this schema object is associated with.
 boolean hasNormalizer(java.lang.String oid)
          Checks to see if a Normalizer exists.
 org.apache.directory.shared.ldap.schema.Normalizer lookup(java.lang.String oid)
          Looks up a Normalizer by its unique Object Identifier.
 void register(java.lang.String schema, java.lang.String oid, org.apache.directory.shared.ldap.schema.Normalizer normalizer)
          Registers a Normalizer with this registry.
 

Method Detail

register

void register(java.lang.String schema,
              java.lang.String oid,
              org.apache.directory.shared.ldap.schema.Normalizer normalizer)
              throws javax.naming.NamingException
Registers a Normalizer with this registry.

Parameters:
schema - the name of the schema the Normalizer is associated with
normalizer - the Normalizer to register
Throws:
javax.naming.NamingException - if the Normalizer is already registered or the registration operation is not supported

lookup

org.apache.directory.shared.ldap.schema.Normalizer lookup(java.lang.String oid)
                                                          throws javax.naming.NamingException
Looks up a Normalizer by its unique Object Identifier.

Parameters:
oid - the object identifier
Returns:
the Normalizer for the oid
Throws:
javax.naming.NamingException - if there is a backing store failure or the Normalizer does not exist.

getSchemaName

java.lang.String getSchemaName(java.lang.String oid)
                               throws javax.naming.NamingException
Gets the name of the schema this schema object is associated with.

Parameters:
oid - the object identifier
Returns:
the schema name
Throws:
javax.naming.NamingException - if the schema object does not exist

hasNormalizer

boolean hasNormalizer(java.lang.String oid)
Checks to see if a Normalizer exists. Backing store failures simply return false.

Parameters:
oid - the object identifier
Returns:
true if a Normalizer definition exists for the oid, false otherwise


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.