|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.ad.schema.SchemaFactory
public final class SchemaFactory
Factory to create Schema from an active directory schema search
result. Active Directory does not adhere to RFC 4512 to represent it's
schema. Each schema element is represented with a separate LDAP entry. The
factory parses and sets the object classes and attribute types for the
schema. The other properties on the schema object are not available.
| Method Summary | |
|---|---|
protected static AttributeType |
createAttributeType(LdapEntry entry)
Creates an attribute type from the supplied ldap entry. |
protected static ObjectClass |
createObjectClass(LdapEntry entry)
Creates an object class from the supplied ldap entry. |
static Schema |
createSchema(ConnectionFactory factory,
String entryDn)
Creates a new schema. |
static Schema |
createSchema(InputStream is)
Creates a new schema. |
static Schema |
createSchema(SearchResult schemaResult)
Creates a new schema. |
protected static SearchResult |
getSearchResult(ConnectionFactory factory,
String dn,
String filter,
String[] retAttrs)
Searches for the supplied dn and returns its ldap entry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Schema createSchema(InputStream is)
throws IOException
is - containing the schema ldif
IOException - if an error occurs reading the input stream
public static Schema createSchema(ConnectionFactory factory,
String entryDn)
throws LdapException
factory - to obtain an LDAP connection fromentryDn - the schema entries
LdapException - if the search failspublic static Schema createSchema(SearchResult schemaResult)
schemaResult - containing the schema entries
protected static SearchResult getSearchResult(ConnectionFactory factory,
String dn,
String filter,
String[] retAttrs)
throws LdapException
factory - to obtain an LDAP connection fromdn - to search forfilter - to search withretAttrs - attributes to return
LdapException - if the search failsprotected static AttributeType createAttributeType(LdapEntry entry)
entry - containing an attribute schema
protected static ObjectClass createObjectClass(LdapEntry entry)
entry - containing a class schema
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||