Package com.netscape.jndi.ldap.schema
Class SchemaManager
java.lang.Object
com.netscape.jndi.ldap.schema.SchemaManager
A wrapper calss for LDAPSchema. It main purpose is to manage loading of schema
on demand. The schema is loaded when accessed for the first time, or after changes
to the schema have been made.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
Flag whether schema objects have been modified in the Directory (add, remove) but the change has not been propagated to the cached m_schema objectprivate boolean
Flag whether schema needs to be loaded by calling fetchSchema()private boolean
Flag whether schema objects have been modified in the Directory (add, remove) but the change has not been propagated to the cached m_schema objectprivate boolean
Flag whether schema objects have been modified in the Directory (add, remove) but the change has not been propagated to the cached m_schema objectprivate LDAPConnection
LDAP Connection objectprivate LDAPSchema
LdapJDK main schema object -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Must constract with LDAP ConnectionConnstructor -
Method Summary
Modifier and TypeMethodDescription(package private) void
(package private) void
(package private) void
createObjectClass
(LDAPObjectClassSchema objclass) (package private) LDAPAttributeSchema
getAttribute
(String name) (package private) Enumeration
<String> (package private) Enumeration
<LDAPAttributeSchema> (package private) LDAPMatchingRuleSchema
getMatchingRule
(String name) (package private) Enumeration
<String> (package private) Enumeration
<LDAPMatchingRuleSchema> (package private) LDAPObjectClassSchema
getObjectClass
(String name) (package private) Enumeration
<LDAPObjectClassSchema> (package private) Enumeration
<String> (package private) void
load()
Load the schema(package private) void
modifyAttribute
(LDAPAttributeSchema attr, LDAPAttributeSchema modAttr) (package private) void
modifyMatchingRule
(LDAPMatchingRuleSchema mrule, LDAPMatchingRuleSchema modMRule) (package private) void
modifyObjectClass
(LDAPObjectClassSchema objclass, LDAPObjectClassSchema modObjClass) (package private) void
removeAttribute
(String name) (package private) void
removeMatchingRule
(String name) (package private) void
removeObjectClass
(String name)
-
Field Details
-
m_schema
LdapJDK main schema object -
m_ld
LDAP Connection object -
m_isLoaded
private boolean m_isLoadedFlag whether schema needs to be loaded by calling fetchSchema() -
m_isObjectClassDirty
private boolean m_isObjectClassDirtyFlag whether schema objects have been modified in the Directory (add, remove) but the change has not been propagated to the cached m_schema object -
m_isAttributeDirty
private boolean m_isAttributeDirtyFlag whether schema objects have been modified in the Directory (add, remove) but the change has not been propagated to the cached m_schema object -
m_isMatchingRuleDirty
private boolean m_isMatchingRuleDirtyFlag whether schema objects have been modified in the Directory (add, remove) but the change has not been propagated to the cached m_schema object
-
-
Constructor Details
-
SchemaManager
private SchemaManager()Must constract with LDAP Connection -
SchemaManager
Connstructor
-
-
Method Details
-
load
Load the schema- Throws:
NamingException
-
getObjectClass
- Throws:
NamingException
-
getAttribute
- Throws:
NamingException
-
getMatchingRule
- Throws:
NamingException
-
getObjectClassNames
- Throws:
NamingException
-
getAttributeNames
- Throws:
NamingException
-
getMatchingRuleNames
- Throws:
NamingException
-
getObjectClasses
- Throws:
NamingException
-
getAttributes
- Throws:
NamingException
-
getMatchingRules
- Throws:
NamingException
-
createObjectClass
- Throws:
NamingException
-
createAttribute
- Throws:
NamingException
-
createMatchingRule
- Throws:
NamingException
-
removeObjectClass
- Throws:
NamingException
-
removeAttribute
- Throws:
NamingException
-
removeMatchingRule
- Throws:
NamingException
-
modifyObjectClass
void modifyObjectClass(LDAPObjectClassSchema objclass, LDAPObjectClassSchema modObjClass) throws NamingException - Throws:
NamingException
-
modifyAttribute
- Throws:
NamingException
-
modifyMatchingRule
void modifyMatchingRule(LDAPMatchingRuleSchema mrule, LDAPMatchingRuleSchema modMRule) throws NamingException - Throws:
NamingException
-