Class CrowdXWorkTransactionInterceptor

java.lang.Object
com.atlassian.crowd.xwork.interceptors.XWorkTransactionInterceptor
com.atlassian.crowd.console.interceptor.CrowdXWorkTransactionInterceptor
All Implemented Interfaces:
com.opensymphony.xwork2.interceptor.Interceptor, Serializable

public class CrowdXWorkTransactionInterceptor extends XWorkTransactionInterceptor
An interceptor that wraps the action execution in a single Hibernate transaction.
See Also:
  • Constructor Details

    • CrowdXWorkTransactionInterceptor

      public CrowdXWorkTransactionInterceptor()
  • Method Details

    • getTransactionManager

      public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
      Description copied from class: XWorkTransactionInterceptor
      Template method for retrieving the transaction manager for the current application.
      Specified by:
      getTransactionManager in class XWorkTransactionInterceptor
      Returns:
      the transaction manager for this application
    • shouldIntercept

      protected boolean shouldIntercept(com.opensymphony.xwork2.ActionInvocation actionInvocation)
      Description copied from class: XWorkTransactionInterceptor
      Determine if a certain action should be wrapped in a transaction. Applications should override this method if they want to prevent specific actions from being intercepted, or want to prevent transactions from being created before the system is fully set up.
      Specified by:
      shouldIntercept in class XWorkTransactionInterceptor
      Parameters:
      actionInvocation - the action being invoked
      Returns:
      true if the action should be wrapped in a transaction