public final class LdapModification
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
LDAP_MOD_ADD
Attribute/Attribute value addition
|
static int |
LDAP_MOD_DELETE
Attribute/Attribute value deletion
|
static int |
LDAP_MOD_REPLACE
Attribute value replacement
|
| Constructor and Description |
|---|
LdapModification()
Constructor for creating a LdapModification
|
| Modifier and Type | Method and Description |
|---|---|
void |
addModificationItem(int modop, javax.naming.directory.Attribute attr)
Adds a ModificationItem in the LdapModification with the LdapModification operation code
|
javax.naming.directory.ModificationItem[] |
getAllModificationItems()
Returns an array of Modification Items in the LdapModification
|
javax.naming.directory.ModificationItem |
getModificationItemAt(int index)
Gets a copy of the required ModificationItem from the LdapModification
|
boolean |
insertModificationItemAt(int modop, javax.naming.directory.Attribute attr, int index)
Inserts a ModificationItem in the LdapModification with the LdapModification operation code at the specified position in the collection.
|
boolean |
removeModificationItemAt(int index)
Removes the ModificationItem in the LdapModification from the specified position in the collection.
|
void |
setAllModificationItems(javax.naming.directory.ModificationItem[] modItems)
Sets an array of Modification Items in the LdapModification.
|
boolean |
setModificationItemAt(int modop, javax.naming.directory.Attribute attr, int index)
Sets a ModificationItem in the LdapModification with the LdapModification operation code at the specified position in the collection.
|
int |
size()
Gets the count of the ModificationItems in the LdapModification
|
public static final int LDAP_MOD_ADD
public static final int LDAP_MOD_DELETE
public static final int LDAP_MOD_REPLACE
public LdapModification()
public javax.naming.directory.ModificationItem getModificationItemAt(int index)
throws java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsExceptionpublic int size()
public void addModificationItem(int modop,
javax.naming.directory.Attribute attr)
modop - - LdapModification operation code
Valid LdapModification operation codes
attr - - Attribute to be modified
public boolean setModificationItemAt(int modop,
javax.naming.directory.Attribute attr,
int index)
modop - - LdapModification operation code Valid LdapModification operation codesattr - - Attribute to be modifiedindex - - Index where the ModificationItem is to inserted
public boolean insertModificationItemAt(int modop,
javax.naming.directory.Attribute attr,
int index)
modop - - LdapModification operation code Valid LdapModification operation codesattr - - Attribute to be modifiedindex - - Index where the ModificationItem is to insertedpublic boolean removeModificationItemAt(int index)
index - - Index from where the ModificationItem is to be removedpublic void setAllModificationItems(javax.naming.directory.ModificationItem[] modItems)
modItems - - Array of ModificationItemspublic javax.naming.directory.ModificationItem[] getAllModificationItems()