|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.beans.persistence.DefaultLdapEntryManager<T>
T - type of object to managepublic class DefaultLdapEntryManager<T>
Default implementation of an ldap entry manager. Uses an LdapEntryMapper to convert objects to entries, then invokes LDAP operations
with those objects.
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
Logger for this class. |
| Constructor Summary | |
|---|---|
DefaultLdapEntryManager(LdapEntryMapper<T> mapper,
org.ldaptive.ConnectionFactory factory)
Creates a new default ldap entry manager. |
|
| Method Summary | |
|---|---|
org.ldaptive.Response<Void> |
add(T object)
Adds the supplied annotated object to an LDAP. |
org.ldaptive.Response<Void> |
delete(T object)
Deletes the supplied annotated object from an LDAP. |
T |
find(T object)
Searches for the supplied annotated object in an LDAP and returns the object mapped with it's ldap attribute properties set. |
protected org.ldaptive.ConnectionFactory |
getConnectionFactory()
Returns the connection factory. |
protected LdapEntryMapper<T> |
getLdapEntryMapper()
Returns the ldap entry mapper. |
org.ldaptive.Response<Void> |
merge(T object)
Merges the supplied annotated object in an LDAP. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
| Constructor Detail |
|---|
public DefaultLdapEntryManager(LdapEntryMapper<T> mapper,
org.ldaptive.ConnectionFactory factory)
mapper - for object conversionfactory - for LDAP communication| Method Detail |
|---|
protected LdapEntryMapper<T> getLdapEntryMapper()
protected org.ldaptive.ConnectionFactory getConnectionFactory()
public T find(T object)
throws org.ldaptive.LdapException
find in interface LdapEntryManager<T>object - to find
org.ldaptive.LdapException - if the object cannot be found
public org.ldaptive.Response<Void> add(T object)
throws org.ldaptive.LdapException
add in interface LdapEntryManager<T>object - to add
org.ldaptive.LdapException - if the add fails
public org.ldaptive.Response<Void> merge(T object)
throws org.ldaptive.LdapException
MergeOperation.
merge in interface LdapEntryManager<T>object - to merge
org.ldaptive.LdapException - if the merge fails
public org.ldaptive.Response<Void> delete(T object)
throws org.ldaptive.LdapException
delete in interface LdapEntryManager<T>object - to delete
org.ldaptive.LdapException - if the delete fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||