Class LdapTransactionUtils
- java.lang.Object
-
- org.springframework.ldap.transaction.compensating.LdapTransactionUtils
-
public final class LdapTransactionUtils extends java.lang.ObjectUtility methods for working with LDAP transactions.- Since:
- 1.2
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBIND_METHOD_NAMEstatic java.lang.StringMODIFY_ATTRIBUTES_METHOD_NAMEstatic java.lang.StringREBIND_METHOD_NAMEstatic java.lang.StringRENAME_METHOD_NAMEstatic java.lang.StringUNBIND_METHOD_NAME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.naming.NamegetArgumentAsName(java.lang.Object arg)Get the argument as a Name.static javax.naming.NamegetFirstArgumentAsName(java.lang.Object[] args)Get the first parameter in the argument list as a Name.static booleanisSupportedWriteTransactionOperation(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).
-
-
-
Field Detail
-
REBIND_METHOD_NAME
public static final java.lang.String REBIND_METHOD_NAME
- See Also:
- Constant Field Values
-
BIND_METHOD_NAME
public static final java.lang.String BIND_METHOD_NAME
- See Also:
- Constant Field Values
-
RENAME_METHOD_NAME
public static final java.lang.String RENAME_METHOD_NAME
- See Also:
- Constant Field Values
-
UNBIND_METHOD_NAME
public static final java.lang.String UNBIND_METHOD_NAME
- See Also:
- Constant Field Values
-
MODIFY_ATTRIBUTES_METHOD_NAME
public static final java.lang.String MODIFY_ATTRIBUTES_METHOD_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFirstArgumentAsName
public static javax.naming.Name getFirstArgumentAsName(java.lang.Object[] args)
Get the first parameter in the argument list as a Name.- Parameters:
args- arguments supplied to a ldap operation.- Returns:
- a Name representation of the first argument, or the Name itself if it is a name.
-
getArgumentAsName
public static javax.naming.Name getArgumentAsName(java.lang.Object arg)
Get the argument as a Name.- Parameters:
arg- an argument supplied to an Ldap operation.- Returns:
- a Name representation of the argument, or the Name itself if it is a Name.
-
isSupportedWriteTransactionOperation
public 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).- Parameters:
methodName- name of the method to check.- Returns:
trueif this is a supported transaction operation,falseotherwise.
-
-