public interface LockHandler
| Modifier and Type | Method and Description | 
|---|---|
String | 
getLockedBy(File file)
Retrieve the name of the user holding the lock of a particular file. 
 | 
LockStatus | 
getLockStatusFor(File file)
Get the locking status of a particular file. 
 | 
LockStatus | 
lock(File fileToLock)
Locks a file so that it can changed exclusively by the lock holder. 
 | 
LockStatus | 
unlock(File fileToUnlock)
Releases the lock of a file so that others can modify it. 
 | 
LockStatus lock(File fileToLock)
fileToLock - the file to lockVcsIntegrationException - if there is a communication failure with the remote repositoryLockStatus unlock(File fileToUnlock)
fileToUnlock - the file to unlockVcsIntegrationException - if the file cannot be unlocked or there is a communication failure with the
                                 remote repositoryLockStatus getLockStatusFor(File file)
file - the file for which to check the lock statusVcsIntegrationException - if there is a communication failure with the remote repositoryString getLockedBy(File file)
file - the file to check status forVcsIntegrationException - if there is a communication failure with the remote repositoryCopyright © 2019. All rights reserved.