|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.schema.registries.DefaultNormalizerRegistry
public class DefaultNormalizerRegistry
The POJO implementation for the NormalizerRegistry service.
Constructor Summary | |
---|---|
DefaultNormalizerRegistry()
Creates a new default DefaultNormalizerRegistry. |
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. |
java.util.Iterator<org.apache.directory.shared.ldap.schema.syntax.NormalizerDescription> |
normalizerDescriptionIterator()
Used to iterate through all normalizerDescriptions. |
java.util.Iterator<java.lang.String> |
oidIterator()
Used to iterate through all normalizers. |
void |
register(org.apache.directory.shared.ldap.schema.syntax.NormalizerDescription description,
org.apache.directory.shared.ldap.schema.Normalizer normalizer)
Registers a Normalizer with this registry. |
void |
renameSchema(java.lang.String originalSchemaName,
java.lang.String newSchemaName)
Renames the schemaName associated with entities within this registry to a new schema name. |
void |
unregister(java.lang.String oid)
Unregisters a normalizer from this registry by OID. |
void |
unregisterSchemaElements(java.lang.String schemaName)
Unregisters normalizers from this registry associated with a schema. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultNormalizerRegistry()
Method Detail |
---|
public void register(org.apache.directory.shared.ldap.schema.syntax.NormalizerDescription description, org.apache.directory.shared.ldap.schema.Normalizer normalizer) throws javax.naming.NamingException
NormalizerRegistry
register
in interface NormalizerRegistry
normalizer
- the Normalizer to register
javax.naming.NamingException
- if the Normalizer is already registered or the
registration operation is not supportedpublic org.apache.directory.shared.ldap.schema.Normalizer lookup(java.lang.String oid) throws javax.naming.NamingException
NormalizerRegistry
lookup
in interface NormalizerRegistry
oid
- the object identifier
javax.naming.NamingException
- if there is a backing store failure or the
Normalizer does not exist.public boolean hasNormalizer(java.lang.String oid)
NormalizerRegistry
hasNormalizer
in interface NormalizerRegistry
oid
- the object identifier
public java.lang.String getSchemaName(java.lang.String oid) throws javax.naming.NamingException
NormalizerRegistry
getSchemaName
in interface NormalizerRegistry
oid
- the object identifier
javax.naming.NamingException
- if the schema object does not existpublic java.util.Iterator<java.lang.String> oidIterator()
NormalizerRegistry
oidIterator
in interface NormalizerRegistry
public void unregister(java.lang.String oid) throws javax.naming.NamingException
NormalizerRegistry
unregister
in interface NormalizerRegistry
oid
- the numeric OID of the matchingRule the normalizer is for
javax.naming.NamingException
- if the provided argument is not a numeric OIDpublic void unregisterSchemaElements(java.lang.String schemaName)
NormalizerRegistry
unregisterSchemaElements
in interface NormalizerRegistry
schemaName
- the name of the schema whose normalizers are
removed from this registrypublic void renameSchema(java.lang.String originalSchemaName, java.lang.String newSchemaName)
NormalizerRegistry
renameSchema
in interface NormalizerRegistry
originalSchemaName
- the original schema namenewSchemaName
- the new name to give to the schemapublic java.util.Iterator<org.apache.directory.shared.ldap.schema.syntax.NormalizerDescription> normalizerDescriptionIterator()
NormalizerRegistry
normalizerDescriptionIterator
in interface NormalizerRegistry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |