Package org.alfresco.filesys.repo
Class LockKeeperImpl
java.lang.Object
org.alfresco.filesys.repo.LockKeeperImpl
- All Implemented Interfaces:
LockKeeper
AlfrescoLockKeeperImpl
Repository level locking for CIFS, prevents files open via CIFS/FTP/JLAN being interfered with by the alfresco "back end". Delegates ephemeral locking requests to the lockService.
- Author:
- mrogers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTransactional method to make a lock on the specified node ref.TransactionalCache<NodeRef,org.alfresco.filesys.repo.LockKeeperImpl.KeeperInfo> intvoidinit()booleanvoidvoidremoveLock(NodeRef nodeRef) Transactional method to remove a lock on the specified node ref.voidsetLockEnabled(boolean lockEnabled) voidsetLockKeeperTransactionalCache(TransactionalCache<NodeRef, org.alfresco.filesys.repo.LockKeeperImpl.KeeperInfo> lockKeeperTransactionalCache) voidsetLockService(LockService lockService) voidsetTimeToExpire(int timeToExpire) voidsetTransactionService(TransactionService transactionHelper)
-
Constructor Details
-
LockKeeperImpl
public LockKeeperImpl()
-
-
Method Details
-
init
public void init() -
addLock
Description copied from interface:LockKeeperTransactional method to make a lock on the specified node ref.- Specified by:
addLockin interfaceLockKeeper
-
removeLock
Description copied from interface:LockKeeperTransactional method to remove a lock on the specified node ref.- Specified by:
removeLockin interfaceLockKeeper
-
refreshAllLocks
public void refreshAllLocks()- Specified by:
refreshAllLocksin interfaceLockKeeper
-
setLockEnabled
public void setLockEnabled(boolean lockEnabled) -
isLockEnabled
public boolean isLockEnabled() -
setLockService
-
getLockService
-
setLockKeeperTransactionalCache
public void setLockKeeperTransactionalCache(TransactionalCache<NodeRef, org.alfresco.filesys.repo.LockKeeperImpl.KeeperInfo> lockKeeperTransactionalCache) -
getLockKeeperTransactionalCache
public TransactionalCache<NodeRef,org.alfresco.filesys.repo.LockKeeperImpl.KeeperInfo> getLockKeeperTransactionalCache() -
setTransactionService
-
getTransactionService
-
setTimeToExpire
public void setTimeToExpire(int timeToExpire) -
getTimeToExpire
public int getTimeToExpire()
-