public enum LDAPWriteStrategy extends Enum<LDAPWriteStrategy>
Background:
LDAP directories don't support a generic write (or put) operation. New entries are created with an ADD operation, and may then be updated with a separate MODIFY operation. Generic write requests must therefore be translated to an LDAP ADD or an LDAP MODIFY operation, and each operation then tried individually until we have success.
| Enum Constant and Description |
|---|
TRY_LDAP_ADD_FIRST
Try to write the entry with an LDAP ADD operation first.
|
TRY_LDAP_MODIFY_FIRST
Try to write the entry with an LDAP MODIFY operation first.
|
| Modifier and Type | Method and Description |
|---|---|
static LDAPWriteStrategy |
getDefault()
Returns the default write strategy.
|
static LDAPWriteStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LDAPWriteStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LDAPWriteStrategy TRY_LDAP_ADD_FIRST
68 error code (entry already
exists), then the entry write can then be attempted with an LDAP
MODIFY operation.public static final LDAPWriteStrategy TRY_LDAP_MODIFY_FIRST
32 (no such entry), then the
entry write can be attempted with an LDAP ADD operation.public static LDAPWriteStrategy[] values()
for (LDAPWriteStrategy c : LDAPWriteStrategy.values()) System.out.println(c);
public static LDAPWriteStrategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static LDAPWriteStrategy getDefault()
TRY_LDAP_ADD_FIRST).Copyright © 2016 Connect2id Ltd.. All Rights Reserved.