Package org.ldaptive.beans.persistence
Interface LdapEntryManager<T>
-
- Type Parameters:
T- type of object to manage
- All Known Implementing Classes:
DefaultLdapEntryManager
public interface LdapEntryManager<T>Interface to manage objects that have been annotated to contain LDAP data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Response<Void>add(T object)Adds the supplied annotated object to an LDAP.Response<Void>delete(T object)Deletes the supplied annotated object from an LDAP.Tfind(T object)Searches for the supplied annotated object in an LDAP and returns the object mapped with it's ldap attribute properties set.Response<Void>merge(T object)Merges the supplied annotated object in an LDAP.
-
-
-
Method Detail
-
find
T find(T object) throws LdapException
Searches for the supplied annotated object in an LDAP and returns the object mapped with it's ldap attribute properties set.- Parameters:
object- to find- Returns:
- mapped object
- Throws:
LdapException- if the object cannot be found
-
add
Response<Void> add(T object) throws LdapException
Adds the supplied annotated object to an LDAP.- Parameters:
object- to add- Returns:
- LDAP response from the add operation
- Throws:
LdapException- if the add fails
-
merge
Response<Void> merge(T object) throws LdapException
Merges the supplied annotated object in an LDAP. SeeMergeOperation.- Parameters:
object- to merge- Returns:
- LDAP response from the merge operation
- Throws:
LdapException- if the merge fails
-
delete
Response<Void> delete(T object) throws LdapException
Deletes the supplied annotated object from an LDAP.- Parameters:
object- to delete- Returns:
- LDAP response from the delete operation
- Throws:
LdapException- if the delete fails
-
-