|
LDAPJDK 4.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--netscape.ldap.LDAPModification
Specifies changes to be made to the values of an attribute. The change is specified in terms of the following aspects:
After you specify a change to an attribute, you can execute the change
by calling the LDAPConnection.modify
method and specifying
the DN of the entry that you want to modify.
LDAPConnection.modify(java.lang.String, netscape.ldap.LDAPModification)
, Serialized FormField Summary | |
static int |
ADD
Specifies that a value should be added to an attribute. |
static int |
DELETE
Specifies that a value should be removed from an attribute. |
static int |
REPLACE
Specifies that a value should replace the existing value in an attribute. |
Constructor Summary | |
LDAPModification(int op,
LDAPAttribute attr)
Specifies a modification to be made to an attribute. |
Method Summary | |
LDAPAttribute |
getAttribute()
Returns the attribute (possibly with values) to be modified. |
BERElement |
getBERElement()
Retrieves the BER (Basic Encoding Rules) representation of the current modification. |
int |
getOp()
Returns the type of modification specified by this object. |
java.lang.String |
toString()
Retrieves the string representation of the current modification. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int ADD
public static final int DELETE
public static final int REPLACE
Constructor Detail |
public LDAPModification(int op, LDAPAttribute attr)
op
- the type of modification to make. This can be one of the following:
LDAPModification.ADD
(the value should be added to the attribute)
LDAPModification.DELETE
(the value should be removed from the attribute)
LDAPModification.REPLACE
(the value should replace the existing value of the attribute)
attr
- the attribute (possibly with values) to modifyLDAPAttribute
Method Detail |
public int getOp()
LDAPModification.ADD
(the value should be added to the attribute)
LDAPModification.DELETE
(the value should be removed from the attribute)
LDAPModification.REPLACE
(the value should replace the existing value of the attribute)
public LDAPAttribute getAttribute()
LDAPAttribute
public BERElement getBERElement()
public java.lang.String toString()
LDAPModification: REPLACE, LDAPAttribute {type='mail', values='babs@ace.com'} LDAPModification: ADD, LDAPAttribute {type='description', values='This entry was modified with the modattrs program'}
|
LDAPJDK 4.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |