com.netscape.jndi.ldap.schema
Class SchemaManager
java.lang.Object
com.netscape.jndi.ldap.schema.SchemaManager
class SchemaManager
- extends java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchemaManager
public SchemaManager(LDAPConnection ld)
- Connstructor
load
void load()
throws javax.naming.NamingException
- Load the schema
- Throws:
javax.naming.NamingException
getObjectClass
LDAPObjectClassSchema getObjectClass(java.lang.String name)
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
getAttribute
LDAPAttributeSchema getAttribute(java.lang.String name)
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
getMatchingRule
LDAPMatchingRuleSchema getMatchingRule(java.lang.String name)
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
getObjectClassNames
java.util.Enumeration getObjectClassNames()
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
getAttributeNames
java.util.Enumeration getAttributeNames()
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
getMatchingRuleNames
java.util.Enumeration getMatchingRuleNames()
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
getObjectClasses
java.util.Enumeration getObjectClasses()
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
getAttributes
java.util.Enumeration getAttributes()
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
getMatchingRules
java.util.Enumeration getMatchingRules()
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
createObjectClass
void createObjectClass(LDAPObjectClassSchema objclass)
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
createAttribute
void createAttribute(LDAPAttributeSchema attr)
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
createMatchingRule
void createMatchingRule(LDAPMatchingRuleSchema mrule)
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
removeObjectClass
void removeObjectClass(java.lang.String name)
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
removeAttribute
void removeAttribute(java.lang.String name)
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
removeMatchingRule
void removeMatchingRule(java.lang.String name)
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
modifyObjectClass
void modifyObjectClass(LDAPObjectClassSchema objclass,
LDAPObjectClassSchema modObjClass)
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
modifyAttribute
void modifyAttribute(LDAPAttributeSchema attr,
LDAPAttributeSchema modAttr)
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
modifyMatchingRule
void modifyMatchingRule(LDAPMatchingRuleSchema mrule,
LDAPMatchingRuleSchema modMRule)
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException