|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.schema.SchemaFactory
public final class SchemaFactory
Factory to create Schema objects from an LDAP entry.
| Method Summary | |
|---|---|
static Schema |
createSchema(ConnectionFactory factory)
Creates a new schema. |
static Schema |
createSchema(ConnectionFactory factory,
String entryDn)
Creates a new schema. |
static Schema |
createSchema(InputStream is)
Creates a new schema. |
static Schema |
createSchema(LdapEntry schemaEntry)
Creates a new schema. |
protected static LdapEntry |
getLdapEntry(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)
throws LdapException
factory - to obtain an LDAP connection from
LdapException - if the search fails
public static Schema createSchema(ConnectionFactory factory,
String entryDn)
throws LdapException
factory - to obtain an LDAP connection fromentryDn - the subschema entry
LdapException - if the search failspublic static Schema createSchema(LdapEntry schemaEntry)
schemaEntry - containing the schema
protected static LdapEntry getLdapEntry(ConnectionFactory factory,
String dn,
String filter,
String[] retAttrs)
throws LdapException
factory - to obtain an LDAP connection fromdn - to search forfilter - search filterretAttrs - attributes to return
LdapException - if the search fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||