public class LockKeeperImpl extends Object implements LockKeeper
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.
Constructor and Description |
---|
LockKeeperImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addLock(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Transactional method to make a lock on the specified node ref.
|
TransactionalCache<org.alfresco.service.cmr.repository.NodeRef,org.alfresco.filesys.repo.LockKeeperImpl.KeeperInfo> |
getLockKeeperTransactionalCache() |
LockService |
getLockService() |
int |
getTimeToExpire() |
TransactionService |
getTransactionService() |
void |
init() |
boolean |
isLockEnabled() |
void |
refreshAllLocks() |
void |
removeLock(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Transactional method to remove a lock on the specified node ref.
|
void |
setLockEnabled(boolean lockEnabled) |
void |
setLockKeeperTransactionalCache(TransactionalCache<org.alfresco.service.cmr.repository.NodeRef,org.alfresco.filesys.repo.LockKeeperImpl.KeeperInfo> lockKeeperTransactionalCache) |
void |
setLockService(LockService lockService) |
void |
setTimeToExpire(int timeToExpire) |
void |
setTransactionService(TransactionService transactionHelper) |
public void init()
public void addLock(org.alfresco.service.cmr.repository.NodeRef nodeRef)
LockKeeper
addLock
in interface LockKeeper
public void removeLock(org.alfresco.service.cmr.repository.NodeRef nodeRef)
LockKeeper
removeLock
in interface LockKeeper
public void refreshAllLocks()
refreshAllLocks
in interface LockKeeper
public void setLockEnabled(boolean lockEnabled)
public boolean isLockEnabled()
public void setLockService(LockService lockService)
public LockService getLockService()
public void setLockKeeperTransactionalCache(TransactionalCache<org.alfresco.service.cmr.repository.NodeRef,org.alfresco.filesys.repo.LockKeeperImpl.KeeperInfo> lockKeeperTransactionalCache)
public TransactionalCache<org.alfresco.service.cmr.repository.NodeRef,org.alfresco.filesys.repo.LockKeeperImpl.KeeperInfo> getLockKeeperTransactionalCache()
public void setTransactionService(TransactionService transactionHelper)
public TransactionService getTransactionService()
public void setTimeToExpire(int timeToExpire)
public int getTimeToExpire()
Copyright © 2005–2017 Alfresco Software. All rights reserved.