Package org.fcrepo.kernel.impl
Class TransactionManagerImpl
- java.lang.Object
-
- org.fcrepo.kernel.impl.TransactionManagerImpl
-
- All Implemented Interfaces:
TransactionManager
@Component public class TransactionManagerImpl extends Object implements TransactionManager
The Fedora Transaction Manager implementation- Author:
- mohideen
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanupClosedTransactions()
Periodically scan for closed transactions for cleanupTransaction
create()
Create a new fedora transactionTransaction
get(String transactionId)
Get an existing fedora transactionprotected ContainmentIndex
getContainmentIndex()
DbTransactionExecutor
getDbTransactionExecutor()
protected EventAccumulator
getEventAccumulator()
protected MembershipService
getMembershipService()
protected PersistentStorageSessionManager
getPersistentStorageSessionManager()
protected ReferenceService
getReferenceService()
protected ResourceLockManager
getResourceLockManager()
protected SearchIndex
getSearchIndex()
protected UserTypesCache
getUserTypesCache()
-
-
-
Method Detail
-
cleanupClosedTransactions
@Scheduled(fixedDelayString="#{fedoraPropsConfig.sessionTimeout}") public void cleanupClosedTransactions()
Periodically scan for closed transactions for cleanup
-
create
public Transaction create()
Description copied from interface:TransactionManager
Create a new fedora transaction- Specified by:
create
in interfaceTransactionManager
- Returns:
Transaction
The new fedora transaction
-
get
public Transaction get(String transactionId)
Description copied from interface:TransactionManager
Get an existing fedora transaction- Specified by:
get
in interfaceTransactionManager
- Parameters:
transactionId
- the id of the transaction to be returned- Returns:
Transaction
the fedora transaction associated with the provided id
-
getPersistentStorageSessionManager
protected PersistentStorageSessionManager getPersistentStorageSessionManager()
-
getContainmentIndex
protected ContainmentIndex getContainmentIndex()
-
getSearchIndex
protected SearchIndex getSearchIndex()
-
getEventAccumulator
protected EventAccumulator getEventAccumulator()
-
getReferenceService
protected ReferenceService getReferenceService()
-
getMembershipService
protected MembershipService getMembershipService()
-
getResourceLockManager
protected ResourceLockManager getResourceLockManager()
-
getUserTypesCache
protected UserTypesCache getUserTypesCache()
-
getDbTransactionExecutor
public DbTransactionExecutor getDbTransactionExecutor()
-
-