@NotExtensible @NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public class LDAPModification extends java.lang.Object implements java.io.Serializable
Modification
class
should be used instead.Modifier and Type | Field and Description |
---|---|
static int |
ADD
The modification type that indicates that one or more values should be
added to the target attribute.
|
static int |
DELETE
The modification type that indicates that one or more values should be
removed from the target attribute.
|
static int |
REPLACE
The modification type that indicates that one or more values should be
replaced in target attribute.
|
Constructor and Description |
---|
LDAPModification(int op,
LDAPAttribute attr)
Creates a new LDAP modification with the provided information.
|
LDAPModification(Modification modification)
Creates a new LDAP modification from the provided
Modification
object. |
Modifier and Type | Method and Description |
---|---|
LDAPAttribute |
getAttribute()
Retrieves the attribute to include in this modification.
|
int |
getOp()
Retrieves the modification type for this LDAP modification.
|
Modification |
toModification()
Retrieves a
Modification object that is the equivalent of this LDAP
modification. |
java.lang.String |
toString()
Retrieves a string representation of this LDAP modification.
|
public static final int ADD
public static final int DELETE
public static final int REPLACE
public LDAPModification(int op, @NotNull LDAPAttribute attr)
op
- The type of modification to perform.attr
- The attribute to use for the modification.public LDAPModification(@NotNull Modification modification)
Modification
object.modification
- The Modification
object to use to create this
LDAP modification.public int getOp()
@NotNull public LDAPAttribute getAttribute()
@NotNull public Modification toModification()
Modification
object that is the equivalent of this LDAP
modification.Modification
object that is the equivalent of this LDAP
modification.