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.

Version:
$Revision: 2971 $ $Date: 2014-04-17 16:28:19 -0400 (Thu, 17 Apr 2014) $
Author:
Middleware Services

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.
 org.ldaptive.Response<Void> merge(T object)
          Merges the supplied annotated object in an LDAP.
 

Method Detail

find

T find(T object)
       throws org.ldaptive.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:
org.ldaptive.LdapException - if the object cannot be found

add

org.ldaptive.Response<Void> add(T object)
                                throws org.ldaptive.LdapException
Adds the supplied annotated object to an LDAP.

Parameters:
object - to add
Returns:
LDAP response from the add operation
Throws:
org.ldaptive.LdapException - if the add fails

merge

org.ldaptive.Response<Void> merge(T object)
                                  throws org.ldaptive.LdapException
Merges the supplied annotated object in an LDAP. See MergeOperation.

Parameters:
object - to merge
Returns:
LDAP response from the merge operation
Throws:
org.ldaptive.LdapException - if the merge fails

delete

org.ldaptive.Response<Void> delete(T object)
                                   throws org.ldaptive.LdapException
Deletes the supplied annotated object from an LDAP.

Parameters:
object - to delete
Returns:
LDAP response from the delete operation
Throws:
org.ldaptive.LdapException - if the delete fails


Copyright © 2003-2017 Virginia Tech. All Rights Reserved.