Class LockKeeperImpl

java.lang.Object
org.alfresco.filesys.repo.LockKeeperImpl
All Implemented Interfaces:
LockKeeper

public class LockKeeperImpl extends Object implements 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 Details

    • LockKeeperImpl

      public LockKeeperImpl()
  • Method Details

    • init

      public void init()
    • addLock

      public void addLock(NodeRef nodeRef)
      Description copied from interface: LockKeeper
      Transactional method to make a lock on the specified node ref.
      Specified by:
      addLock in interface LockKeeper
    • removeLock

      public void removeLock(NodeRef nodeRef)
      Description copied from interface: LockKeeper
      Transactional method to remove a lock on the specified node ref.
      Specified by:
      removeLock in interface LockKeeper
    • refreshAllLocks

      public void refreshAllLocks()
      Specified by:
      refreshAllLocks in interface LockKeeper
    • setLockEnabled

      public void setLockEnabled(boolean lockEnabled)
    • isLockEnabled

      public boolean isLockEnabled()
    • setLockService

      public void setLockService(LockService lockService)
    • getLockService

      public LockService 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

      public void setTransactionService(TransactionService transactionHelper)
    • getTransactionService

      public TransactionService getTransactionService()
    • setTimeToExpire

      public void setTimeToExpire(int timeToExpire)
    • getTimeToExpire

      public int getTimeToExpire()