org.apache.directory.server.core.schema.bootstrap
Class BootstrapNormalizerRegistry

java.lang.Object
  extended by org.apache.directory.server.core.schema.bootstrap.BootstrapNormalizerRegistry
All Implemented Interfaces:
NormalizerRegistry

public class BootstrapNormalizerRegistry
extends java.lang.Object
implements NormalizerRegistry

The POJO implementation for the NormalizerRegistry service.

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

Constructor Summary
BootstrapNormalizerRegistry()
          Creates a default normalizer registry.
 
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.
 void setMonitor(NormalizerRegistryMonitor monitor)
          Sets the monitor used to deliver notification events to via callbacks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BootstrapNormalizerRegistry

public BootstrapNormalizerRegistry()
Creates a default normalizer registry.

Method Detail

setMonitor

public void setMonitor(NormalizerRegistryMonitor monitor)
Sets the monitor used to deliver notification events to via callbacks.

Parameters:
monitor - the monitor to recieve callback events

register

public void register(java.lang.String schema,
                     java.lang.String oid,
                     org.apache.directory.shared.ldap.schema.Normalizer normalizer)
              throws javax.naming.NamingException
Description copied from interface: NormalizerRegistry
Registers a Normalizer with this registry.

Specified by:
register in interface NormalizerRegistry
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

public org.apache.directory.shared.ldap.schema.Normalizer lookup(java.lang.String oid)
                                                          throws javax.naming.NamingException
Description copied from interface: NormalizerRegistry
Looks up a Normalizer by its unique Object Identifier.

Specified by:
lookup in interface NormalizerRegistry
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.

hasNormalizer

public boolean hasNormalizer(java.lang.String oid)
Description copied from interface: NormalizerRegistry
Checks to see if a Normalizer exists. Backing store failures simply return false.

Specified by:
hasNormalizer in interface NormalizerRegistry
Parameters:
oid - the object identifier
Returns:
true if a Normalizer definition exists for the oid, false otherwise

getSchemaName

public java.lang.String getSchemaName(java.lang.String oid)
                               throws javax.naming.NamingException
Description copied from interface: NormalizerRegistry
Gets the name of the schema this schema object is associated with.

Specified by:
getSchemaName in interface NormalizerRegistry
Parameters:
oid - the object identifier
Returns:
the schema name
Throws:
javax.naming.NamingException - if the schema object does not exist


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