Package org.ldaptive.ext
Class MergeRequest
java.lang.Object
org.ldaptive.ext.MergeRequest
Contains the data required to perform a merge operation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanWhether to delete the entry.private String[]Attribute names to exclude when performing a merge.private String[]Attribute names to include when performing a merge.private LdapEntryLdap entry to merge.private String[]Attribute names to include in the search. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.MergeRequest(LdapEntry entry) Creates a new merge request.MergeRequest(LdapEntry entry, boolean delete) Creates a new merge request. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether to delete the entry.getEntry()Returns the ldap entry to merge.String[]Returns the names of attributes that are excluded when performing a modify.String[]Returns the names of attributes that are included when performing a modify.String[]Returns the names of attributes that are used when searching for the entry.voidsetDeleteEntry(boolean b) Sets whether to delete the entry.voidSets the ldap entry to merge into the LDAP.voidsetExcludeAttributes(String... attrs) Sets the list of attribute names to exclude when performing a modify.voidsetIncludeAttributes(String... attrs) Sets the list of attribute names to include when performing modify.voidsetSearchAttributes(String... attrs) Sets the list of attribute names that are used when searching for the entry.toString()
-
Field Details
-
ldapEntry
Ldap entry to merge. -
deleteEntry
private boolean deleteEntryWhether to delete the entry. -
searchAttrs
Attribute names to include in the search. -
includeAttrs
Attribute names to include when performing a merge. -
excludeAttrs
Attribute names to exclude when performing a merge.
-
-
Constructor Details
-
MergeRequest
public MergeRequest()Default constructor. -
MergeRequest
Creates a new merge request.- Parameters:
entry- to merge into the LDAP
-
MergeRequest
Creates a new merge request.- Parameters:
entry- to merge into the LDAPdelete- whether the supplied entry should be deleted
-
-
Method Details
-
getEntry
Returns the ldap entry to merge.- Returns:
- ldap entry to merge
-
setEntry
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
Returns the names of attributes that are used when searching for the entry.- Returns:
- attribute names to return when searching
-
setSearchAttributes
Sets the list of attribute names that are used when searching for the entry.- Parameters:
attrs- names to return when searching
-
getIncludeAttributes
Returns the names of attributes that are included when performing a modify.- Returns:
- attribute names to include
-
setIncludeAttributes
Sets the list of attribute names to include when performing modify.- Parameters:
attrs- names to include
-
getExcludeAttributes
Returns the names of attributes that are excluded when performing a modify.- Returns:
- attribute names to exclude
-
setExcludeAttributes
Sets the list of attribute names to exclude when performing a modify.- Parameters:
attrs- names to exclude
-
toString
-