|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.schema.registries.DefaultDitStructureRuleRegistry
public class DefaultDitStructureRuleRegistry
A plain old java object implementation of an DITStructureRuleRegistry.
Constructor Summary | |
---|---|
DefaultDitStructureRuleRegistry(OidRegistry oidRegistry)
Creates an empty DefaultDitStructureRuleRegistry. |
Method Summary | |
---|---|
java.lang.String |
getSchemaName(java.lang.Integer ruleId)
Gets the schema name for a DITStructureRule using the rule identifier. |
java.lang.String |
getSchemaName(java.lang.String id)
Gets the name of the schema this schema object is associated with. |
boolean |
hasDITStructureRule(java.lang.Integer ruleId)
Checks to see if an dITStructureRule exists using the rule identifier. |
boolean |
hasDITStructureRule(java.lang.String id)
Checks to see if an dITStructureRule exists using the object identifier of the nameForm appended with the rule identifier of the DITStructureRule. |
java.util.Iterator<org.apache.directory.shared.ldap.schema.DITStructureRule> |
iterator()
Lists all the DITStructureRules within this registry. |
org.apache.directory.shared.ldap.schema.DITStructureRule |
lookup(java.lang.Integer ruleId)
Looks up an dITStructureRule by its unique Object IDentifier or by its name. |
org.apache.directory.shared.ldap.schema.DITStructureRule |
lookup(java.lang.String id)
Looks up an dITStructureRule using a composite key composed of the nameForm object identifier with a DOT and the rule id of the DITStructureRule appended to it. |
void |
register(org.apache.directory.shared.ldap.schema.DITStructureRule dITStructureRule)
Registers a DITStructureRule with this registry. |
void |
unregister(java.lang.Integer ruleId)
Unregisters a DITStructureRule using it's rule identifier. |
void |
unregister(java.lang.String numericOid)
Removes the SchemaObject registered with this registry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDitStructureRuleRegistry(OidRegistry oidRegistry)
oidRegistry
- used by this registry for OID to name resolution of
dependencies and to automatically register and unregister it's aliases and OIDsMethod Detail |
---|
public void register(org.apache.directory.shared.ldap.schema.DITStructureRule dITStructureRule) throws javax.naming.NamingException
DITStructureRuleRegistry
register
in interface DITStructureRuleRegistry
dITStructureRule
- 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 nameForm object identifier with rule identifier appended
javax.naming.NamingException
- if the DITStructureRule does not existpublic boolean hasDITStructureRule(java.lang.String id)
DITStructureRuleRegistry
hasDITStructureRule
in interface DITStructureRuleRegistry
id
- the object identifier of the nameForm with the rule Id appended
public java.lang.String getSchemaName(java.lang.String id) throws javax.naming.NamingException
SchemaObjectRegistry
getSchemaName
in interface SchemaObjectRegistry
id
- the object identifier or the name
javax.naming.NamingException
- if the schema object does not existpublic java.lang.String getSchemaName(java.lang.Integer ruleId) throws javax.naming.NamingException
DITStructureRuleRegistry
getSchemaName
in interface DITStructureRuleRegistry
ruleId
- the rule identifier for the DITStructureRule
javax.naming.NamingException
- if no such rule could be foundpublic java.util.Iterator<org.apache.directory.shared.ldap.schema.DITStructureRule> iterator()
DITStructureRuleRegistry
iterator
in interface DITStructureRuleRegistry
iterator
in interface SchemaObjectRegistry
public void unregister(java.lang.Integer ruleId) throws javax.naming.NamingException
DITStructureRuleRegistry
unregister
in interface DITStructureRuleRegistry
ruleId
- the rule identifier for the DITStructureRule to unregister
javax.naming.NamingException
- if no such DITStructureRule existspublic void unregister(java.lang.String numericOid) throws javax.naming.NamingException
SchemaObjectRegistry
unregister
in interface SchemaObjectRegistry
numericOid
- the numeric identifier
javax.naming.NamingException
- if the numeric identifier is invalidpublic boolean hasDITStructureRule(java.lang.Integer ruleId)
DITStructureRuleRegistry
hasDITStructureRule
in interface DITStructureRuleRegistry
ruleId
- the rule identifier for the DITStructureRule.
public org.apache.directory.shared.ldap.schema.DITStructureRule lookup(java.lang.Integer ruleId) throws javax.naming.NamingException
DITStructureRuleRegistry
lookup
in interface DITStructureRuleRegistry
ruleId
- the rule identifier for the DITStructureRule
javax.naming.NamingException
- if the DITStructureRule does not exist
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |