Class LdapTransactionUtils
java.lang.Object
org.springframework.ldap.transaction.compensating.LdapTransactionUtils
Utility methods for working with LDAP transactions.
- Since:
- 1.2
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionstatic NamegetArgumentAsName(Object arg) Get the argument as a Name.static NamegetFirstArgumentAsName(Object[] args) Get the first parameter in the argument list as a Name.static booleanisSupportedWriteTransactionOperation(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 Details- 
REBIND_METHOD_NAME- See Also:
 
- 
BIND_METHOD_NAME- See Also:
 
- 
RENAME_METHOD_NAME- See Also:
 
- 
UNBIND_METHOD_NAME- See Also:
 
- 
MODIFY_ATTRIBUTES_METHOD_NAME- See Also:
 
 
- 
- 
Method Details- 
getFirstArgumentAsNameGet 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.
 
- 
getArgumentAsNameGet 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.
 
- 
isSupportedWriteTransactionOperationCheck 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.
 
 
-