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
Modifier and TypeMethodDescriptionAdds the supplied annotated object to an LDAP.Deletes the supplied annotated object from an LDAP.Searches for the supplied annotated object in an LDAP and returns the object mapped with it's ldap attribute properties set.Merges the supplied annotated object in an LDAP.
-
Method Details
-
find
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
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
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
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
-