Class TransactionIdDataGenerator
- java.lang.Object
-
- org.alfresco.repo.audit.generator.AbstractDataGenerator
-
- org.alfresco.repo.audit.generator.TransactionIdDataGenerator
-
- All Implemented Interfaces:
DataGenerator,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
public class TransactionIdDataGenerator extends AbstractDataGenerator
Gives back the currently transaction ID.- Since:
- 3.2
- Author:
- Derek Hulley
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.audit.generator.AbstractDataGenerator
logger
-
-
Constructor Summary
Constructors Constructor Description TransactionIdDataGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.SerializablegetData()Get the data generated by the instance.-
Methods inherited from class org.alfresco.repo.audit.generator.AbstractDataGenerator
afterPropertiesSet, equals, setBeanName, setRegistry
-
-
-
-
Method Detail
-
getData
public java.io.Serializable getData() throws java.lang.ThrowableDescription copied from interface:DataGeneratorGet the data generated by the instance.- Returns:
- Returns the current transaction ID (null if not in a transction)
- Throws:
java.lang.Throwable- All exceptions are handled by the framework
-
-