org.alfresco.repo.audit.generator
Class TransactionIdDataGenerator

java.lang.Object
  extended by org.alfresco.repo.audit.generator.AbstractDataGenerator
      extended by org.alfresco.repo.audit.generator.TransactionIdDataGenerator
All Implemented Interfaces:
DataGenerator, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

public class TransactionIdDataGenerator
extends AbstractDataGenerator

Gives back the currently transaction ID.

Since:
3.2

Field Summary
 
Fields inherited from class org.alfresco.repo.audit.generator.AbstractDataGenerator
logger
 
Constructor Summary
TransactionIdDataGenerator()
           
 
Method Summary
 java.io.Serializable getData()
          Get the data generated by the instance.
 
Methods inherited from class org.alfresco.repo.audit.generator.AbstractDataGenerator
afterPropertiesSet, equals, setBeanName, setRegistry
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionIdDataGenerator

public TransactionIdDataGenerator()
Method Detail

getData

public java.io.Serializable getData()
                             throws java.lang.Throwable
Description copied from interface: DataGenerator
Get 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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.