|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ldap.server.schema.GlobalAttributeTypeRegistry
A plain old java object implementation of an AttributeTypeRegistry.
Constructor Summary | |
GlobalAttributeTypeRegistry(BootstrapAttributeTypeRegistry bootstrap,
OidRegistry oidRegistry)
Creates a GlobalAttributeTypeRegistry which accesses data stored within the system partition and within the bootstrapping registry to service AttributeType lookup requests. |
Method Summary | |
java.lang.String |
getSchemaName(java.lang.String id)
Gets the name of the schema this schema object is associated with. |
boolean |
hasAttributeType(java.lang.String id)
Checks to see if an AttributeType exists. |
java.util.Iterator |
list()
Gets an Iterator over the AttributeTypes within this registry. |
org.apache.ldap.common.schema.AttributeType |
lookup(java.lang.String id)
Looks up an AttributeType by its unique Object Identifier or by its unique name. |
void |
register(java.lang.String schema,
org.apache.ldap.common.schema.AttributeType attributeType)
Registers a new AttributeType with this registry. |
void |
setMonitor(AttributeTypeRegistryMonitor 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 GlobalAttributeTypeRegistry(BootstrapAttributeTypeRegistry bootstrap, OidRegistry oidRegistry)
bootstrap
- the bootstrapping registry to delegate toMethod Detail |
public void setMonitor(AttributeTypeRegistryMonitor monitor)
monitor
- the new monitor to notify of notable eventspublic void register(java.lang.String schema, org.apache.ldap.common.schema.AttributeType attributeType) throws javax.naming.NamingException
AttributeTypeRegistry
register
in interface AttributeTypeRegistry
schema
- the name of the schema the AttributeType is associated withattributeType
- the AttributeType to register
javax.naming.NamingException
- if the AttributeType is already registered or
the registration operation is not supportedpublic org.apache.ldap.common.schema.AttributeType lookup(java.lang.String id) throws javax.naming.NamingException
AttributeTypeRegistry
lookup
in interface AttributeTypeRegistry
id
- the object identifier or name of the AttributeType
javax.naming.NamingException
- if the AttributeType does not existpublic boolean hasAttributeType(java.lang.String id)
AttributeTypeRegistry
hasAttributeType
in interface AttributeTypeRegistry
id
- the object identifier or name of the AttributeType
public java.lang.String getSchemaName(java.lang.String id) throws javax.naming.NamingException
AttributeTypeRegistry
getSchemaName
in interface AttributeTypeRegistry
id
- the object identifier or the name
javax.naming.NamingException
- if the schema object does not existpublic java.util.Iterator list()
AttributeTypeRegistry
list
in interface AttributeTypeRegistry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |