Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)

77034: Merged PLATFORM1 (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud)
      71740: Undeprecated Alfresco Transaction Support


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@77876 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers
2014-07-23 12:58:38 +00:00
parent a284415e77
commit 0255292d44

View File

@@ -18,40 +18,28 @@
*/ */
package org.alfresco.repo.transaction; package org.alfresco.repo.transaction;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set; import java.util.Set;
import org.alfresco.error.AlfrescoRuntimeException;
import org.alfresco.jlan.client.AsynchRequest;
import org.alfresco.repo.cache.TransactionalCache; import org.alfresco.repo.cache.TransactionalCache;
import org.alfresco.repo.node.integrity.IntegrityChecker; import org.alfresco.repo.node.integrity.IntegrityChecker;
import org.alfresco.repo.search.impl.lucene.LuceneIndexerAndSearcher; import org.alfresco.repo.search.impl.lucene.LuceneIndexerAndSearcher;
import org.alfresco.util.GUID;
import org.alfresco.util.transaction.TransactionListener; import org.alfresco.util.transaction.TransactionListener;
import org.alfresco.util.transaction.TransactionSupportUtil; import org.alfresco.util.transaction.TransactionSupportUtil;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.springframework.extensions.surf.util.ParameterCheck;
import org.springframework.orm.hibernate3.SessionFactoryUtils; import org.springframework.orm.hibernate3.SessionFactoryUtils;
import org.springframework.transaction.support.TransactionSynchronization;
import org.springframework.transaction.support.TransactionSynchronizationAdapter;
import org.springframework.transaction.support.TransactionSynchronizationManager; import org.springframework.transaction.support.TransactionSynchronizationManager;
/** /**
* Repo Specific Helper class to manage transaction synchronization. This provides helpers to * Repo Specific Helper class to manage transaction synchronization. This provides helpers to
* ensure that the necessary <code>TransactionSynchronization</code> instances * ensure that the necessary <code>TransactionSynchronization</code> instances
* are registered on behalf of the application code. * are registered on behalf of the application code.
* * <p>
* This class remains for backward API compatibility, * This class remains for backward API compatibility, the majority of transaction support has been moved to
* @deprecated use the Core Project TransactionSupportUtil instead * TransactionSupportUtil in the Core project.
* *
* @author Derek Hulley * @author Derek Hulley
* @author mrogers
*/ */
public abstract class AlfrescoTransactionSupport extends TransactionSupportUtil public abstract class AlfrescoTransactionSupport extends TransactionSupportUtil
{ {
@@ -195,6 +183,7 @@ public abstract class AlfrescoTransactionSupport extends TransactionSupportUtil
* implements <tt>equals</tt> and <tt>hashCode</tt>. * implements <tt>equals</tt> and <tt>hashCode</tt>.
* *
* @param daoService * @param daoService
* @deprecated use TransactionSupportUtil directly
*/ */
public static void bindDaoService(TransactionalDao daoService) public static void bindDaoService(TransactionalDao daoService)
{ {
@@ -219,6 +208,7 @@ public abstract class AlfrescoTransactionSupport extends TransactionSupportUtil
* implements <tt>equals</tt> and <tt>hashCode</tt>. * implements <tt>equals</tt> and <tt>hashCode</tt>.
* *
* @param integrityChecker * @param integrityChecker
* @deprecated use TransactionSupportUtil directly
*/ */
public static void bindIntegrityChecker(IntegrityChecker integrityChecker) public static void bindIntegrityChecker(IntegrityChecker integrityChecker)
{ {
@@ -244,6 +234,7 @@ public abstract class AlfrescoTransactionSupport extends TransactionSupportUtil
* *
* @param indexerAndSearcher the Lucene indexer to perform transaction completion * @param indexerAndSearcher the Lucene indexer to perform transaction completion
* tasks on * tasks on
* @deprecated use TransactionSupportUtil directly
*/ */
public static void bindLucene(LuceneIndexerAndSearcher indexerAndSearcher) public static void bindLucene(LuceneIndexerAndSearcher indexerAndSearcher)
{ {
@@ -266,6 +257,7 @@ public abstract class AlfrescoTransactionSupport extends TransactionSupportUtil
* *
* @param indexerAndSearcher the Lucene indexer to perform transaction completion * @param indexerAndSearcher the Lucene indexer to perform transaction completion
* tasks on * tasks on
* @deprecated use TransactionSupportUtil directly
*/ */
public static void bindListener(TransactionListener listener) public static void bindListener(TransactionListener listener)
{ {