public class LDAPSchemaUtil
extends java.lang.Object
| Constructor and Description |
|---|
LDAPSchemaUtil(javax.naming.ldap.LdapContext dirCtx)
Initialize the LDAPSchemaUtil.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<AttributeSchema> |
getAttributeTypes(java.lang.String... attrNames)
Gets the attribute definitions for the given attributes from the backend.
|
java.util.Set<ObjectClassSchema> |
getObjectClasses(boolean includeSuperiorAttributes, java.lang.String... objClassNames)
Gets the ObjectClass schema definitions of the given objectclasses from the backend.
|
java.util.Set<ObjectClassSchema> |
getObjectClasses(java.lang.String... objClassNames)
Gets the ObjectClass schema definitions of the given objectclasses from the backend.
|
java.util.Set<java.lang.String> |
listAllObjectClasses()
Gets the list of all ObjectClass names defined in the backend.
|
public LDAPSchemaUtil(javax.naming.ldap.LdapContext dirCtx)
dirCtx - JNDI Context.public java.util.Set<ObjectClassSchema> getObjectClasses(java.lang.String... objClassNames)
throws IDSException
objClassNames - list of objectclass names whose schema needs to be retrievedIDSExceptionpublic java.util.Set<ObjectClassSchema> getObjectClasses(boolean includeSuperiorAttributes,
java.lang.String... objClassNames)
throws IDSException
includeSuperiorAttributes - true indicates that list of attributes from all the superior objectclass definitions will also be includedobjClassNames - list of objectclass names whose schema needs to be retrievedIDSExceptionpublic java.util.Set<java.lang.String> listAllObjectClasses()
throws IDSException
IDSExceptionpublic java.util.Set<AttributeSchema> getAttributeTypes(java.lang.String... attrNames) throws IDSException
attrNames - list of attribute namesIDSException