|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ldap.transaction.compensating.LdapTransactionUtils
public final class LdapTransactionUtils
Utility methods for working with LDAP transactions.
Field Summary | |
---|---|
static java.lang.String |
BIND_METHOD_NAME
|
static java.lang.String |
MODIFY_ATTRIBUTES_METHOD_NAME
|
static java.lang.String |
REBIND_METHOD_NAME
|
static java.lang.String |
RENAME_METHOD_NAME
|
static java.lang.String |
UNBIND_METHOD_NAME
|
Method Summary | |
---|---|
static java.lang.Class |
getActualTargetClass(javax.naming.directory.DirContext context)
Get the actual class of the supplied DirContext instance; LdapContext or DirContext. |
static javax.naming.Name |
getArgumentAsName(java.lang.Object arg)
Get the argument as a Name. |
static javax.naming.Name |
getFirstArgumentAsName(java.lang.Object[] args)
Get the first parameter in the argument list as a Name. |
static boolean |
isSupportedWriteTransactionOperation(java.lang.String methodName)
Check whether the supplied method is a method for which transactions is supported (and which should be recorded for possible rollback later). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String REBIND_METHOD_NAME
public static final java.lang.String BIND_METHOD_NAME
public static final java.lang.String RENAME_METHOD_NAME
public static final java.lang.String UNBIND_METHOD_NAME
public static final java.lang.String MODIFY_ATTRIBUTES_METHOD_NAME
Method Detail |
---|
public static javax.naming.Name getFirstArgumentAsName(java.lang.Object[] args)
args
- arguments supplied to a ldap operation.
public static javax.naming.Name getArgumentAsName(java.lang.Object arg)
arg
- an argument supplied to an Ldap operation.
public static boolean isSupportedWriteTransactionOperation(java.lang.String methodName)
methodName
- name of the method to check.
true
if this is a supported transaction operation,
false
otherwise.public static java.lang.Class getActualTargetClass(javax.naming.directory.DirContext context)
context
- the DirContext instance to check.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |