org.ldaptive.ext
Class MergeRequest

java.lang.Object
  extended by org.ldaptive.AbstractRequest
      extended by org.ldaptive.ext.MergeRequest
All Implemented Interfaces:
Message<RequestControl>, Request

public class MergeRequest
extends AbstractRequest

Contains the data required to perform a merge operation.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Constructor Summary
MergeRequest()
          Default constructor.
MergeRequest(LdapEntry entry)
          Creates a new merge request.
MergeRequest(LdapEntry entry, boolean delete)
          Creates a new merge request.
 
Method Summary
 boolean getDeleteEntry()
          Returns whether to delete the entry.
 LdapEntry getEntry()
          Returns the ldap entry to merge.
 String[] getExcludeAttributes()
          Returns the names of attributes that are excluded when performing a modify.
 String[] getIncludeAttributes()
          Returns the names of attributes that are included when performing a modify.
 String[] getSearchAttributes()
          Returns the names of attributes that are used when searching for the entry.
 void setDeleteEntry(boolean b)
          Sets whether to delete the entry.
 void setEntry(LdapEntry entry)
          Sets the ldap entry to merge into the LDAP.
 void setExcludeAttributes(String... attrs)
          Sets the list of attribute names to exclude when performing a modify.
 void setIncludeAttributes(String... attrs)
          Sets the list of attribute names to include when performing modify.
 void setSearchAttributes(String... attrs)
          Sets the list of attribute names that are used when searching for the entry.
 String toString()
          
 
Methods inherited from class org.ldaptive.AbstractRequest
getControls, getFollowReferrals, getIntermediateResponseHandlers, setControls, setFollowReferrals, setIntermediateResponseHandlers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MergeRequest

public MergeRequest()
Default constructor.


MergeRequest

public MergeRequest(LdapEntry entry)
Creates a new merge request.

Parameters:
entry - to merge into the LDAP

MergeRequest

public MergeRequest(LdapEntry entry,
                    boolean delete)
Creates a new merge request.

Parameters:
entry - to merge into the LDAP
delete - whether the supplied entry should be deleted
Method Detail

getEntry

public LdapEntry getEntry()
Returns the ldap entry to merge.

Returns:
ldap entry to merge

setEntry

public void setEntry(LdapEntry entry)
Sets the ldap entry to merge into the LDAP.

Parameters:
entry - to merge

getDeleteEntry

public boolean getDeleteEntry()
Returns whether to delete the entry.

Returns:
whether to delete the entry

setDeleteEntry

public void setDeleteEntry(boolean b)
Sets whether to delete the entry.

Parameters:
b - whether to delete the entry

getSearchAttributes

public String[] getSearchAttributes()
Returns the names of attributes that are used when searching for the entry.

Returns:
attribute names to return when searching

setSearchAttributes

public void setSearchAttributes(String... attrs)
Sets the list of attribute names that are used when searching for the entry.

Parameters:
attrs - names to return when searching

getIncludeAttributes

public String[] getIncludeAttributes()
Returns the names of attributes that are included when performing a modify.

Returns:
attribute names to include

setIncludeAttributes

public void setIncludeAttributes(String... attrs)
Sets the list of attribute names to include when performing modify.

Parameters:
attrs - names to include

getExcludeAttributes

public String[] getExcludeAttributes()
Returns the names of attributes that are excluded when performing a modify.

Returns:
attribute names to exclude

setExcludeAttributes

public void setExcludeAttributes(String... attrs)
Sets the list of attribute names to exclude when performing a modify.

Parameters:
attrs - names to exclude

toString

public String toString()

Overrides:
toString in class Object


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