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 booleanFlag whether schema objects have been modified in the Directory (add, remove) but the change has not been propagated to the cached m_schema objectprivate booleanFlag whether schema needs to be loaded by calling fetchSchema()private booleanFlag whether schema objects have been modified in the Directory (add, remove) but the change has not been propagated to the cached m_schema objectprivate booleanFlag whether schema objects have been modified in the Directory (add, remove) but the change has not been propagated to the cached m_schema objectprivate LDAPConnectionLDAP Connection objectprivate LDAPSchemaLdapJDK main schema object -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateMust constract with LDAP ConnectionConnstructor -
Method Summary
Modifier and TypeMethodDescription(package private) void(package private) void(package private) voidcreateObjectClass(LDAPObjectClassSchema objclass) (package private) LDAPAttributeSchemagetAttribute(String name) (package private) Enumeration<String>(package private) Enumeration<LDAPAttributeSchema>(package private) LDAPMatchingRuleSchemagetMatchingRule(String name) (package private) Enumeration<String>(package private) Enumeration<LDAPMatchingRuleSchema>(package private) LDAPObjectClassSchemagetObjectClass(String name) (package private) Enumeration<LDAPObjectClassSchema>(package private) Enumeration<String>(package private) voidload()Load the schema(package private) voidmodifyAttribute(LDAPAttributeSchema attr, LDAPAttributeSchema modAttr) (package private) voidmodifyMatchingRule(LDAPMatchingRuleSchema mrule, LDAPMatchingRuleSchema modMRule) (package private) voidmodifyObjectClass(LDAPObjectClassSchema objclass, LDAPObjectClassSchema modObjClass) (package private) voidremoveAttribute(String name) (package private) voidremoveMatchingRule(String name) (package private) voidremoveObjectClass(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
-