|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.schema.bootstrap.BootstrapDitStructureRuleRegistry
public class BootstrapDitStructureRuleRegistry
A plain old java object implementation of an DITStructureRuleRegistry.
Constructor Summary | |
---|---|
BootstrapDitStructureRuleRegistry(OidRegistry oidRegistry)
Creates an empty BootstrapDitStructureRuleRegistry. |
Method Summary | |
---|---|
java.lang.String |
getSchemaName(java.lang.String id)
Gets the name of the schema this schema object is associated with. |
boolean |
hasDITStructureRule(java.lang.String id)
Checks to see if an dITStructureRule exists. |
java.util.Iterator |
list()
Lists all the DITStructureRules within this registry. |
org.apache.directory.shared.ldap.schema.DITStructureRule |
lookup(java.lang.String id)
Looks up an dITStructureRule by its unique Object IDentifier or by its name. |
void |
register(java.lang.String schema,
org.apache.directory.shared.ldap.schema.DITStructureRule dITStructureRule)
Registers a DITStructureRule with this registry. |
void |
setMonitor(DITStructureRuleRegistryMonitor monitor)
Sets the monitor that is to be notified via callback events. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BootstrapDitStructureRuleRegistry(OidRegistry oidRegistry)
Method Detail |
---|
public void setMonitor(DITStructureRuleRegistryMonitor monitor)
monitor
- the new monitor to notify of notable eventspublic void register(java.lang.String schema, org.apache.directory.shared.ldap.schema.DITStructureRule dITStructureRule) throws javax.naming.NamingException
DITStructureRuleRegistry
register
in interface DITStructureRuleRegistry
schema
- the name of the schema the DITStructureRule is associated withdITStructureRule
- the dITStructureRule to register
javax.naming.NamingException
- if the DITStructureRule is already registered
or the registration operation is not supportedpublic org.apache.directory.shared.ldap.schema.DITStructureRule lookup(java.lang.String id) throws javax.naming.NamingException
DITStructureRuleRegistry
lookup
in interface DITStructureRuleRegistry
id
- the object identifier, or the name
javax.naming.NamingException
- if the DITStructureRule does not existpublic boolean hasDITStructureRule(java.lang.String id)
DITStructureRuleRegistry
hasDITStructureRule
in interface DITStructureRuleRegistry
id
- the object identifier, or the name
public java.lang.String getSchemaName(java.lang.String id) throws javax.naming.NamingException
DITStructureRuleRegistry
getSchemaName
in interface DITStructureRuleRegistry
id
- the object identifier or the name
javax.naming.NamingException
- if the schema object does not existpublic java.util.Iterator list()
DITStructureRuleRegistry
list
in interface DITStructureRuleRegistry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |