Package com.logicaldoc.core.lock
Class LockManager
java.lang.Object
com.logicaldoc.core.lock.LockManager
Central class to manage locks
- Since:
 - 6.5
 - Author:
 - Marco Meschieri - LogicalDOC
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanAcquire a lock of a given name and for a given transaction.Gets all the transaction ids associated to the locksvoidReleases a previously acquired lock.voidsetConfig(ContextProperties config) voidsetGenericDao(GenericDAO genericDao)  
- 
Constructor Details
- 
LockManager
public LockManager() 
 - 
 - 
Method Details
- 
getAllTransactions
Gets all the transaction ids associated to the locks- Returns:
 - the lists of transactions
 
 - 
get
Acquire a lock of a given name and for a given transaction.- Parameters:
 lockName- Name of the locktransactionId- Id of the transaction- Returns:
 - true only if the lock was acquired
 
 - 
release
Releases a previously acquired lock.- Parameters:
 lockName- The lock nametransactionId- The transaction ID- Throws:
 PersistenceException
 - 
setGenericDao
 - 
setConfig
 
 -